08-30-2006 2:09 PM
hi all,
i display error records in alv grid.
i need to display the top of page in alv grid.
i need to display the information like this in bottom of the alv grid.
4 transactions read.
2 transactions processed.
2 transactions with errors.
how can i write the code for this can any body suggest me.
Thanks and Regards,
praveen.
08-30-2006 2:15 PM
Hi,
For top-of-page, end-of-page, commentry write follow this link.
http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm
Thanks.
If this helps you award points.
Message was edited by: KDeepak
08-30-2006 2:18 PM
Check the example program :BCALV_GRID_01.
Check the code in method handle_end_of_page.
Regards,
Ravi
08-30-2006 2:21 PM
I don`t know what is the function you use for alv.. but for example... if you use REUSE_ALV_GRID_DISPLAY in the parameter I_CALLBACK_TOP_OF_PAGE = ' ' you must put TOP_OF_PAGE... then you need a subrutine TOP_OF_PAGE with this code...
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = list_top.
Here List_top is an internal table qith your commentary... for example...
ls_line-key = text-010.
concatenate sy-tcode '/' sy-repid
into ls_line-info separated by space.
append ls_line to p_list_top.
This put the trx code in the bottom of alv grid.
Regards!
Andrea.-
08-30-2006 2:43 PM
hi praveen,
you need two evnets
1. top_of_page <<<<< i think you can do that
2. end_of_list
is also similar to top_of_page.
BCALV_TEST_LIST_EVENTS << for list FM
BCALV_TEST_FULLSCREEN_EVENTS<<< for Grid FM
Regards
vijay