‎2005 Sep 22 12:46 PM
Hi there,
we are trying to process an incoming idoc. But all the time we get an error: Immediately processing not possible: EDI: IDOC "XYZ" is currently locked.
There is an lock entry for this IDOC in table EDIDC. We get this error while calling the FM IDOC_STATUS_WRITE_TO_DATABASE with status 52 (application doucument not fully posted).
What can we do?
‎2005 Sep 22 12:50 PM
Check in transaction SM12 and see if there is a lock entry . If yes delete it manually.
Cheers
‎2005 Sep 22 1:00 PM
Yes, I know there is a lock entry in SM12.
The question is why is that lock entry causing an error while updating the IDOC status using the function module IDOC_STATUS_WRITE_TO_DATABASE...
‎2005 Sep 22 2:55 PM
Hi,
Did you try setting IDOC_OPENED_FLAG = 'X' in the call to fm IDOC_STATUS_WRITE_TO_DATABASE..
Sri
‎2005 Sep 22 1:20 PM
‎2005 Sep 22 1:43 PM
Can you please tell us the message type and your logic(not code) for processing the IDocs? Looks like you are doing this using your custom program. Am I correct?
Srinivas
‎2005 Sep 23 8:06 PM
Exactly why are you trying to write the IDoc status to the database?
It sounds like you have written a custom IDoc. If this is so, you would pass the IDoc status back in table IDOC_STATUS, and it will get updated automatically by SAP.
When SAP extracts the IDoc data, it places an Enqueue lock on the IDOC. That is why you are getting the error message.
HTH,
John