Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem with mapping [Idoc to EDI]

Hi experts,

i am facing a new problem in my mapping (idoc to edi scenario)

my target is as follow:

InvoiceDME

>Invoice 1..1

>>InvoiceHeader 1..1

>>>IncotermsCode 1..1

My Idoc is as follow:

IDOC

>E1EDK17 0..20

>>QUALF

>>LKOND

>>LKTEXT

There can be 2 scenarios in my source:

1st:

IDOC

>E1EDK17

>>QUALF = 001

>>LKOND = lkond001

>>LKTEXT

2nd:

IDOC

>E1EDK17

>>QUALF = 001

>>LKOND = lkond001

>>LKTEXT

>E1EDK17

>>QUALF = 002

>>LKOND = lkond002

>>LKTEXT = lktext002

If QUALF=002 then I have to take both values of LKOND and LKTEXT and map them to incotermcode

else if qualf=001 alone, then map LKOND to incotermcode

my mapping is as follow:

http://www.flickr.com/photos/30317046@N05/2862446903/

as you can see, the problem is if i am in my second scenario, i get the wrong value in incotercode (lkond001 instead of the concatenate of LKOND and LKTEXT for QUALF = 002)

Do you have any idea how I can solve this??

Thanks a lot,

Regards,

Jamal

Not what you were looking for? View more on this topic or Ask a question