07-02-2014 11:40 AM
Hi all,
I have 1 file PIPPO.XML
I have create with ABAP program the same records in other file: PLUTO.XML
I used this internal table:
data: begin of TB_XML occurs 0,
line(255).
data: end of TB_XML.
in abap program I forced the values in the internal table with the move. (same records of PIPPO.XML).
example:
TB_XML-line = '<IdFiscaleIVA>'.
append TB_XML.
TB_XML-line = '<IdPaese>IT</IdPaese>'.
append TB_XML.
TB_XML-line = '<IdCodice>01234567890</IdCodice>'.
append TB_XML.
TB_XML-line = '</IdFiscaleIVA>'.
append TB_XML.
etc etc....
and I have dovnloaded PLUTO.XML with:
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
filename = 'C:\PLUTO.XML'
filetype = 'ASC'
TABLES
data_tab = TB_XML.
I used internet explorer:
the 1° file (PIPPO.XML) open in mode XML.....
2° file (PLUTO.XML) not open in mode XML but TXT mode...
WHY?
the records of 1 and 2 file is equal
I have to convert the TB_XML before download?
Please,
Help me, please.
best regards,
Marco.
07-02-2014 11:49 AM
Check SAP_CONVERT_TO_XML_FORMAT function
and cl_gui_frontend_services=>gui_download (BIN)
07-02-2014 11:49 AM
Check SAP_CONVERT_TO_XML_FORMAT function
and cl_gui_frontend_services=>gui_download (BIN)