Why wont this BPM work

Thanks mark, your suggestion inspired me to go back and change a few things on the post process. it is working now.~
--- In vantage@yahoogroups.com, "Mark Wonsil" <mark_wonsil@...> wrote:
>
> Hey Rob,
>
> > In the rma disposition screen I am trying to override unit costs based on
> > a check box condition. in pre-processing using actions, advanced heres my
> > code.
>
> You may want to make this a post-process on the insert of the record. I
> think the base processing grabs the costs for that part and is overriding
> your BPM.
>
> Mark W.
>
In the rma disposition screen I am trying to override unit costs based on a check box condition. in pre-processing using actions, advanced heres my code.

method is rmadisp.update
for each ttRMADisp where (ttRMADisp.Rowmod = "A" or ttRMADisp.RowMod = "U") no-lock:
find RMARcpt where (ttRMADisp.Company = RMARcpt.Company and RMARcpt.RMANum = ttRMADisp.RMANum and RMARcpt.RMALine = ttRMADisp.RMALine and RMARcpt.RMAReceipt = ttRMADisp.RMAReceipt) and RMARcpt.CheckBox01 = True no-lock.
If available RMARcpt then
Run lib\UpdateTableBuffer.p(input BUFFER RMARcpt:HANDLE, 'lbrUnitCost',5.5).
End.

i get no change. Thanks in advance.
Hey Rob,

> In the rma disposition screen I am trying to override unit costs based on
> a check box condition. in pre-processing using actions, advanced heres my
> code.

You may want to make this a post-process on the insert of the record. I
think the base processing grabs the costs for that part and is overriding
your BPM.

Mark W.
I believe you are correct, i tried something along those lines, except in the post process im having difficulty picking up the variables to search on (i show an informational box with the table values i want to see and it shows nothing). So i havent had much luck yet there either. Thanks for your reply!--- In vantage@yahoogroups.com, "Mark Wonsil" <mark_wonsil@...> wrote:
>
> Hey Rob,
>
> > In the rma disposition screen I am trying to override unit costs based on
> > a check box condition. in pre-processing using actions, advanced heres my
> > code.
>
> You may want to make this a post-process on the insert of the record. I
> think the base processing grabs the costs for that part and is overriding
> your BPM.
>
> Mark W.
>