Hi experts,
i want to display alv grid with page break,i use the fallowing code but its not working.Please give any suggestions
clear wa_sort.
wa_sort-spos = '02' .
wa_sort-fieldname = 'FIPOS'.
wa_sort-tabname = 'GT_FINAL'.
wa_sort-GROUP = '*'.
wa_sort-OBLIGATORY = 'UL'.
wa_sort-up = 'X'.
* wa_sort-subtot = 'X'.
APPEND wa_sort TO i_sort .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = l_repid
i_callback_html_top_of_page = 'HTML_TOP_OF_PAGE'
I_CALLBACK_TOP_OF_PAGE = 'SUB_ALV_TOP_OF_PAGE'
is_layout = wa_layout
it_fieldcat = i_fieldcat
* IT_ADD_FIELDCAT = i_fieldcat1
it_sort = i_sort
it_events = i_event
* is_print = gd_prntparams
i_default = 'X'
i_save = 'A'
TABLES
t_outtab = GT_FINAL
EXCEPTIONS
program_error = 1
OTHERS = 2.