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

Alv column problem.

Former Member
0 Likes
1,824

Hi,

I have an alv report which is not displaying the complete text in one of the alv's column.

The text is visible in my internal table and the size of text is 169 characters.

But when i am using the same internal table for displaying the data in alv, the alv is just showing the first 128 characters of the column.

i have tried wa_fcat-outputlen and it didn't solve my problem.

Any suggestion?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,623

OSS note

857823 - ALV grid: Strings with a maximum of 128 characters

Symptom

Entries in cells of the type CHAR or string are truncated after 128

characters in the SAP GUI.

More Terms

ALV Grid Control (cl_gui_alv_grid), function module (Full-screen) Grid

(Reuse_alv_grid_display, SAPLSLVC_FULLSCREEN), SAPGUI, back end, front end

Cause and Prerequisites

The data table that is sent to the front end only allows character values

with the length 128.

Solution

This is the standard system behavior and cannot be changed.

The note is not release-dependent

10 REPLIES 10
Read only

sarbajitm
Contributor
0 Likes
1,623

Hi,

Where you declare the layout(Form for layout),put the following code snippet there

p_it_layout-colwidth_optimize = 'X'.

where p_it_layout is the internal table of layout type i.e. slis_layout_alv.

It may solve your problem.

Regards.

Sarbajit

Read only

Former Member
0 Likes
1,623

Hi Sarbajit,

I have already written this code in my program.

Thanks.

Read only

Former Member
0 Likes
1,623

Hi ,

Also set LINE-SIZE 255 in Report statement . I mean -

REPORT 'Rep name' LINE-COUNT 65(3)

LINE-SIZE 255

MESSAGE-ID ZZ.

Read only

0 Likes
1,623

I have tried it but it's not working.

Thanks

Read only

0 Likes
1,623

Hi Jonu!

Kindly check this thread

Link :[;.

In this thread somebody has told that a line in ALV can take maximum 1023 character.......that's why I'm telling you to check it out.

May it helps you to solve your problem.

Thanks and Regards.

Sarbajit

Read only

0 Likes
1,623

Hi Sarbajit,

My line in alv has less than 1024 characters.

The problem is not of line.

I know that a maximum number of characters which can be assigned in alv's column is 255.

But in my case the no. of character is just 169 which is less than 255.

Then why alv is not displaying the complete information in it's column.

Thanks

Read only

Former Member
0 Likes
1,624

OSS note

857823 - ALV grid: Strings with a maximum of 128 characters

Symptom

Entries in cells of the type CHAR or string are truncated after 128

characters in the SAP GUI.

More Terms

ALV Grid Control (cl_gui_alv_grid), function module (Full-screen) Grid

(Reuse_alv_grid_display, SAPLSLVC_FULLSCREEN), SAPGUI, back end, front end

Cause and Prerequisites

The data table that is sent to the front end only allows character values

with the length 128.

Solution

This is the standard system behavior and cannot be changed.

The note is not release-dependent

Read only

0 Likes
1,623

Hi PBS,

There is no other way to display the value in alv.

Thanks.

Read only

Former Member
0 Likes
1,623

You could make two substrings, from the big string and sohw it one after the other.

Read only

Former Member
0 Likes
1,623

Hi,

I am closing this thread because i haven,t got a satisfactory answer.

Thank u all.