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

IDOC Inbound processing and Locks

Former Member
0 Likes
3,436

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?

6 REPLIES 6
Read only

Former Member
0 Likes
1,693

Check in transaction SM12 and see if there is a lock entry . If yes delete it manually.

Cheers

Read only

0 Likes
1,693

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...

Read only

0 Likes
1,693

Hi,

Did you try setting IDOC_OPENED_FLAG = 'X' in the call to fm IDOC_STATUS_WRITE_TO_DATABASE..

Sri

Read only

Former Member
0 Likes
1,693

Have you checked the consistency of the IDOC in WE30.

Read only

Former Member
0 Likes
1,693

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

Read only

Former Member
0 Likes
1,693

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