Skip to Content

Locking an ENTRY in MARA table

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 19, 2016 at 07:10 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.