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

Column width limit in ALV GRID display

Former Member
0 Likes
2,000

Hi,

Wat is the maximum number of characters that one can display on a column in a ALV GRID display.

Thanks

Sajimon chandran

Hi,

Wat is the maximum number of characters that one can display on a column in a ALV GRID display.

Thanks

Sajimon chandran

4 REPLIES 4
Read only

varma_narayana
Active Contributor
0 Likes
1,226

Hi ..

The max list width is 1023 Characters.

So that will be the Limit for Single Column also.

REWARD IF HELPFUL.

Read only

0 Likes
1,226

Hi,

Thanks

I have defined the required column as string ,

so it accepts long text (which in my case is about 3000 characters).

in the field catalogue also i have defined outputlen of 4000.

but when i pass the internal table to ALV FM,

longtext output displays only about 150 characters.

if u understood my problem and have already encountered similiar issue

kindly reply.

sajimon chandran

Read only

Former Member
0 Likes
1,226

you cannot have more than 255 columns in ALV.

Read only

Former Member
0 Likes
1,226

hi Sajimon ,

I do not know the that a max no. of characters in a column can show in alv grid but you can specify the output length of a column in the fieldcatalog by specifying this filed in your fieldcatalog slis_fieldcat-outputlen .

And also one parameter i.e. slis_layout_alv-colwidth_optimize ,if you put this parameter as 'X' then it will optimize the column width depending on the content of your column.

I hope this will help you .