Skip to Content
author's profile photo Former Member
Former Member

Outbound IDOC foreign lock problem


I have created a program that creates IDOCs for some of my table records to be sent over as an outbound IDOC to a third party system. After the IDOC is created, and when it calls the outbound IDOC function module. In my outbound function module, I am calling FM EDI_DOCUMENT_OPEN_FOR_PROCESS and somehow this FM returns an error stating that my IDOC is locked. I have tried calling FMs to dequeue the IDOCs but it does not work. Any help would be much appreciated.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2008 at 07:19 AM


    Have u debugged the FM,Have u seen and Enquee or Dequee code is there,First of say which data ur sending,IF ur sending the HR data and if that data is been used by any other user then it will show as tha data is loked.

    At that time u cant do any thing,First give complete detials which data ur sending and Check this data is being used by any other User and also check is any Enquee and dequee code is there in that FM.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Phani

      Thanks for your response. I have debugged the FM and it calls this system function CALL 'C_ENQUEUE' and it looks like the IDOC is locked by me. What my custom program does is firstly it creates the IDOC for some table records.Then it calls the outbound function module. I have created a t-code to call my custom program and I noticed that when I am still in the same transaction while it calls the outbound FM, call 'C_ENQUEUE' will always return sy-subrc stating that I am locking the IDOC. But as soon as I leave the transaction of my custom program and then manually trigger the outbound FM, it works. Any idea?

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.