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: 

bottom in alv grid

former_member182412
Active Contributor
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

former_member181962
Active Contributor
0 Kudos

Check the example program :BCALV_GRID_01.

Check the code in method handle_end_of_page.

Regards,

Ravi

Former Member
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

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