2008 Feb 12 7:15 AM
Hi ,
i want to display page numbers like below format
Page Number: X/Y (shown in the case of printing)
(X: current page number, Y: total page number)
but i want to display in report header(i am using ALV's)
pls help me
pls reply me with good solutions.
THX
Hi ,
i want to display page numbers like below format
Page Number: X/Y (shown in the case of printing)
(X: current page number, Y: total page number)
but i want to display in report header(i am using ALV's)
pls help me
pls reply me with good solutions.
THX
2008 Feb 12 7:18 AM
Hi,
Please refer to the link below :
http://www.saptechnical.com/Tutorials/ALV/PageNumbers/Demo.htm
Thanks,
Sriram Ponna.
2008 Feb 12 7:20 AM
Hi
DATA : V_PAGES TYPE char5. "No Of Pages
constants : co_2 TYPE char1 VALUE '2'.
Determine Total No Of Pages to be displayed.
g_pages = sy-pagno.
DO sy-pagno TIMES.
READ LINE co_2 OF PAGE sy-index.
REPLACE co_pages WITH V_PAGES INTO sy-lisel.
MODIFY LINE co_2 OF PAGE sy-index.
ENDDO.
2008 Feb 12 7:22 AM
WRITE ABOVE CODE IN
FORM display_alv_report.
gd_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE'(001) "see FORM
i_callback_user_command = 'USER_COMMAND'
i_callback_html_end_of_list = 'END_OF_LIST_HTML'
i_callback_pf_status_set = 'SET_PF_STATUS' "see FORM
i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_special_groups = gd_tabgroup
IT_EVENTS = GT_XEVENTS
i_save = 'X'
is_variant = z_template
TABLES
t_outtab = it_ekko
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " DISPLAY_ALV_REPORT
----
Form TOP-OF-PAGE *
----
ALV Report Header *
----
FORM top-of-page.
ENDFORM