‎2019 Jan 09 7:18 AM
Hi experts, Currently, I wrote a function module which process in sequence as packing HU, change the HU header and Assigning HU to process the order. For packing HU, used standard bapi BAPI_HU_PACK, for change HU header, used standard bapi BAPI_HU_CHANGE_HEADER. For assigning HU, called BDC using call transaction 'COPAWA'. Before calling BDC, used DEQUEUE_ALL function module to unlock the HU. But after processing, I m getting HU lock issue. Please look at the screenshot below.


‎2019 Jan 09 7:36 AM
‎2019 Jan 09 8:42 AM
Hi Raymond,
Used WAIT = 'X' in commit . But still, the same issue is occurring. Please suggest what is wrong with it.
Thanks,
Narasimha.
‎2019 Jan 15 5:30 AM
How about using COMMIT WORK AND WAIT statement? I find it sometimes that it works while the FM BAPI_TRANSACTION_COMMIT doesn't.
‎2019 Jan 15 7:32 AM
amiruddin.ayaz BAPI_TRANSACTION_COMMIT is very simple code, if you pass parameter WAIT = 'X', it does immediately a COMMIT WORK AND WAIT, so that's impossible that "COMMIT WORK works while BAPI_TRANSACTION_COMMIT [with WAIT = 'X'] doesn't" (or you experienced some issues related to the "BAPI buffer" cleared by BAPI_TRANSACTION_COMMIT, which is not related to the "commit work").
‎2019 Jan 15 8:27 AM
This wouldn't be related to 'Exception condition "OS_COMMIT_WORK_FORBIDDEN" triggered' by any chance ? Are you still trying to use Commit Work in the wrong place ??