cancel
Showing results for 
Search instead for 
Did you mean: 

Copy INVOICE Idoc field E1EDK01-KUNDEUINR into field BSEG-STWEG via Idoc FM

rajeev_anandan
Explorer
0 Kudos
91

Hi all,

I need some help for updating the Idoc field E1EDK01-KUNDEUINR into the table field BSEG-STWEG via Idoc posting function module IDOC_INPUT_INVOIC_FI . I found a customer function 101 at line no 662 of include program LIEDIF4S which can be used but I am not sure how to populate the values into the table DOCUMENT_DATA of this customer function. These table values  will in turn be utilized by the BDC program for posting the FI document. Could anyone please provide any sample code which can be used for this purpose. We need to populate the BDC table correctly. I tried via debugging by adding a record into internal table DOCUMENT_DATA however the BDC is giving error. I searched the structure COBL but did not find any field for VAT reg no in this structure. FYI, I was following the steps mentioned in the below blog post: 

https://community.sap.com/t5/application-development-blog-posts/invoic-idoc-processing-of-intercompa...

Thanks in advance,

Rajeev

 

 

Accepted Solutions (0)

Answers (0)