Application Development and Automation 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: 
Read only

Page Numbers

Former Member
0 Likes
476

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

3 REPLIES 3
Read only

Former Member
0 Likes
458

Hi,

Please refer to the link below :

http://www.saptechnical.com/Tutorials/ALV/PageNumbers/Demo.htm

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
458

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.

Read only

Former Member
0 Likes
458

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