‎2011 Jul 20 5:16 PM
Hi,
I am downloading an XML file from Application server. It's only downloading partially. Below is the Declaration for target Internal table.
DATA: BEGIN OF infile OCCURS 0,
line(65535) TYPE c,
END OF infile.
SAP does not allow more than 65535 characters for a data type of type C. So its only downloading till that length.
If I am using type as STRING, its downloading in different format. Also its not allowing me to put these data into internal table.
Below is my code for downloading.
OPEN DATASET p_unix IN TEXT MODE MESSAGE msg.
IF sy-subrc <> 0.
MESSAGE i001(38) WITH 'Error on Open of File: ' msg.
ELSE.
WHILE sy-subrc = 0.
READ DATASET p_unix INTO infile.
CHECK sy-subrc = 0.
APPEND infile.
ENDWHILE.
CLOSE DATASET p_unix.
Is there any way to convert string into XML format & put it in the internal table?
Kindly suggest me any other way, so I can download the entire set of file into the internal table.
Thanks,
Debi.
‎2011 Aug 03 10:28 AM
Hi ,
Try downloading the file from the application server using the TCode CG3Y on your local machine.
Then use the FM GUI_UPLOAD to upload the contents in an internal table.
Thanks,
Manish
‎2011 Aug 03 3:13 PM
Well I had some different issue. I have solved it myself.
Thanks for your reply.
‎2020 Apr 28 7:39 AM
Hello Sir,
Could you please share, how you solved the issue because I am also facing the same issue.