Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Downloading Xml file to application server

Hi All ,

I am converting a internal table into XML fomat using FM 'SAP_CONVERT_TO_XML_FORMAT' and then download it to application serever .

The code to download is

OPEN DATASET p_fpath IN binary mode FOR OUTPUT .

LOOP AT XMLTAB INTO ls_XMLTAB.

TRANSFER ls_XMLTAB TO lv_filename.

CLEAR ls_XMLTAB.

endloop.

The file is downloaded on application with some junk characters in the end . when i open in explorer there an error in bottom of file is the error.

Any input will be great , Thanks

Thanks And Regards

Vinay Kolla

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question