cancel
Showing results for 
Search instead for 
Did you mean: 

Creating IDoc Extensions

0 Kudos

hi colleagues,

I'd like to ask you my requirement. I modified the printing of the invoice by inserting the value of the net, the VAT and the total, in addition to the euro, also in GBP.

Once the printout has changed, the GBP (internal currency) values must be sent via edi, how can i define the new segment in the idoc for the new values?

Currently in the idoc I am the segment E1EDS01 for the values in EUR, I would like to add a second segment for the values in GBP.

Is there a segment for domestic currency?

Accepted Solutions (0)

Answers (1)

Answers (1)

DominikTylczyn
Active Contributor
0 Kudos

Hello federico_cella

I think you don't need to enhance the IDoc as such i.e. to create IDoc enhancement and add any custom segments. E1EDS01 can be used multiple times in IDoc type INVOIC02, up to 30 times.

You can just add another E1EDS01 segment with values in GBP and maybe use distinct value in qualifier i.e. SUMID field to distinguish standard E1EDS01 from the one you add. It all depends on your exact scenario.

You can manipulate IDoc content and segments with EXIT_SAPLVEDF_002 (user-exit LVEDF001). The exit is called after each segment of INVOIC* is created. You should add extra segments to INT_EDIDD parameter of the EXIT_SAPLVEDF_002 function.

Best regards

Dominik Tylczynski