cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Mapping....

former_member529475
Active Contributor
0 Kudos

Hi All,

I have the Receiver Structure like

<Root>

<HDR>

<HDR1>

<HDR2>

</HDR>

<Det1>

<Det11>

<Det12>

</Det1>

<Det2>

<Det21>

<Det22>

</Det2>

</Root>

While testing Mapping for multiple line Items, I am getting the below structure

<Root>

<HDR>

<Det1>

<Det1>

<Det2>

<Det2>

But the expected Output is

<Root>

<HDR>

<Det1>

<Det2>

<Det1>

<Det2>

Could you plz tell, how to resolve this Error?

Thanks in advance..

Vasu

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi your problem is actually a common "feature" of XI/PI mappings :-).

Unfortunately there is no way around this using graphical mapping as your nodes will always appear in this order.

But you could write an XLST Transformation where you can build the structure as you want.

But in the graphical mapping the only work around is what the guy above posted by putting a root above it...

Former Member
0 Kudos

HI,

Here DET1 & DET2 have occurance as unbounded.

So make the one Root node as below

<Root> -- Occurance 1..Unbounded

-


>DET1 -- Occurance 1..1

-


>DET2 -- Occurance 1..1

Then you will get the alternative nodes as expected.

Thanks

Swarup

former_member192295
Active Contributor
0 Kudos

Hi,

Mention 1..1 occurance at receiver structure <Det1>

<Det2> it will come, i think now 0..unbound in receiver structure.

former_member529475
Active Contributor
0 Kudos

Hi Guna,

With 1..1, it will works only for single LineItems. It wont work for multiple line items.

Any other suggestions...

Regards

Vasu

former_member192295
Active Contributor
0 Kudos

HI,

I think graphical mapping it is difficult, better to go java & abap mapping we can get our required format