cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC_EDI Mapping

Former Member
0 Kudos

Dear Experts,

IDOC(INVOIC02) to EDI scenario.

IDOC>>E1EDK05 having 1 or 2 line items which can be differentiated by condition types ZDR3 (describes Total amount) and ZDR5(vat amount).

The below mapping results either Z or S at the target SSG5. But, I need both Z and S should get displayed for the IDOC having 2 line items. In case, if the IDOC having 1 line item( i.e., ZDR3) then Z only get displayed. Therefore, the target queue should be Z and S or Z.

Can you please help me on this as I don't know how to iterate the segment E1EDK05 so as to produce Z and S when the idoc contains ZDR3 and ZDR5.

Thanks, Gopi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Moritz,

Thanks for the reply. To be clear if the IDOC contains,

>>only one line item (it should be always ZDR3). then , I want "Z" in SSG5.

>> suppose, two line items i.e., ZDR3 and ZDR5 then I want both Z and S in SSG5

Regards,

Gopi

Former Member
0 Kudos

Hi Gopi,

I am not sure if I understand you correct: You want a "S" in SSG5 and if there are more thant one line items, you want an additional "Z"? If this is correct, you may try and set a constant of "S" (because you will always have at least one line item I think). Additionally, you do a graphical mapping that checks if the amount is greater than 1 and if it is, you put a "Z" in there.

Hope it helps!

Moritz