Skip to Content
0
Former Member
Dec 06, 2011 at 09:02 AM

Problem with user exit EXIT_SAPLIEDI_001 for Inbound Idocs in replacing G/L

800 Views

Hello all,

I am currently facing an issue where my IDOC where exit EXIT_SAPLIEDI_001 is not appearing to work properly.

Basically I am using the FM that processes the inbound idoc (IDOC_INPUT_INVOIC_FI) to post an accounting document. We needed a solution where we need to substitute one of the G/L Accounts.

The current process in our SAP system is that we are creating a billing document which automatically generates the output type (running: program rsnasted subroutine edi_processing) to create and process the inbound idoc.

So I discovered FM EXIT_SAPLIEDI_001 which exports company code and G/L Account back does this.

In this exit, Since I needed to get data from the IDOC, I used the logic ASSIGN: ('(SAPLIEDI)IDOC_DATA[]') TO <fs_edidd> to get the DATA Records for further processing.

During the development and testing phase in the Sandbox system this works.

However when we moved this to production we encountered a situation where the G/L account was not being substituted so were assuming EXIT_SAPLIEDI_001 is not working properly. However when I reprocess this in production either by running the idoc with errors RBDMANI2 or BD87 the IDOC is properly posted and the G/L Account is substituted as well as if I try to repeat the output type of the billing document. So there are instances when in the actual business scenario it does not work except when I reprocess it.

I was wondering if there are any ideas why this could have happened?

Oh ... I also noticed when we transported the objects of the exit. When I try to double click the subroutine I made inside the exit it said the object does not exist. I had to generate the function group of FM EXIT_SAPLIEDI_001 in SE80 in production for it to reflect. I was wondering if this could have caused the issue.

Well I hope to hear from you.

Regards

Edited by: Rob Burbank on Dec 6, 2011 1:03 PM