on 01-17-2008 7:00 AM
Hi,
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.
Hi,
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.
Regards,
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.