Application Development 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: 

To fix the lock untill the end execution

0 Kudos

Hi all,

I am trying to use a lock objects in my report. My problem is that in one step, the report call:

  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait   = 'X'
    IMPORTING
      return = lt_return2.


and this instructión delete my lock. ¿any idea in order to fix the lock untill the end execution?

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Change the scope (life) or your lock in the call of the ENQUEUE FM ( _SCOPE = 3 ), you will be required to explicitly remove the lock with DEQUEUE FM.

(Read documentation at Function Modules for Lock Requests)

Regards,

Raymond

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos

Change the scope (life) or your lock in the call of the ENQUEUE FM ( _SCOPE = 3 ), you will be required to explicitly remove the lock with DEQUEUE FM.

(Read documentation at Function Modules for Lock Requests)

Regards,

Raymond

0 Kudos

Great! it works. thanks!