‎2006 Jul 13 2:25 AM
Hi Experts,
Iam working on ALV list display.
In the print preview iam displaying headings like this.
Report id: AAAAAAA
Reportname: BBBBBBBBBB
----------------------------------------------------
MATNR | MAKTX
----------------------------------------------------
But,<b>during Hard copy printout</b> i want to print 'Printed date' & 'Printed by' on the report.How can i do this?
Report id: AAAAAAA <b>Date:13.07.2006</b>
Reportname: BBBBBBBBBB <b> Print by:Myname</b>
--------------------------------------------------------
MATNR | MAKTX
--------------------------------------------------------
Where can i control printing options?
I do not want to display in print preview.
Reward guaranteed
thanks
kaki
‎2006 Jul 13 4:10 AM
There are events on the ALV Grid which will fire specifically for printing, these are PRINT_TOP_OF_PAGE, PRINT_END_OF_PAGE. So, you can write SY-UNAME and SY-DATUM in the top of page event.
Regards,
Ravi
‎2006 Jul 13 2:53 AM
‎2006 Jul 13 4:10 AM
There are events on the ALV Grid which will fire specifically for printing, these are PRINT_TOP_OF_PAGE, PRINT_END_OF_PAGE. So, you can write SY-UNAME and SY-DATUM in the top of page event.
Regards,
Ravi
‎2006 Jul 13 5:08 AM
Hi Ravi,
Iam able to get into ALV grid.But page up & page down buttons are disabled by default.That is why i came into ALV list. Is it possible to do Top of page & End of page in ALV list?
And also can you tell me why Pageup & Pagedown buttons are disabled in ALV grid? Do i need to write any separated code for this?Iam working on ECC 5.0.
thanks
kaki
‎2006 Jul 13 5:12 AM
Well, the PAGE UP and PAGE DOWN buttons should be working by default on a ALV list or a ALV Grid as long as the contents are going beyond the display on the screen. You don't have to do anything.
Are these buttons disabled, I hope you have not removed them from the toolbar using the EXCLUDING option.
The PRINT_TOP_OF_PAGE and PRINT_END_0F_PAGE should work for ALV list as well.
Here is a example of the same
http://www.sap-img.com/abap/test-alv-display-with-header-footer.htm
Regards,
Ravi
Note : Please mark the helpful answers
Message was edited by: Ravikumar Allampallam
‎2006 Jul 13 6:19 AM
Hi Ravi,
Thanks for all the replies..
Full points alloted..
cheers
kaki
‎2006 Jul 13 4:48 AM
hi
good
go through the following links
http://www.cdg-inc.com/news/WhitePaper_ALV_Reporting_Power.htm
thanks
mrutyun
‎2006 Jul 13 4:54 AM
hi kaki,
check the below links u may get some guidance
http://www.sapfans.com/forums/viewtopic.php?t=64320
http://www.sapfans.com/forums/viewtopic.php?t=44477
Regards,
Naveen