Skip to Content

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

Page number in Footer area

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


      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.

Former Member
Not what you were looking for? View more on this topic or Ask a question