cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Grid column header optimize

Former Member
0 Kudos

using lt_layout-colwidth_optimize = 'X' only the column contents get optimized in size,

but the header text is still not visible.

I have also tried fieldcat-outputlen but it didn't work.

Pl suggest how to do this.

Regards

Alok Pathak

Accepted Solutions (1)

Accepted Solutions (1)

former_member188685
Active Contributor
0 Kudos

Hi Alok,

for fieldcat check these

<b> seltext_l

seltext_m

seltext_s</b>

if you specify seltext_l then give ddictxt = 'L'

or

<b>seltext_M then give ddictxt = 'M'</b>

or

<b>seltext_S then give ddictxt = 'S'</b>

then it will work

Regards

vijay

Former Member
0 Kudos

Thank you so much. It worked for me

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi alok,

1. after populating the field catalogue thru the fm,

use like this :

DATA : alvwa TYPE slis_fieldcat_alv.

LOOP AT alvfc INTO alvwa.

alvwa-ddictxt = 'L'.

MODIFY alvfc FROM alvwa.

ENDLOOP.

also use

lt_layout-colwidth_optimize = 'X'

2. Now it will work.

regards,

amit m.

Former Member
0 Kudos

HI alok

have you given like this

fieldcatalog-fieldname = 'EBELN'.

fieldcatalog-seltext_m = 'Purchase Order'.

fieldcatalog-col_pos = 0.

fieldcatalog-outputlen = 10.

fieldcatalog-emphasize = 'X'.

append fieldcatalog to fieldcatalog.

clear fieldcatalog.

regards

kishore

Former Member
0 Kudos

if u want the header text to be visible full,

dont use lt_layout-colwidth_optimize = 'X' ,

only increase output length in fielcatalog.

wa_fieldcat-tabname = 'ITAB'.

wa_fieldcat-fieldname = 'FIELD1'.

wa_fieldcat-outputlen = 'specify the length'.