cancel
Showing results for 
Search instead for 
Did you mean: 

copy complete node using udf

former_member200267
Participant
0 Kudos

I want to copy the entire node using udf...can anyone throw light on this

The 'header' node has got too many subnodes and fields, so if i want to use "useoneasmany" then its tedious for process to do for all steps.

so I want to write an udf to do this.

sourcce node structure is like this

<entry>

<Header>

<Line>

</entry>

target structure need to be ...

<entry>

<Header>

<Line>

</entry>

<entry>

<Header>

<Line>

</entry>

..

...

...

<entry>

<Header>

<Line>

</entry>

in the actual logic we are splitting the entry nodes based on the line node....so for each entry node the 'header' node need to be copied

if this is not clear let m eknow.. i will explain in detail

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

In PI 7.1 you can copy the whole node, in prior releases there is no other way to use "useOneAsMany".

former_member200267
Participant
0 Kudos

Im using PI 7.1, but Im new to 7.1, earlier i was using7.0. So, could u tell how to do this in 7.1

Edited by: Shankar Raju Devadoss on Jul 5, 2010 10:52 PM

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

refer below blog it will solve your problem

/people/william.li/blog/2008/02/14/sap-pi-71-mapping-enhancements-series-copy-xml-subtree

Regards,

Raj