08-22-2015 7:14 PM
Hi Folks,
as per my requirement, i have implemented implicit enhancement for Process order to update the manufacturing date of Header material batch. This functionality has been developed in a function module and is being called in an UPDATE TASK with start delay(V2). Now whenever the order is created or changed, the date is getting updated but not immediately due to the function module called in an update task. Here start immediate(V1) is not possible in my case. I would like to lock the order until my function module execution gets completed. Can you please suggest me how to achieve this. Any approach possible with the VBHDR and VBDATA. Thanks in advance.
Regards
Mallikarjun Reddy G
08-23-2015 4:00 AM
I don't think you could achieve that. V2 tasks are run without locks by design, since they are intended for non-critical and statistical updates.
https://help.sap.com/saphelp_nw70ehp1/helpdata/en/e5/de86e135cd11d3acb00000e83539c3/content.htm
Processing the V1 modules involves transferring the contents of the update tables VBMOD and VBDATA to the application tables of the database. The changes are not actually made to the tables in the database until the database LUW in which this takes place is completed. The SAP locks are released and, if V2 update modules exist, the V2 update is started. This is similar to the V1 update with the exception that there are no locks that have to released and no search for a process for further processing.