2008 Nov 08 7:42 AM
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
2008 Nov 10 4:32 AM
Hello,
Check this links you will get some idea how to proceed...........
http://help.sap.com/saphelp_nw70/helpdata/en/a4/1f1e400191f72ee10000000a1550b0/content.htm
2008 Nov 14 10:17 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |