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: 

Special page headers in FM 'REUSE_ALV_LIST_DISPLAY' with page break

Former Member
0 Kudos

Hi Experts;

I know that we can use IT_SORT to obtain page break while calling FM 'REUSE_ALV_LIST_DISPLAY' based on a special field value.

ls_sort-fieldname = 'VKORG'.

ls_sort-up = 'X'.

ls_sort-group = '*'.

append ls_sort to lt_sort.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

i_callback_program = sy-cprog

  • i_callback_top_of_page = 'TOP_OF_PAGE'

is_layout = ls_layout

  • i_grid_settings = ls_grid_settings

it_fieldcat = lt_fieldcat

it_sort = lt_sort

IT_EVENTS = fp_i_alvevent

TABLES

t_outtab = gt_vbak.

My question is:

is there any way to display the value of that field at the page header based on such page break rule? how can I know the current valueof that field value in current page and display it on the page header?

Thanks in advance for your valuable inputs..

Regards

Vindy

1 REPLY 1

Former Member
0 Kudos

READ TABLE it_output into wa_vbak INDEX sy-tabix.

WRITE / : 'Sales org:' , wa_vbak-VKORG .

WRITE : sy-title(65) CENTERED, 'Page :' , sy-pagno .