Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

page number in alv

Hi experts,

i want to display pagenumber and total no of pages like 1 of 5 in ALV when Listoutput is selected please say some ideas or possible few example....

Regards,

vino.

Tags:
Former Member
Former Member replied

Hi,

If you want to display the page number information, you have to put it in

the exporting parameter "IT_LIST_COMMENTARY" in the form "TOP-OF-PAGE"of

your program, and not in a preceding part.

For example:

FORM top_of_page.

DATA: ls_line TYPE slis_listheader.

REFRESH gt_list_top_of_page.

CLEAR ls_line.

ls_line-typ = 'S'.

ls_line-key = 'Page number:'.

ls_line-info = sy-pagno.

APPEND ls_line TO gt_list_top_of_page.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = gt_list_top_of_page.

ENDFORM.

If you want to make a test, just add "WRITE : SY-PAGNO" to the form

"TOP-OF-PAGE" of your program.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question