10-13-2008 4:37 AM
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
10-13-2008 4:42 AM
Hi,
what is the type of variable ls_XMLTAB. It looks like it is a structure. Probably you do not want to transfer each component of the structure into the file. Maybe it should something like ls_xmltab-data.
10-13-2008 5:36 AM
Hi Martin ,
The made the change but same error occurs at the bottom ,
If download the same xmltab with FM gui_download to pc it downloading okay .
Thanks For u r response f, further help will be great
Regards
Vinay Kolla
10-13-2008 5:39 AM
I can not think anything else. Did you try to use text mode instead of binary mode?
10-13-2008 5:46 AM
Hi Martin ,
I tried 'text mode ' as well the problem with text mode is I cant convert to
TRANSFER ls_XMLTAB-data TO lv_filename.
And its short dumping at that point .
Thanks And regards
Vinay Kolla
10-13-2008 5:51 AM
10-13-2008 5:53 AM
Runtime Errors UC_OBJECTS_NOT_CHARLIKE
>>>>>>>TRANSFER ls_XMLTAB-data TO lv_filename.
Thanks And Regards
Vinay kolla
10-13-2008 4:59 AM