Skip to Content
0
Former Member
Sep 20, 2011 at 02:57 AM

XML file creation in application server

265 Views

Hi Experts,

I have created an XML DOM tree and it is saved in an internal table of type

BEGIN OF xml_line,

data(256) TYPE x,

END OF xml_line.

I need to store this in the application server. The code that I'm using to copy the contents are as follows:

OPEN DATASET w_xml_out_file FOR OUTPUT

IN BINARY MODE.

IF sy-subrc EQ 0.

CLEAR: f_xml_table.

LOOP AT t_xml_table INTO f_xml_table.

TRANSFER f_xml_table TO w_xml_out_file.

ENDLOOP.

CLOSE DATASET w_xml_out_file.

ENDIF.

I downloaded this file from the application server onto my presentation server and checked its contents.

The problem is that all the data is not present in this output XML file. It is taking only some data.

When I use the same table to generate an output file directly on the presentation server, it does not have any problems.

Any help on the above issues is appreciated.

Regards

-Joe