Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

sap to xml

Former Member
0 Kudos

Hi,

I want to convert sap data to below xml format.

I have 3 segments in my idoc type

one is parent segment and 2 are child segments.

and one of these 2 is item segment,means it is repetative segment.

I have 3 sutrutures for 3 segtment.

can any one tell me how to get in below format.

<node1>

<node2>

<field1>value</field1>

<field2>value</field2>

<field3>value</field3>

<field4>value</field4>

<node3>

<field5>value</field5>

</node3>

<node4>

<field6>value</field6>

<field7>value</field7>

</node4>

<node4>

<field6>value</field6>

<field7>value</field7>

</node4>

<node4>

<field6>value</field6>

<field7>value</field7>

</node4>

</node2>

</node1>

1 REPLY 1

Former Member
0 Kudos

Hello,

I suggest you to take a look at these:

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2657] [original link is broken] [original link is broken] [original link is broken]; and [/people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach].

Regards.