cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI Mapping error when duplicate segments coming in IDOC

former_member255627
Participant
0 Kudos

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?

Thanks,

Pushpa

Accepted Solutions (1)

Accepted Solutions (1)

former_member182412
Active Contributor
0 Kudos

Hi Pushpa,

Use the below context for field STRA2.

Regards,

Praveen.

Answers (0)