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: 

REUSE_ALV_GRID_DISPLAY

Former Member
0 Kudos

Hi,

I'm using REUSE_ALV_GRID_DISPLAY. When i sort a column by code the displayed values in the sorted column are showed as blanks when values are repeated. How can i display the values in this blank cells?

Thanks in advance

1 ACCEPTED SOLUTION

maciej_domagaa
Contributor
0 Kudos

As I understand what u want is to have all the cells of the grid filled with data - even in case when the data are sorted.

All u need to do is to either:

1. create a display variant in which an option "Without cell merging during sorts" will be checked - at user interface it's at: "change layout -> Display".

or from within ABAP code:

2. use field "cell_merge" in layout structure (parameter IS_LAYOUT of fm REUSE_ALV_GRID_DISPLAY)

good luck

5 REPLIES 5

Former Member
0 Kudos

hi,

can u please paste the code so that i can explain to u.....

thanks,

maheedhar

Former Member
0 Kudos

when u sort in ALV the common values are always blank man.

this is the use of sorting.

or do one thing.

in sort function write like this.

it_sort-up = ' '.

it_sort-subtot = 'X'.

ok

reward points if useful...

0 Kudos

I know the common values are blank. What i want to avoid is precisely this normal behavior, but i want to have the rows sorted.

0 Kudos

Try setting the field cell_merge of the ALV-layout to 'X'.

Regards,

Lars

maciej_domagaa
Contributor
0 Kudos

As I understand what u want is to have all the cells of the grid filled with data - even in case when the data are sorted.

All u need to do is to either:

1. create a display variant in which an option "Without cell merging during sorts" will be checked - at user interface it's at: "change layout -> Display".

or from within ABAP code:

2. use field "cell_merge" in layout structure (parameter IS_LAYOUT of fm REUSE_ALV_GRID_DISPLAY)

good luck