radi8
Well Known Member
Good day all!
I am working on some functionality where I need to get and some work on the generated Work order created from an MRP message processed by the R3411. In order to get the WO, I am doing the following:
1. Create a MRP/MPS record in the F3411 - DONE
2. Modify the R3411 to do an update the F4801 record for the processed 'W' Line Type item
a. At the end of the "Do Section" (after the "Process Messages" bsfn)
b. add logic to find WO from the information entered into the F3411 record
2. Run the R3411 against the newly created F3411 record
a. After the B3401360 Process Messages Business function completes successfully
b. get the created F4801 record and process accordingly
RESULTS -
3. No F4801 record is created when the "Process Messages" Function completes.
4. The F4801 record is created shortly after from what appears to be an asynchronous business function
I am trying to figure out how the B3401360 - Process MPS Messages business function works. Internally, it will call the B4200310, Sales Order Entry business function. But, it appears as thought the B4200310 runs ASYNCHRONOUSLY as it does not finish fully before the calling B3401360 does.
Specifically, what I am looking for is the B3401360 to create the Work Order (F4801 record) from the 'W' line type but since it is not created immediately, I am left with a dilemma, when and how can I get the F4801 record without having to do a table trigger?
Any ideas or suggestions?
I am working on some functionality where I need to get and some work on the generated Work order created from an MRP message processed by the R3411. In order to get the WO, I am doing the following:
1. Create a MRP/MPS record in the F3411 - DONE
2. Modify the R3411 to do an update the F4801 record for the processed 'W' Line Type item
a. At the end of the "Do Section" (after the "Process Messages" bsfn)
b. add logic to find WO from the information entered into the F3411 record
2. Run the R3411 against the newly created F3411 record
a. After the B3401360 Process Messages Business function completes successfully
b. get the created F4801 record and process accordingly
RESULTS -
3. No F4801 record is created when the "Process Messages" Function completes.
4. The F4801 record is created shortly after from what appears to be an asynchronous business function
I am trying to figure out how the B3401360 - Process MPS Messages business function works. Internally, it will call the B4200310, Sales Order Entry business function. But, it appears as thought the B4200310 runs ASYNCHRONOUSLY as it does not finish fully before the calling B3401360 does.
Specifically, what I am looking for is the B3401360 to create the Work Order (F4801 record) from the 'W' line type but since it is not created immediately, I am left with a dilemma, when and how can I get the F4801 record without having to do a table trigger?
Any ideas or suggestions?