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: 

MC601 message error in transaction FP05

0 Kudos

HI. I have a failure when I realize an accounting of a payment lot throught FP05. When we work on background, several jobs are created with a Z report using this functions:
FKK_AKTIV2_RUN_KEY_CONSTRUCT
FKK_AKTIV_GET_JTYPE_FOR_AKTYP
FKJO_JC_PLAN_JOB_FKK
FKK_AKTIV2_RUN_STATUS_UPDATE

I'm the only one who is executing it in the system but some jobs are canceled with the next message:

Object requested is currently locked by user XXXXXXX
Message no: MC601

Diagnosis

A lock requested by calling an ENQUEUE function module cannot be set up because another SAP transaction is using the lock in question.

Technical Information: The C_ENQUEUE routine returned the following values:

COLLISION_OBJECT = 601

COLLISION_UNAME = XXXXXXX


System Response
The ENQUEUE function module triggers an appropriate exception. If this exception was not intercepted by the application program, this leads automatically to the active SAP transaction being cancelled.


Procedure

Look in the lock table to establish which user or transaction is using the requested lock (Tools -> Administration -> Monitor -> Lock entries). You may need to contact the user in question.

Someone can help me? Thanks.

3 REPLIES 3

mmcisme1
Active Contributor
0 Kudos

The problem is exactly what is written in the message. Someone has the record locked. If you want to know who and your message doesn't state who. (It usually does) SM12 remove your user name. You may even have it locked.

0 Kudos

The user XXXXXXXX is myself. When the job ends in SM12 the object isn't locked. I think when Z report create a job it locks the object and when a second job is created by the report the object is still locked. I try WAIT a few seconds when FKK_AKTIV2_RUN_STATUS_UPDATE but it doesn't work.

mmcisme1
Active Contributor
0 Kudos

Check for the lock in a do loop. if the record is unlocked submit the next job. (I also usually will run it for a certain time 2 minutes and then I exit with an error)