Skip to Content
0
Former Member
Sep 11, 2014 at 06:04 PM

Page number in Footer area

20 Views

Working on report, requirement to display page number on every page when we working ALV factory model.

I will be using below code, still I won't see page number.

DATA: lcl_footer TYPE REF TO cl_salv_form_header_info,

lv_pagno TYPE n.

CLEAR : lv_text, lv_pagno.

lv_pagno = sy-pagno.

CONCATENATE 'End of page'(030) ':' lv_pagno INTO lv_text.

CREATE OBJECT lcl_footer

EXPORTING

text = lv_text

tooltip = lv_text.

gr_table->set_end_of_list( lcl_footer ). "set end of list

gr_table->set_end_of_list_print( lcl_footer ). "set end of list

instead of printing page number, it always printing 0.

I wanted to display page number for each page when I run in back ground.

Note : I am using factory model.

Appreciate your quick help.