2009 Aug 13 7:46 AM
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
2009 Aug 13 8:01 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |