2008 Sep 01 7:04 AM
Dear All,
I have developed a ALV report in grid and sorted two fields in tht. but whn i am taking print of tht the sorted cloumns also printing each and every line.
For ex:-
the cloumn is BANK name : SBI and it has 10 records
in display it is showing SBI only once but when printing it is printing 10 times.
Can we sort ALV list also and how?
2008 Sep 01 7:07 AM
2008 Sep 01 7:10 AM
>in display it is showing SBI only once but when printing it is >printing 10 times.
While printing it won't consider the Sort , so it will print all the value. If you want to make some separation then you can group by page. all Gorup will be printed together in one page.
sort-group = '*'. "<----Page.
I hope you are using sort functionality already.
2008 Sep 01 7:13 AM
2008 Sep 01 7:19 AM
you mean you are already populating the sort table and passing it to ALV.
Any way Sort will work in print , but you cannot avoid that Repeatable value in print.
if you want you can differenitiate them by Triggering a new page.
SORT-FIELDNAME = 'COLUMNANME'.
SORT-UP = 'X'.
SORT-GROUP = '*' . "For new page
APPEND SORT TO IT_SORT.
2008 Sep 01 7:12 AM