01-22-2008 12:05 PM
Hello Friends,
I have an XML string,is there a function module,which helps me in
downloading this XML string as an XML file ,to local disk.
regards
kaushik
01-22-2008 12:08 PM
Hello Kaushik
Define an itab of TYPE string, append your single XML string and download the itab using method GUI_DOWNLOAD of class CL_GUI_FRONTEND_SERVICES.
DATA:
lt_xml TYPE TABLE OF string.
APPEND ld_xml TO lt_xml.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
EXPORTING
...
Regards,
Uwe
01-22-2008 12:15 PM
Try this way
DATA: BEGIN OF it_dados OCCURS 0,
data(256) TYPE x,
END OF it_dados.
OPEN DATASET l_sfile FOR INPUT MESSAGE msg IN BINARY MODE.
IF sy-subrc NE 0.
WRITE: / msg.
STOP.
ENDIF.
REFRESH it_dados. CLEAR it_dados.
DO.
READ DATASET l_sfile INTO it_dados. "<<<<
APPEND it_dados. "<<<<
ENDDO.
close dataset l_sfile. "<<<<
Regards.