Skip to Content

SAP PI Mapping error when duplicate segments coming in IDOC

Hi Friends,

I am facing a mapping issue when duplicate segments coming from IDOC. /CREMAS04/IDOC/E1LFA1M/E1LFBKM/STRA2 is mapped to target field which is mandatory in the target structure. Simple one to one mapping is done here by checking if the field exists in the idoc, but the input payload has two E1LFBKM segments out of which the first E1LFBKM does not have STRA2 field and the second E1LFBKM has STRA2 field value which should be mapped to target field.but due to this the null value in the first segment, null value is passed to output which is not correct.

could you please share your thoughts to avoid this null value in the output?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 01, 2016 at 07:25 PM

    Hi Pushpa,

    Use the below context for field STRA2.



    Add comment
    10|10000 characters needed characters exceeded