12-16-2004 11:18 AM
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
12-16-2004 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.