cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping help

Former Member
0 Kudos

Hello All,

I have INVOIC->XML scenario.

REceiver strcutre is given below

<invDetail>

<feeType>

<feeName>

<PartNumber>

</invDetail>

I have repeat the invDetail for all the Fee segments in the INVOIC Idoc that is E1EDP05 for all lineitems.

for example:

E1EDP01

E1EDP19

IDTNR 1123

E1EDP05

E1EdP05

E1EDP01

E1EDP19

IDTNR 1883

E1EDP05

I want the output to be

<invDetail>

<feeType>

<feeName>

<PartNumber>1123</PartNumber>

</invDetail>

<invDetail>

<feeType>

<feeName>

<PartNumber>1123</PartNumber>

</invDetail>

<invDetail>

<feeType>

<feeName>

<PartNumber>1883</PartNumber>

</invDetail>

Can someone please help.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello prabhu,

if i understood correctly..

the hierarchy is


E1EDP01
   E1EDP19-IDTNR (123)
   E1EDP05

i think it wil work if u do as below:-

map the node

E1EDP05 

to

 <invDetail>

directly.

set the context of

E1EDP05 

to

E1EDP01 

map E1EDP19-IDTNR (123) _> use one as many ( give

E1EDP05 

in both 2nd and 3rd )-><PartNumber>

if the source value of

<feeType>
<feeName> 

is present in

E1EDP05 

, map directly.

and if its there under E1EDP01 , use the same function use one as many...

Regards

biplab

Answers (0)