cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with splitbyvalue. Please help!

gopalkrishna_baliga
Participant
0 Kudos

Hi Experts,

I want to transform the following source XML to the given target XML. I have used splitbyvalue but all in vain.

Source XML:

<Test_out_split>

<header>

<item>one</item>

<item>two</item>

<item>three</item>

</header>

</Test_out_split>

Target XML:

<Test_In_split>

<New_Context>

<item>one</item>

</New_Context>

<New_Context>

<item>two</item>

</New_Context>

<New_Context>

<item>three</item>

</New_Context>

</Test_In_split>

I have done the mapping like this:

item ->SplitByValue(valuechanged)---->New_Context

This does not work. Can somebody tell me how to use the splibyvalue mapping correctly to achieve my target XML?

Please help!

Thanks

Gopal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

2 elements are impacted, the father "New_Context" and the son "item".

Try so:

item -> New_Context

item -> SplitByValue(valuechanged) -> item

Regards,

Sandro

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

this is how the mapping should be,

header ( from source ) --> New_Context ( Target)

Item ( from source) --> Split by Value --> Item ( target)

Try this and it will work as expected.

More on this in this link,

http://help.sap.com/saphelp_nw04/helpdata/en/21/3bb8c495125e4eb5969f0377885fe0/content.htm

Regards

Bhavesh