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 in ALV

Former Member
0 Likes
595

Hi

We have the following requirement for displaying column heading in REUSE_ALV_LIST_DISPLAY.

Wherever, the heading exceeds the specified column width, it should be split into two rows .

Is that possible in ALV .

Thanks in advance.

HI,

U can use LVC_just = 'L' or 'R' or 'C' to define the justification as left right center correspondingly.

U can otimize the column width by usein

LVC_colwidth_optimize = 'X'.

Hope helps u better.

Regards,

Ravi Kumar

3 REPLIES 3
Read only

Former Member
0 Likes
517

Hi Ankit,

This is not possible in ALV

To optimize the column width

<b>wa_layout-colwidth_optimize = 'X'.</b>

Read only

Clemenss
Active Contributor
0 Likes
517

Hi ankit,

this is not possible although asked and discussed frequently.

The columns heading is drawn from the short, medium or long text associated with the data element in dictionary. Automatically the text fitting the actual width will be taken.

But: When you move the mouse over the heading, the full length text gets visible.

If you need this for a printed report, you have to write a list report.

Regards,

Clemens

Read only

Former Member
0 Likes
517

HI,

U can use LVC_just = 'L' or 'R' or 'C' to define the justification as left right center correspondingly.

U can otimize the column width by usein

LVC_colwidth_optimize = 'X'.

Hope helps u better.

Regards,

Ravi Kumar