cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC Mapping

Former Member
0 Kudos

Hi,

I have a sceanrio where i have to send value based on field not exit. its IDOC to soap scenario.

E1WBB01 -


MATNR

E1WBB01---E1WBB03E1WBB04---EAN11,HPEAN

when HPEAN in E1WBB04 not exit then i have to send MATNR and EAN11 to target. E1WBB04 will occure many times.

there will be one MATNR and multiple E1WBB04 segement.

so 1st data set will be :

MATNR=10001

E1WBB04--EAN11=111

E1WBB04-HPEAN=X

2nd data set will be:

MATNR=10001

E1WBB04--EAN11=222

so i have to send 2nd data set to target.

Pls provide me the mapping.

Regards

Laxmi Bhushan

Accepted Solutions (0)

Answers (4)

Answers (4)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

You can use this mapping:

For EAN


HPEAN -> mapWithDefault: -> equalsS -> ifWithoutElse -> removeContext -> splitByValue:eachValue -> EANTarget
               Constant: -> / EAN11 -> /

Hope this helps,

Mark

venkatagiri_gongadi
Participant
0 Kudos

Hi,

Try below one.

if-->HPEAN>Exist->not>then>MATNR>Terget

if-->HPEAN>Exist->not>then>EAN11>Terget

change context(Parent node) level for MATNR and EAN1 fields.

GreatDay,

Girii

Former Member
0 Kudos

Hi,

> I have a sceanrio where i have to send value based on field not exit. its IDOC to soap scenario.

> E1WBB01 -


MATNR

> E1WBB01---E1WBB03E1WBB04---EAN11,HPEAN

> when HPEAN in E1WBB04 not exit then i have to send MATNR and EAN11 to target. E1WBB04 will occure many times.

> there will be one MATNR and multiple E1WBB04 segement.

HPEAN - remove contexts node function - collapse context node function - exists node function - not function - then map MATNR field.

Change HPEAN context to E1WBB01 segment.

If you want these field multiple times in target then you need to use OneAsMany node function

Regards,

Venkata Ramesh

Former Member
0 Kudos

Hi,

when HPEAN in E1WBB04 not exit then i have to send MATNR and EAN11 to target. E1WBB04 will occure many times.

please go through below blog

http://wiki.sdn.sap.com/wiki/display/XI/ToExistOrNottoExististheQuestion

regards,

ganesh.