Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to display the page no in alv.

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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.