hi all,
i wanto to convert the data of internal table in to XML,
using CALL TRANSFORMATION.
my internal table has 4 records and i want all the four records to come in same XML file but only my last record is coming,
my XSLT program is as shown below:
XSLT:
<?sap.transform simple?>
http://www.sap.com/transformation-templates">
<tt:root name="ROOT"/>
<tt:template>
<file tt:ref="ROOT">
<header>
<MANDT tt:value-ref="MANDT"/>
<CUSNO tt:value-ref="CUSNO"/>
<CUSNAME tt:value-ref="CUSNAME"/>
<CUSCITY tt:value-ref="CUSCITY"/>
</header>
</file>
</tt:template>
</tt:transform>
and my ABAP code is:
select * from zpidoc into corresponding fields of table i_data.
loop at i_data INTO wa_data.
call TRANSFORMATION ZTRANS_XML_27
OPTIONS XML_HEADER = 'NO'
SOURCE root = wa_data
string = string integer = integer
RESULT XML ZXML_TEST.
endloop.
can any one helpme in this 😊
thanks in advance.