Skip to Content
author's profile photo Former Member
Former Member

Page No in ALV..

Hi Experts,

I need to display page no's in alv output. Can you please help me how can i achive this. I checked in fieldcatlog fields n layout fields but i couldnot find any field related to this.

Thanks In Advance.

Points will be rewarded.

Thanks

Sangeetha.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Dec 05, 2007 at 12:05 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 12:08 PM

    <b>you want to display the page number information, you have to put it in</b> 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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.