2006 Feb 08 9:49 AM
Hi, I'm trying to transfer a workarea to a file, but during the transfer, a part of the work area is truncated, I've tried to use the "length" addition, and specified the length longer than the length of the workarea, but it's still truncated. .. the code looks like this:
OPEN DATASET lv_filename FOR OUTPUT MESSAGE lv_msg
IN TEXT MODE ENCODING DEFAULT.
TRANSFER sy-uline TO lv_filename.
LOOP AT it_printdata INTO wa_printdata.
TRANSFER wa_printdata TO lv_filename.
endloop.
....I transfer an sy-uline as well, and this one is truncated as well( around position 315)...
Can anybody help me with this?
2006 Feb 08 9:52 AM
Hi Baljinder,
1. How do u know its truncated ?
2. If u are seeing thru AL11,
it will show only 255 characters
3. The file is storing all lines.
regards,
amit m.
Hi, I'm trying to transfer a workarea to a file, but during the transfer, a part of the work area is truncated, I've tried to use the "length" addition, and specified the length longer than the length of the workarea, but it's still truncated. .. the code looks like this:
OPEN DATASET lv_filename FOR OUTPUT MESSAGE lv_msg
IN TEXT MODE ENCODING DEFAULT.
TRANSFER sy-uline TO lv_filename.
LOOP AT it_printdata INTO wa_printdata.
TRANSFER wa_printdata TO lv_filename.
endloop.
....I transfer an sy-uline as well, and this one is truncated as well( around position 315)...
Can anybody help me with this?
2006 Feb 08 9:51 AM
HI,
Can you please let us know the declarations for your internal table and work area please
regards
sai easwar
2006 Feb 08 9:52 AM
Hi Baljinder,
1. How do u know its truncated ?
2. If u are seeing thru AL11,
it will show only 255 characters
3. The file is storing all lines.
regards,
amit m.
2006 Feb 08 9:53 AM
Hi,
Whats the length of the workarea. Is it enough to hold the data that you are moving from Internal Table?
You can debug the code and please check whether all the datas are passed to Workarea from the Internal Table.
I think it helps you.
Regards,
Anbu
2006 Feb 08 9:53 AM
2006 Feb 08 9:57 AM
Hi,
Did you try to read from the server to internal table and checked the content, it is truncated or correct one.
if not try it after trnasfering , use read dataset and check.
regards
vijay
2006 Feb 08 10:10 AM
2006 Feb 08 1:15 PM
In AL11 transaction, when file is displayed.
download the file to local system by using menu
System - > list - > save ->local file.
you can directly check the contents of the file to verify where the data has been transfered or not.
Regards
Vivek
PS : Reward points if his tip helps you.
2006 Feb 14 9:16 AM
Thank you guys, the data was in the file although it did'nt show in AL11..:) Very helpful Tips:)
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |