‎2010 Dec 03 5:38 AM
i am converting the abap data to xml using cl_xml_document. in the converted xml data, i need to have one more node. in the below example, i want a node <variable name="productionOrderDetails"> to come after the Data node.
?xml version="1.0"?>
<Data>
<item>
<DISPO>100</DISPO>
<PLNBEZ>F126</PLNBEZ>
<GAMNG>300.000</GAMNG>
<ERFMG>285.000</ERFMG>
<PRE_PROD>100.000</PRE_PROD>
<PRE_BLOG>0.000</PRE_BLOG>
<BLOG_MTD>144.000</BLOG_MTD>
<BAL_PLAN>144.000</BAL_PLAN>
</item>
</Data>
thanks in advance
‎2010 Dec 03 6:11 AM
Hi ,
you can use class IF_IXML_NODE, first you need to read (go thru ) XML then need to Insert a New Node.
ref SAP Program BCCIIXMLT1/BCCIIXMLT*
regards
Prabhu