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

Field Catalog - Column Header

Former Member
0 Likes
1,899

Hi all,

I'm using ALV.

There is a column with header text 'Material Number'.

The output length is such that this entire text couldn't be accomodated in a single line.

So I'm planning to split this text in to two lines

as,

Material

Number

To do this how to define the field catalog for this entry.

Please give ideas to do this requirement.

Thanks & Regards,

Lakshmanan

9 REPLIES 9
Read only

Former Member
0 Likes
1,390

Enlarge the output length of the column. Easiest to do.

Read only

0 Likes
1,390

Good Joke of the moment.:-)

Dude,

If I do so I can't display the entire report.

Thanks

Read only

0 Likes
1,390

Yeah, i'm having a blast here!

But what i don't understand is: if you make the column a little bit wider, you can't display your data? It's an ALV and it comes with scroll-bars. Besides, a material number is like 18 characters long.

Read only

0 Likes
1,390

Just kidded.Cool.

How to include hor/Ver scroll bars

Thanx

Read only

0 Likes
1,390

If I'm not wrong, the hor/ver bars appear when data don't fit in screen.

Read only

Former Member
0 Likes
1,390

Hi!

I don't know if it can help you, I don't know how split the header line, but you can force the text of the header line if in ddictxt attribute of fieldcatalog you put 'L', what means the long text of dictionary. This way you will see all text of header line.

Hope it helps.

Read only

Former Member
0 Likes
1,390

using the Normal ALV it is possible, But Grid function or OO ALV it is not possible.

check the thread

Read only

Former Member
0 Likes
1,390

hi,

use the fieldcat attributes such as..

COLWIDTH_OPTIMIZE

OUTPUTLEN

this may help.

regards

johnson

Read only

Former Member
0 Likes
1,390

Hi,

All suggestion's looks good but still if you are interested in making a multiple row ALV...you can use the field catalog property Row_pos....by default it is 0 for all the columns...but if you want to display a column in the second line then you can its value to 1......it can take max values to 3.