Skip to Content
0
Former Member
May 15, 2007 at 03:46 PM

table help

14 Views

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.