Application Development and Automation 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: 
Read only

SAP_XML Convert

Former Member
0 Likes
528

HI Experts !

I Have developed ALV(customer master) report its will convert the sap Report data into xml format

am using CALL TRANSFERMATION ID IN ABAP REPORT.

How do i remove the XML Header Code (first three line).

I want to display the table name as <KNA1> insted of <TAB> Eg: 4th line

Find below SASP customer master sample XML. format.

<?xml version="1.0" encoding="utf-16" ?> " Remove"

- <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"> " Remove"

- <asx:values> " Remove"

- <TAB> " Remove" and "replace with table Name eg <KNA1>.

- <item>

<KUNNR>0000000001</KUNNR>

<NAME1>Nelson Tax & Associates</NAME1>

<NAME2 />

<ORT01>PHILADELPHIA</ORT01>

<REGIO>PA</REGIO>

<LAND1>US</LAND1>

<PSTLZ>19115</PSTLZ>

<STRAS>1 1 113 Germantown Ave</STRAS>

<TELF1>(215) 665 4534</TELF1>

</item>

please help me the same...

and is there any other solution to write the Custom XML code in SAPABAP.

thanks

Ravi.

3 REPLIES 3
Read only

athavanraja
Active Contributor
0 Likes
486

to do that you may have to just use "concatenate" statement to hand build the xml

Read only

0 Likes
486

Thanks For Your Replay,

Great ! am also trying the same.

Can you have any Sample Code that would be very helpful to me.

Regards.

Ravi.

Read only

Former Member
0 Likes
486

wrote Customized xml code using Concatenate.