12-23-2009 9:56 AM
Hi,
I have written a code which gives a formatted top of page text, hence i have used html_top_of_page in alv grid display.
The problem is arising when i am giving the print out, the header text is not printing.
Kindly help.
Cordially,
Hasan
12-23-2009 9:09 PM
You need to handle the print event separately.
For an example if you are using classes to display ALV Grid then can define the event as below...
Handle events
SET HANDLER w_event_receiver->handle_print_top_of_page FOR w_grid.
12-24-2009 3:15 AM
Hi Ali,
Thanks for your reply, however i am using 'REUSE_ALV_GRID_DISPLAY' and I need a formatted header in top_of_page, which includes 4 to 5 columns where some text is cernter lined and some is right aligned. Please provide an appropriate solution.
Cordially,
Hasan
12-24-2009 4:55 AM
12-24-2009 6:22 AM
Hi Swarna,
Thank you very much for your reply,I have written a code which gives a formatted top of page text, hence i have used html_top_of_page in alv grid display, i cannot achieve it through top-of-page.
12-24-2009 7:02 AM
12-24-2009 7:11 AM
Hi Swarna,
Thank you for your reply. Do you have any idea of the FM - 'REUSE_ALV_GRID_COMMENTARY_SET'. Can you provide me any good example or explain the use of this FM.
Cordially,
Hasan
12-24-2009 7:26 AM
12-30-2009 11:31 AM
hi,
You can use the following: This part of code shows how the display the current date at to of page.
data : li_header type slis_t_listheader,
wa_header type slis_listheader,
lv_line like wa_header-info.
concatenate sy-datum6(2) sy-datum4(2) sy-datum(4)
into lv_line separated by '.'.
Data to be displayed
wa_header-typ = 'S'.
wa_header-key = 'Current Date:'.
wa_header-info = lv_line.
append wa_header to li_header.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = li_header.
Hope this helps you.
Regards,
Pramod