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 field name size

Former Member
0 Kudos

Hi guru's

How do I increase the field name size on the ALV grid.

Please help me...

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

there is one filed in filedcatalog

for long text

s_fcat-seltext_l = ;text;.

for medium text

s_fcat-seltext_m = 'text'..

for small text

s_fcat-seltext_s = 'text'.

7 REPLIES 7

Former Member
0 Kudos

Hi,

At the time of buliding the field catalog there is a field called

output_len .you can specify the size there for that particular field.

Regards,

Soumya.

Former Member
0 Kudos

Hi Ndumiso,

You can change that at fieldcatalog level


loop at it_fieldcat into wa_fieldcat.
 IF wa_fieldcat-fieldname = '<FIELDNAME>'.
     wa_fieldcat-outputlen = '40'.
     MODIFY it_fieldcat from wa_fieldcat.
  ENDIF.
Endloop.

Former Member
0 Kudos

Hi

there is one filed in filedcatalog

for long text

s_fcat-seltext_l = ;text;.

for medium text

s_fcat-seltext_m = 'text'..

for small text

s_fcat-seltext_s = 'text'.

Former Member
0 Kudos

Hi,

This solution (fieldcatalog-seltext_l) does work but some of the text is really long and ends up not fitting.

Is there any other way?

thanks guys....

0 Kudos

hi,

In that case increase the output length a bit more

Or

in layout , add this

wa_layout-colwidth_optimize = 'X'.

0 Kudos

Hi Ndumiso Zwane,

there is no other way to display long text.

for long text it will take 40 char

so we need to adjust our text with in that size

i also tried but i did't find any solution

0 Kudos

Thanks...