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: 
Read only

Error on MM02 - Lock

Former Member
0 Likes
2,374

Hi,

When i try to alter a material on MM02, when i put the plant data, the error is launched:

The plant data of the material 1300000277 is locked by the user ############

The '###' chars really appears on the screen.

This error is launched by the fm ENQUEUE_EMMARCE as a "foreign lock".

But, when i execute the fm DEQUEUE_EMMARCE, nothing happens, the error continues on MM02.

Someone could help ?

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,027

No Nabheet, there was no job running...

Thanks to all, but the problem was solved when the server was restarted.

11 REPLIES 11
Read only

Former Member
0 Likes
2,027
you can't dequeue something, that was enqueued by someone else, I suppose. Your message says there is a lock on the plant data by somebody / something. Did you search SM12 for a corresponding record? There you may see who locks it.
Read only

Former Member
0 Likes
2,027

That's the point, there's no records in SM12 for this material.

Read only

0 Likes
2,027

The locking concept of whole MM is a little bit tricky as locking there can be made via large amount of enhancements / customizing. Did you try debugging the place where the message is raised?

Read only

Former Member
0 Likes
2,027

Yes, it's raised on program SAPLMG22 inlcude LMG22FSQ:

FORM LESEN_MARC_SINGLE USING RCODE.

   DATA: HTABIX_KEY     LIKE SY-TABIX,
         SY_SUBRC_KEY   LIKE SY-SUBRC.

   CLEAR RCODE.

   PERFORM SPERREN_MARC USING SY-SUBRC.
   PERFORM MESSAGE_LOCK.


At this moment, the SPERREN_MARC returns the foreign lock from ENQUEUE_EMMARCE.

Read only

ThangaPrakash
Active Contributor
0 Likes
2,027

Hello Gustavo,

Check in SM51 and double click on the server name in which you have lock issue.

In the last column of the ALV display you can find table name, check if there is any lock on the material master tables like MARA, MARC and so on.

Regards,

Thanga

Read only

ThangaPrakash
Active Contributor
0 Likes
2,027

Hello Gustavo,

Also check in SM04 transaction, Is there any entries with transaction MM01, MM02 or other MM transactions.

Regards,

Thanga

Read only

former_member821147
Participant
0 Likes
2,027

Hi,

Check Sm12 and delete all entries related to that user.

Read only

Former Member
0 Likes
2,027

There's no records in SM12 for the supposed user.

And, there's no entries in SM04 with any MM transaction too.

Maybe the only way is to shutdown the server to clean the memory... i don't know where to look anymore.

Regards,

Gustavo

Read only

0 Likes
2,027

Hello Gustavo,

Did u check in SM51 if there is any process running which is related

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,027

Hi

Is it happening for all or only one material. Did you check in SM50/SM37 does any running job is locking it..?

Nabheet

Read only

Former Member
0 Likes
2,028

No Nabheet, there was no job running...

Thanks to all, but the problem was solved when the server was restarted.