‎2006 May 18 5:18 PM
Hi,
i am uploading a file of 1000 characters onto the appliaction server using transaction CG3Z. But when i go and see the file in AL11, i see only the first 255 char. rest are truncated. why is it so?
Regards
Nishant
‎2006 May 18 5:22 PM
Hi Nishant,
This is one of the limitations of AL11, it is UNIX system.
But if you read the same file back in your program then you will get the 1000 char.
Don't worry, your data in the file in intact.
<b>Reward points if it helps.</b>
‎2006 May 18 5:25 PM
‎2006 May 18 5:35 PM
WHen am downloading the file frm application server and reading onwards from 738'th position, the values are being shown as blank.. The file i initially uploaded to application server had values at that position.
Regards
Nishant
‎2006 May 18 5:44 PM
have you defined your internal table which stores the contents is big enough to store total record ??
regards
srikanth
‎2006 May 18 6:00 PM
‎2006 May 18 6:01 PM
‎2006 May 18 5:42 PM
Hi Nishant,
You have the data in File, But you are able to see only 255 chars. But when you download the data you can see the full contents.
Regards
vijay
‎2006 May 18 5:42 PM
hi,
AL11 shows only fixed length of characters.if you want reconfirm whether upload to application server(by using CG3Z) is success or not,
do the download to presentation server using CG3Y transaction & check the contents. i believe it will have exact data.
Regards
Srikanth
‎2006 May 18 5:45 PM
Hi Srikanth,
The downloaded file doesnt have the correct data. Its truncated as well..
‎2006 May 18 5:47 PM
‎2006 May 18 5:58 PM
Hi nashant,
When u use CG3Z u can download data from PC TO APPLICATION SERVER.
when u download from application to pc u can see all the data.
When u use CG3Y u can download data from APPLICATION SERVER TO PC.
Thanks
Vikranth Khimavath
‎2006 May 18 5:57 PM
Hi,
Try using Addition option with Transfer
... LENGTH len
Effect
The length of the data object to be written is defined by len, where len can be either a constant or a variable. The length is specified in bytes if the file is opened in BINARY MODE or LEGACY MODE. Note that alignment bytes are included in the length, if the data object is a structure. If the file is opened in TEXT MODE, the length refers to the number of characters that are to be written.
If len is shorter than the data object f, the system truncates f on the right.
With type I or F fields, unexpected results may occur if len is shorter than the default length for the field type.
Close the Thread if the problem is solved. Mark Helpfull answers
Regards
‎2006 May 18 6:00 PM
‎2006 May 18 6:03 PM
Hi Nishant,
Have tried using lenght option with transfer
As i posted above . ( I think it takes 255 char as default ....no sure )
just check wheather it works
TRANSFER rec TO '/usr/test.dat' length 1000.
or
lv_lenght = strlen ( rec ).
TRANSFER rec TO '/usr/test.dat' length lv_lenght.
or
Message was edited by: Manoj Gupta