2007 May 15 4:46 PM
Hallow
I have a internal table person_tab that I wont to convert to xml file
I use metod and in l_xml I get the file that I wont
Now I wont write the file to place in pc but I cant because l_xml its not internal table(I use gui_download)
How can I do that
This is my code
regards
ATA : l_xml TYPE REF TO cl_xml_document.
CREATE THE XML OBJECT
CREATE OBJECT l_xml.
CONVERT THE DATA TO XML
CALL METHOD l_xml->create_with_data( dataobject = person_tab[] ).
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING filena = 'I:\CAMp
test_xml\hrsap'
filetype = 'BIN'
codepage = 'UTF-8'
TABLES
data_tab = l_xml
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
2007 May 15 4:49 PM
Hi,
Check the following link:
http://www.sap-img.com/abap/sample-xml-source-code-for-sap.htm
Regards,
Bhaskar
2007 May 15 4:49 PM
Hi,
Check the following link:
http://www.sap-img.com/abap/sample-xml-source-code-for-sap.htm
Regards,
Bhaskar
2007 May 15 4:52 PM
2007 May 15 5:02 PM
hi Ashish Gundawar
there is no why that i can convert l_xml to somthing
i like table or somthing i can write to server or somthing else
regards