2023 Feb 09 5:45 PM
Hi,
I am using FM ENQUEUE_EVVBLKE for locking the delivery number in a API call, but FM release the delivery once the service call ends. Kindly provide the solution.
Thanks,
Rahul
2023 Feb 09 9:44 PM
The behavior depends on the _SCOPE parameter in the ENQUEUE function module. If _SCOPE is set to 2, locks are released after the SAP LUW is completed.
2023 Feb 10 8:55 AM
Please use the COMMENT button for comments, asking for complements, adding details, replying to a comment or a proposed solution or to the OP question, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.
2023 Feb 10 8:57 AM
It's non-sense to have an API just to lock technically something. Could you clarify what is your goal?
2023 Feb 10 9:05 AM
AFAIK Basically your API call creates a new LUW, lock lifetime should not exceed this LUW lifetime, so lock is released at end of call. If you want to keep the look perform first some search on qRFC or stateful session.