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

CALL TRANSFORMATION

Former Member
0 Likes
1,165

My XML file like this.

<?xml version="1.0" encoding="iso-8859-1" ?>

- <CUSTOMERS>

- <PERSON>

<customer_id>1</customer_id>

<first_name>Jan</first_name>

<last_name>Krohn</last_name>

</PERSON>

- <PERSON>

<customer_id>2</customer_id>

<first_name>James</first_name>

<last_name>Kirk</last_name>

</PERSON>

</CUSTOMERS>

-


CALL TRANSFORMATION z_xml_to_abap

SOURCE XML gt_itab

RESULT (gt_result_xml).

Above is my statement i double clicked on z_xml_to_abap

it goes to XSLT TCODE it show below code

-


<xsl:transform version="1.0"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:sap="http://www.sap.com/sapxsl"

>

<xsl:strip-space elements="*"/>

<xsl:template match="/">

</xsl:template>

</xsl:transform>

-


Then what should i do.. i need help for genrating XSLT text.

I want to convert above XML data in SAP-ABAP internal table ?

Thanks.

Jim

My XML file like this.

<?xml version="1.0" encoding="iso-8859-1" ?>

- <CUSTOMERS>

- <PERSON>

<customer_id>1</customer_id>

<first_name>Jan</first_name>

<last_name>Krohn</last_name>

</PERSON>

- <PERSON>

<customer_id>2</customer_id>

<first_name>James</first_name>

<last_name>Kirk</last_name>

</PERSON>

</CUSTOMERS>

-


CALL TRANSFORMATION z_xml_to_abap

SOURCE XML gt_itab

RESULT (gt_result_xml).

Above is my statement i double clicked on z_xml_to_abap

it goes to XSLT TCODE it show below code

-


<xsl:transform version="1.0"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:sap="http://www.sap.com/sapxsl"

>

<xsl:strip-space elements="*"/>

<xsl:template match="/">

</xsl:template>

</xsl:transform>

-


Then what should i do.. i need help for genrating XSLT text.

I want to convert above XML data in SAP-ABAP internal table ?

Thanks.

Jim

2 REPLIES 2
Read only

Former Member
Read only

Former Member
0 Likes
608

ok dudes