08-24-2010 10:40 AM
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
08-24-2010 11:14 AM
READ TABLE it_output into wa_vbak INDEX sy-tabix.
WRITE / : 'Sales org:' , wa_vbak-VKORG .
WRITE : sy-title(65) CENTERED, 'Page :' , sy-pagno .