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: 

Locking an ENTRY in MARA table

asuji20
Explorer
0 Kudos

Hello all,

Can someone please help me understand why I am unable to lock an entry in MARA table,

I wrote a test Z program to update an entry in mara table and used  ENQUEUE_E_PDTC_MARA to lock before updating.

However, when i was in debugging mode, after the FM ENQUEUE_E_PDTC_MARA was called, I was still able to edit the same material in MM02.

Why was that?

Only when i pressed the save button in MM02 ( another session was running my program in debugging mode) SAP really locked that material from being edited further.


Can someone help me understand why i am able to update both ways in program and in tcode side by side.

1 ACCEPTED SOLUTION

asuji20
Explorer
0 Kudos

Hello All, I was able to lock it using  ENQUEUE_EMMARAS.

1 REPLY 1

asuji20
Explorer
0 Kudos

Hello All, I was able to lock it using  ENQUEUE_EMMARAS.