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

application server

Former Member
0 Likes
1,371

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

14 REPLIES 14
Read only

Former Member
0 Likes
1,335

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>

Read only

Former Member
0 Likes
1,335

Hi,

AL11 show only limited char rest is truncated

Read only

0 Likes
1,335

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

Read only

0 Likes
1,335

have you defined your internal table which stores the contents is big enough to store total record ??

regards

srikanth

Read only

0 Likes
1,335

Are you on a unicode system?

Rob

Read only

0 Likes
1,335

ya, am on a unicode system..

Read only

Former Member
0 Likes
1,335

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

Read only

Former Member
0 Likes
1,335

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

Read only

0 Likes
1,335

Hi Srikanth,

The downloaded file doesnt have the correct data. Its truncated as well..

Read only

0 Likes
1,335

I have defined the internal table to be of 1000 characters.

Read only

0 Likes
1,335

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

Read only

Former Member
0 Likes
1,335

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

Read only

0 Likes
1,335

can u give an example to make it a bit more clear..

Read only

0 Likes
1,335

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