on 11-17-2009 8:55 AM
Hi ALL,
Can any one guide me on how to convert internal table to XML format??? Actually i want to pass data from webdynpro ABAP to flex application.
Thanks in Advance
Regards
Shilpa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check out my tutorial here, and feel free to ask further questions:
http://www.heidoc.net/joomla/development-mainmenu-31/22-sap--xslt/15-sapxslt
Best regards,
Jan
The process is actually quite simple as you can use the built in CALL TRANSFORMATION command and an SAP delivered XSLT (either ID or ID_INDENT). Here is an example:
data xml_out type xstring.
data itab type standard table of sflight.
select * from sflight into table itab.
call transformation id
source itab
result xml xml_out.
Hi Jan,
Thanks for the reply.
I have tried the tutorial sent by you and have tried the same example(ABAP to XML). It creates the Customers.xml but the XML displays the following content:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
-
Switch from current encoding to specified encoding not supported. Error processing resource 'file:///C:/customers.xml'. Li...
<?xml version="1.0" encoding="utf-16"?>
Can you guide me why I am not able to see the correct XML content?
Thanks,
Shilpa
Hi Jan,
Thanks for the reply.
I have tried the tutorial sent by you and have tried the same example(ABAP to XML). It creates the Customers.xml but the XML displays the following content:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
-
Switch from current encoding to specified encoding not supported. Error processing resource 'file:///C:/customers.xml'. Li...
<?xml version="1.0" encoding="utf-16"?>
Can you guide me why I am not able to see the correct XML content?
Thanks,
Shilpa
HI Jan,
Thanks for your reply.
I have tried the CODEPAGE = '4102' in gui_download and I an getting the below ouput.
<?xml version="1.0" encoding="utf-16" ?>
- <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
- <asx:values>
<IPERSON />
</asx:values>
</asx:abap>
The about content of XML file doesnot contain the data of I person.
Can you help further on this.
Thank ,
Shilpa
User | Count |
---|---|
79 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.