09-20-2007 1:06 PM
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
09-20-2007 2:50 PM
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
09-20-2007 1:10 PM
hi,
can u please paste the code so that i can explain to u.....
thanks,
maheedhar
09-20-2007 1:57 PM
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...
09-20-2007 2:27 PM
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.
09-20-2007 2:32 PM
Try setting the field cell_merge of the ALV-layout to 'X'.
Regards,
Lars
09-20-2007 2:50 PM
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