2007 Aug 30 5:54 PM
In ALV Display I want to have a <u>BLANK row</u> everytime the value of 'Cross Company Code Document Number' (BVORG) changes.
Is there a way to use the Sort Option of "REUSE_ALV_GRID_DISPLAY" to do this? Or is the only possible way is by modifying the ITAB that is being passed for display?
If ITAB is the only method to do it then how should I go about making this happen?
Thanks-
Rohit.
2007 Aug 30 6:54 PM
Hi,
I think for your requirement you need to use REUSE_ALV_HIERSEQ_LIST_DISPLAY
a®
2007 Aug 30 6:01 PM
you can append blank row using logic and not in ALV ..
Just keep the logic within loop,just use append statement.
Thanks
Seshu
2007 Aug 30 6:02 PM
Hi
For every new value of BVORG field insert/append a blank row into the internal table
and then develop the i_SORT internal table with the field BVORG and see the output
since the data is sorted the first line will be blank for every new value of BVORG field.
Regards
Anji
2007 Aug 30 6:50 PM
Thanks Guys....
I got the blank lines created using Index etc. this was done with BVORG in Ascending Order.
But for Display I have been asked to sort in asc. order based on some other column. Which ofcourse will now grab the blank rows together and put them at the very top of the ALV.
Is there a work around ?
2007 Aug 30 7:06 PM
if you do again sort then blank rows will come top,so make sure that should not do sort after inserting blank rows.
please sort it before inserting blank row .
sort itab by fields..
loop at itab.
endloop.
do not sort here.
Thanks
Seshu
2007 Aug 30 6:54 PM
Hi,
I think for your requirement you need to use REUSE_ALV_HIERSEQ_LIST_DISPLAY
a®