cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Problem in IDOC to XML scenario

Former Member
0 Kudos

hi,

In the target i have a tag which says:

Extrinsic 0..unbounded

name required

I have to map the above target to a source which comes from different IDOC segments.

E.g.

if E1EDP17.Qualf = '002' then map the E1EDP17.lktext to the "name"

if E1EDP17.Qualf = '001' then map the E1EDP17.lktext to the Extrinisc.

If data resides in other segments, how would i map those segments to the same output in xml.

Example:

<Extrinsic name="a">test</Extrinsic> -> this comes from E1EDP17 segment

<Extrinsic name="a">test</Extrinsic> -> comes from segment A

<Extrinsic name="a">test</Extrinsic> -> comes from segment B

How can i use a single Target to map from different sources if they are in different segments?

Any tips?

Thanks,

KP

Message was edited by: Tirumal Kumar Pappu

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

>>><b>If data resides in other segments, how would i map those segments to the same output in xml.</b>

Use removeContext node function.

Regards,

Smitha

Former Member
0 Kudos

Tirumal,

U will have to use comination of node functions like <b>exists</b> and <b>mapWithDefault</b>.

Are you sure that, E1EDP17.Qualf will have the value '002' or '001'.

There are some very good blogs on mapping by Sravya. Go through them and also go through the following link.

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm">sap help for Mapping</a>

Please reward if helpful