SELECT FROM scarr
FIELDS *
INTO TABLE @DATA(scarr).
CALL TRANSFORMATION id SOURCE scarr = scarr
RESULT XML DATA(xml).
cl_demo_output=>display_xml( xml ).
<asx:abap version="1.0" xmlns:asx="http://www.sap.com/abapxml">
<asx:values>
<SCARR>
<SCARR>
<MANDT>000</MANDT>
<CARRID>AC</CARRID>
<CARRNAME>Air Canada</CARRNAME>
<CURRCODE>CAD</CURRCODE>
<URL>http://www.aircanada.ca</URL>
</SCARR>
<SCARR>
<MANDT>000</MANDT>
<CARRID>AF</CARRID>
<CARRNAME>Air France</CARRNAME>
<CURRCODE>EUR</CURRCODE>
<URL>http://www.airfrance.fr</URL>
</SCARR>
<SCARR>
<MANDT>000</MANDT>
<CARRID>AZ</CARRID>
<CARRNAME>Alitalia</CARRNAME>
<CURRCODE>EUR</CURRCODE>
<URL>http://www.alitalia.it</URL>
</SCARR>
</SCARR>
</asx:values>
</asx:abap>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 |