Hi Devin,
We have a bpm where we get data input from user in-process (ttCallContextBPMData.Date02) and then we take that (date02) and put it into the order that was made, post process. We call synchronous execute abl code to do it per example below:
/* ttCallContextBPMData.Date02 contains the RequestDate (ShipByDate) */
/* Sales Order was created from a push from Quote. The new number is in the parameter, orderNum */
/* Fix OrderHed */
Find OrderHed no-lock where OrderHed.OrderNum = orderNum.
if available OrderHed then do:
Run lib\UpdateTableBuffer.p(input BUFFER OrderHed:HANDLE,'RequestDate', ttCallContextBPMData.Date02).
end.
/* Fix OrderDtl */
For each OrderDtl no-lock where OrderDtl.OrderNum = orderNum:
if available OrderDtl then do:
Run lib\UpdateTableBuffer.p(input BUFFER OrderDtl:HANDLE,'RequestDate', ttCallContextBPMData.Date02).
end.
end.
/* Fix OrderRel */
For each OrderRel no-lock where OrderRel.OrderNum = orderNum:
if available OrderRel then do:
Run lib\UpdateTableBuffer.p(input BUFFER OrderRel:HANDLE,'ReqDate', ttCallContextBPMData.Date02).
end.
end.