cancel
Showing results for 
Search instead for 
Did you mean: 

Populating a segment in the target idoc based on dif

former_member187447
Participant
0 Kudos

Hi

We have E1MARCM, E1MBEWM and ZE1MARCM (constum segment) in the material IDOC and we map the idoc to similar idoc which has same sement in the target idoc material idoc.

ZE1MARCM segment is the custom segment and is the subsegment of E1MARCM. while populating the target idoc segment, we are taking the values from E1MBEWM segment and populting in ZE1MARCM, but the problem is as ZE1MARCM doesnt get populated unless E1MARCM gets populated in the source, So, we need to manually populate E1MARCM in the target message with some default valaues incase we dont have E1MARCM coming in the source. Just would like to know what is the effort in the XI side. Is it a good design to implement this in XI or should we change the ABAP in the ERP side to always populate the E1MARCM on the source idoc which is a standard idoc.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos
we need to manually populate E1MARCM in the target message with some default valaues incase we dont have E1MARCM coming in the source.

Use mapWithDefault std function or ifelse function in PI. It solves your issue.

Is it a good design to implement this in XI or should we change the ABAP in the ERP side to always populate the E1MARCM on the source idoc which is a standard idoc.

It anyways dont take much effort in doing so in XI. If you can do so in ABAP, even that would be fine.

Regards,

Swetha