Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SplitByValue

hi,

Need to map the Source to Target

Source:

<a>

<qualf>001</qualf>

<text>short-description</text>

<a>

<a>

<qualf>002</qualf>

<text>long-description</text>

<a>

<b>

<text1>tax language description</text1>

<email>email description</email>

</b>

Target:

<ext name="short-description">long-description</ext>

<ext name="Tax Language">tax language description</ext>

<ext name="Receiving Contact">email description</ext>

if a/qualf = '001' then i have to add the short-description to the /ext/name attribute as shown above

if a/qualf = '002' then i have to add the long-description to the /ext attribute as shown above

remaining two lines i have to hardcode the /ext/name attribute to "Receiving Contact" and "Tax Language" respectively and the description has to be

mapped to the /ext/name and /ext respectively.

I tried to use SplitByValue but i couldn't achieve the above result.

How can i achieve the above target?

Thanks,

Tirumal

replied

Right click on node ext, choose "Duplicate Subtree" from context menu. Repeat until you have 4 nodes ext.

Regards

Stefan

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question