Application Development and Automation 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: 
Read only

XML File not fully downloaded Fully from Application Server.

Former Member
0 Likes
679

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.

3 REPLIES 3
Read only

Former Member
0 Likes
519

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

Read only

0 Likes
519

Well I had some different issue. I have solved it myself.

Thanks for your reply.

Read only

Former Member
0 Likes
519

Hello Sir,

Could you please share, how you solved the issue because I am also facing the same issue.