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

File transfer

Former Member
0 Likes
997

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
977

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?

8 REPLIES 8
Read only

Former Member
0 Likes
977

HI,

Can you please let us know the declarations for your internal table and work area please

regards

sai easwar

Read only

Former Member
0 Likes
978

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.

Read only

Former Member
0 Likes
977

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

Read only

Former Member
0 Likes
977

Hi,

I think the file will handle only 255 char. Check out this.

See the link below...........

Thanks.

If this helps you reward with points.

Read only

Former Member
0 Likes
977

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

Read only

Former Member
0 Likes
977

Hi,

The data in the file will be saved but it displays only the first 255 characters.

Write a program to download the contents, you can find the complete data.

Best Regards,

Anjali

Read only

Former Member
0 Likes
977

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.

Read only

Former Member
0 Likes
977

Thank you guys, the data was in the file although it did'nt show in AL11..:) Very helpful Tips:)