Hi,
I am a XI developer and not so good with my ABAP skills.
I created a small ABAP prg, so that the client can upload file from their desktop to server.
I used 'upload' function to upload the file. I read the file placed at desktop into a"tab" variable.
Later using 'open dataset'...i transferred the file contents from the 'tab' to the file in the server.
The program runs successfully and creates a file in the server as well.
The file is an XML file.
One of the tabs (line) in the xml file is extremely long, having around 10000 characters in it. The preceding and succeeding lines are not more than 50 characters.
The new file created in the server has all the lines but the above mentioned line ( 10000 character) is shortened (7980 char only),although the preceding and the succeeding lines are available in the new file.
this is how the 'tab' variable was declared :
TYPES: BEGIN OF line,
col1(30000) TYPE c,
END OF line.
DATA: lin TYPE line,
tab LIKE TABLE OF lin.
I tried SRTLEN with the variable "tab" , the variable which was used in 'upload' function to read the file, and would find that the length was shortened there itself. The upload function was not able to read the longest line .Although the 'tab' has the capability to store 30000 char.
i understand that there might be some constrain with the max length of char, but please suggest me an alternative .
Please advice , how do i proceed.