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

XML to ABAP internal table conversion

Former Member
0 Likes
453

Hi Guys,

Via debugging,I downloaded the context of an ABAP webdynpro application into an XML file on my desktop. Now I want to use this file as an input to a FM. This is what I have done for it

1) Used the GUI_UPLOAD fm to convert the xml file on my desktop into xstring

2) used transformation like this

CALL TRANSFORMATION id

SOURCE xml = ls_xml_xstring

RESULT para = lt_result.

lt_result is of the type that the FM input expects

step 2 does not work. I know I am missing something there. Pls tell me what it is. Its a huge file and I dont want to manually create the input.

BR,

Girish

Hi Guys,

Via debugging,I downloaded the context of an ABAP webdynpro application into an XML file on my desktop. Now I want to use this file as an input to a FM. This is what I have done for it

1) Used the GUI_UPLOAD fm to convert the xml file on my desktop into xstring

2) used transformation like this

CALL TRANSFORMATION id

SOURCE xml = ls_xml_xstring

RESULT para = lt_result.

lt_result is of the type that the FM input expects

step 2 does not work. I know I am missing something there. Pls tell me what it is. Its a huge file and I dont want to manually create the input.

BR,

Girish

1 REPLY 1
Read only

Former Member
0 Likes
366

Hi,

Have you seen this weblogs which talks about this:

/people/r.eijpe/blog/2005/11/10/xml-dom-processing-in-abap-part-i--convert-an-abap-table-into-xml-file-using-sap-dom-approach

/people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach

/people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping

/people/r.eijpe/blog/2006/02/20/xml-dom-processing-in-abap-part-iiib150-xml-dom-within-sap-xi-abap-mapping

Hope this helps you....

Regards

Nishant Malhotra