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: 

ALV Grid printing problem

Former Member
0 Kudos
101

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?

5 REPLIES 5

Former Member

former_member188685
Active Contributor
0 Kudos
62

>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.

0 Kudos
62

Hi Vijay,

s i am all ready sorting it.

0 Kudos
62

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.

Former Member
0 Kudos
62

hi,

Refer to the link.

www.sap Technical.com->Tutorials>ALV/PageNumbers/Demo.htm

Regards

Sumit Agarwal