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: 

Need to display Long Text as field Name in ALV

Former Member
0 Kudos

Hi,

I am using an ALV Grid Display. Even though i have kept the output field length to be 30 char, the Column header that is being selected is the short name. I would like the Column header to display the long name.

For example: Field "MAKTX"

l_seltext_l = "Description"

L_seltext_s = "Descr"

I want to display "Description" as the field name but it is displaying the short length even though the field is 30 characters wide.

Please help.

Thanks,

Urmila

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

Hi,

along with <b>fieldcat-SELTEXT_L = 'long text'.</b>

try to pass this also..

<b>fieldcat-DDICTXT = 'L'.</b>

so this will allow only long text.

Regards

vijay

3 REPLIES 3

Former Member
0 Kudos

Hi,

Try in table is_layout: colwidth_optimize = 'X' or expand_all = 'X'. I think the first one is the best option.

Hope it helps.

Regards,

Mireia

Former Member
0 Kudos

Hi,

Please expand the width of you column and bigger heading will come in automatically.

After that you can save that as the default layout so that it stays there

Regards,

Ravi

Note : Please mark the helpful answers

former_member188685
Active Contributor
0 Kudos

Hi,

along with <b>fieldcat-SELTEXT_L = 'long text'.</b>

try to pass this also..

<b>fieldcat-DDICTXT = 'L'.</b>

so this will allow only long text.

Regards

vijay