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: 

Problems transfering generated XML file on server

former_member1033672
Participant
0 Kudos

Hi all.

I've got this problem: I generate XML using ixml library, and then I transfer it on local or on server. If I download it on local, there is no problem, but when I download that file on server, the file is corrupted - at the end of files are some rests of of other tags.

Basis: 4.6C

here is my code:


TYPES: BEGIN OF t_xml_line,
             data(256) TYPE x,
             END OF t_xml_line.


g_xml_table TYPE STANDARD TABLE OF t_xml_line.

* open file
  OPEN DATASET p_spath FOR OUTPUT IN BINARY MODE.
  IF sy-subrc NE 0.
    MESSAGE e299(r3) WITH 'Chyba pu0159i zalou017Eení souboru na serveru.'.
  ENDIF.

  LOOP AT g_xml_table ASSIGNING <fs_line>.
    TRANSFER <fs_line>-data TO p_spath.
    IF sy-subrc NE 0.
      EXIT.
    ENDIF.

  ENDLOOP.
  UNASSIGN <fs_line>.

  CLOSE DATASET  p_spath.

It's strange, because, when i send same table g_xml_table to GUI_DOWNLOAD, generated file is OK.

Some ideas?

Thx

Edited by: Filip Kouba on Sep 24, 2008 6:19 PM

2 REPLIES 2

Former Member
0 Kudos

I'm having the same problem. Did you ever get an answer to this?

0 Kudos

I thought I found the solution, but not. I think, that this is caused by some mess in memory because of some bug in basis R/3 release 4.6C...