02-07-2018 1:15 PM
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.
02-07-2018 1:20 PM
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.
02-07-2018 2:28 PM
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.
02-08-2018 1:23 PM
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)