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

how to display the page no in alv.

hi,

could you please help me in this, i am using the alv functional module 'REUSE_ALV_GRID_DISPLAY_LVC'

and i am using the grid title for top of page, is it possible to put page no on the right corner and i should get this page no only when i print the alv output, pl tell me how to do this!

thanks

raj

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2004 at 12:48 PM

    Use <b>SY-PAGNO</b> and event <b>TOP-OF-PAGE</b>.

    In the print preview, you shall however see, how the GRID looks like in a list. You can align SY-PAGNO as you want it to be and take the help of print-preview.

    With a little bit of dabbling with <b>SY-LINNO</b>(or something similar to this), you will find the length of each line and subtract the same with the length of your text(Page Number : 5 )(so that would mean length is 17) and write something like:

    lv_position_of_pagenumber = sy-linno - 17.
    write /lv_position_of_parameter SY-PAGNO.
    

    Let us know if this helped you.

    Regards,

    Subramanian V.

    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.