cancel
Showing results for 
Search instead for 
Did you mean: 

graphical mapping issue

Former Member
0 Kudos

Hi guys

we need a little help to solve this requirement below;

Input xml file

<Root>

     <Header>

        <H1>headerdata</H1>

    </Header>

    <Item>

        <I1>itemdata1</I1>

    </Item>

    <Item>

        <I2>itemdata2</I2>

    </Item>

    <Item>

        <I3>itemdata3</I3>

    </Item>

</Root>

needed output file is;

<Root>

     <Data1>

        <header>headerdata</header>

        <item>itemdata1</item>

    </Data1>

    <Data2>

        <header>headerdata</header>

        <item>itemdata2</item>

    </Data2>

    <Data3>

        <header>headerdata</header>

        <item>itemdata3</item>

    </Data3>

</Root>

can anyone assist me? Thank you

Accepted Solutions (0)

Answers (5)

Answers (5)

Harish
Active Contributor
0 Kudos

Hi Peter,

You can use the standard function to archive this. As suggested by other member you can use CopybyValue or use one as many function to archive this.

Mapping is -

and the test of mapping

Regards,

Harish

rcsegovia
Active Participant
0 Kudos

You can create so many datas like items in source and later replicate header with CopyValue as Javier says, Item should be mapped directly.

cheers,

Roberto.

iaki_vila
Active Contributor
0 Kudos

Hi Peter,

With a global varibale could work too. Check this http://wiki.scn.sap.com/wiki/display/XI/Implementing+the+Functionality+of+useOneAsMany+by+Graphical+...

Regards.

Former Member
0 Kudos

Hi Peter,

Map UseOneAsMany function to map Header.

Map Item directly.

Regards,

Pranav

javier_alcubilla
Contributor
0 Kudos

Hi Peter

What is your problem exactly?

To replicate headerdata in all target segments use graphical function CopyValue (inside Constants functions)

Regards

Javi