‎2013 Jul 25 4:03 PM
Dear all,
I need to update batch master record MF date on basic data one tab and one characteristic in classification tab in Batch master when saving the Process Order.
So what I am doing is I am calling
CALL FUNCTION 'BAPI_BATCH_CHANGE' IN BACKGROUND TASK "To change date
CALL FUNCTION 'BAPI_OBJCL_CHANGE' in background task "To change characteristic value
in enhancement point before WORKORDER_UPDATE.
My Problem : The date on basic data one tab gets updated correctly every time but the characteristic value on classification tab sometimes gets updated
sometimes not.
Probably both the background tasks are run in parallel and one of them block the batch master data. How can I make them call one after another?
I can not use these functions in UPDATE TASK it will dump.
Your views/inputs are appreciated.
Regards
Vinit
‎2013 Jul 25 4:12 PM
There will be a lock created by the first. Wait until it is released to call the second.
Neal
‎2013 Jul 25 11:02 PM
Hi,
May be applying a little WAIT..UP TO might help.
Cheers,
Arindam
‎2013 Jul 26 10:42 AM
‎2013 Jul 26 12:35 PM
Because I want to update the batch after saving the process order.
‎2013 Jul 26 12:43 PM
When you call it in background task, wouldn't the processing continue irrespective of whether process order was saved successfully or not?
I think your 2 function modules and BAPI_TRANSACTION_COMMIT can be bundled in custom FM, and that can be called to ensure sequence of execution.