Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Lock release once the API service call ends

0 Kudos
469

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

4 REPLIES 4

touzik_itc
Active Participant
0 Kudos
406

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.

Sandra_Rossi
Active Contributor
0 Kudos
406

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.

Sandra_Rossi
Active Contributor
0 Kudos
406

It's non-sense to have an API just to lock technically something. Could you clarify what is your goal?

RaymondGiuseppi
Active Contributor
406

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.