Application Development 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: 

ALV cell width optimization

Former Member
0 Kudos

Hi friends,

I have created an ALV output with 'REUSE_ALV_GRID_DISPLAY' FM and not by OO ALV. In my output I am not able to see full column heading and data and all. How can we optimize the ALV cell.

Thanks,

Venkat.

1 ACCEPTED SOLUTION

former_member242255
Active Contributor
0 Kudos

fieldcat-seltext_l you can give and you will get the output fully

8 REPLIES 8

Former Member
0 Kudos

hi,

You need to pass the value to the outputlen parameter in fieldcalatlog for every field.

or

pass 'X' to colwidth_optimize in layout

Former Member
0 Kudos

Hi


    gw_layout-colwidth_optimize  =  gc_x.

Pass this in is_layout.

Pushpraj

former_member242255
Active Contributor
0 Kudos

fieldcat-seltext_l you can give and you will get the output fully

former_member188685
Active Contributor
0 Kudos

Did you try with layout option colwidth_optimize, if not try with that. and also post your field catalog population code.

Former Member
0 Kudos

Hi,

In layout structure pass the below parameter

columnwidth_optimize = 'X'(it will display full length)

Thanks

Ramakrishna Pathi

Former Member
0 Kudos

In Layout give cwidth_opt = 'X'

w_layout-cwidth_opt = 'X'.

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

Did you pass the Column Width Optimize param to the ALV Layout ?

Or pass the OUTPUTLEN parameter to the fieldcatalog for the fields which are causing problem as suggested by Avinash.

BR,

Suhas

sarbajitm
Contributor
0 Kudos

1) in the data section declare

DATA:IT_layout TYPE slis_layout_alv.

then keep a subroutine like the following one in your report:

PERFORM build_layout CHANGING IT_layout.

FORM build_layout CHANGING C_it_layout TYPE slis_layout_alv.

C_it_layout-zebra = 'X'.

C_it_layout-colwidth_optimize = 'X'.

ENDFORM. " build_layout

hope it solve your Problem.

Thanks.