Application Development 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: 

table help

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Check the following link:

http://www.sap-img.com/abap/sample-xml-source-code-for-sap.htm

Regards,

Bhaskar

3 REPLIES 3

Former Member
0 Kudos

Hi,

Check the following link:

http://www.sap-img.com/abap/sample-xml-source-code-for-sap.htm

Regards,

Bhaskar

Former Member
0 Kudos

Check this thread which gives details about your question -

Also have a look at the blog

/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

ashish

0 Kudos

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