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: 

abap file with xml code not work with internet-explorer !! why?

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

arthur_alvesteixeira
Active Participant
0 Kudos

Check SAP_CONVERT_TO_XML_FORMAT function
and cl_gui_frontend_services=>gui_download (BIN)

1 REPLY 1

arthur_alvesteixeira
Active Participant
0 Kudos

Check SAP_CONVERT_TO_XML_FORMAT function
and cl_gui_frontend_services=>gui_download (BIN)