Skip to Content

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

graphical mapping issue

Hi friends,

can anyone help me on this regard?

input xml structure seems like below: We have classes and subclasses to identify and classify in a segment as requirement.

<root>

     <item>

         <class>

             <id>A</id>

             <value>1001</value>

         </class>

     </item>

     <item>

         <class>

             <id>B</id>

             <value>1002</value>

         </class>

     </item>

     <item>

         <class>

             <id>C</id>

             <value>1003</value>

         </class>

     </item>

     <item>

         <subclass>

             <id>A</id>

             <category>Business</category>

         </subclass>

     </item>

     <item>

          <subclass>

             <id>B</id>

             <category>economy</category>

         </subclass>

     </item>

     <item>

         <subclass>

             <id>C</id>

             <category>student</category>

         </subclass>

     </item>

     <item>

         <subclass>

             <id>C</id>

             <category>soldier</category>

         </subclass>

     </item>

</root>

Needed Output xml structure shown below:

<root>

    <item>

         <class>

             <id>A</id>

             <value>1001</value>

         </class>

         <subclass>

            <id>A</id>

             <category>Business</category>

         </subclass>

     </item>

     <item>

         <class>

             <id>B</id>

             <value>1002</value>

         </class>

         <subclass>

             <id>B</id>

             <category>economy</category>

         </subclass>

     </item>

     <item>

         <class>

             <id>C</id>

             <value>1003</value>

         </class>

         <subclass>

             <id>C</id>

             <category>student</category>

         </subclass>

         <subclass>

             <id>C</id>

             <category>soldier</category>

         </subclass>

     </item>

</root>


thank you,

Peter

Former Member
replied

Hi Peter,

you need to do small modification in source structure like below, for subclass node name should be item1

regards,

raj

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