09-10-2008 2:16 PM
Hello All,
I have a requirement wherein I am downloading the contents of an internal table from a report program to the application server (AL11) as a file.
I have written the code as below:
LOOP AT gt_file INTO gs_file.
TRANSFER gs_file-content TO lv_filename.
ENDLOOP.
where,
the declaration is as follows:
TYPES: BEGIN OF ty_file ,
content TYPE string ,
END OF ty_file .
DATA: gt_file TYPE STANDARD TABLE OF ty_file,
gs_file TYPE ty_file.
DATA:lv_filename TYPE string .
The problem is that in the downloaded file, for each record only 512 characters are displayed. The remaining record is truncated.
Please help.
I also tried declaring as:
TYPES: BEGIN OF ty_file ,
content(5000) TYPE c ,
END OF ty_file .
But in vain.
Thanks,
Dawood.
Edited by: Dawood.S.Ghasletwala on Sep 10, 2008 6:47 PM
09-10-2008 2:23 PM
Hi,
The report output is limited to 1025 char for a row in display mode. This holds good even for a file display. You need to download the file to see the full data.
Thanks,
Mahesh
09-10-2008 2:25 PM
Try looking at the file from OS. It might be giving you a wrong view from AL11.
A
09-10-2008 2:28 PM
Hi,
You can view the files in AL11(application server_.
Using FTP Client,
you can view the data in the server..
Also login to the unix server and can view the files...
Thank you
09-10-2008 2:32 PM
yes it will take only 512 charters only, file created on (al11)application server.
but u can see full length .txt file by download from app. server to local system by using CG3Y
CG3Z
there is no problem in your program, u can't see more than 512 char length in application server in SAP.
i have also got this kind of problem.
In this kind of interface once u create a file on all, the other system will fetch the file from AL11 and do some formating and send the related to the other external system.
so, in SAP side our work is to create a file all 11, with required format thats it.
if u want to see whole file check with tcode CG3Y
09-10-2008 2:37 PM