Application Development and Automation 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: 
Read only

page numbers

Former Member
0 Likes
657

`hai

i have one doubt.,,,,i need to get page number of everypage like.....1 / 22,,,,2 / 22,,,,3 / 22,,,4 / 22.

here total number of pages: 22.

6 REPLIES 6
Read only

Former Member
0 Likes
629

Hi,

could't get u fully,

if u r talking about script it will b like...

&page& of &sapscript-formpage&

regards,

pritam

Read only

Former Member
0 Likes
629

Hi Venu,

If u want the page numbers on each page Just try this.

&page& / &sapscript-formpages& in the SAP script editor in which ever window u want . This will work

Regards,

Swapna.

Read only

0 Likes
629

hai,,,

i need in classical reports....actually i have 22 pages

in each page i have to get like 1 / 22, 2 / 22,,,,3 / 22....

plz ,try to say...

Read only

Former Member
0 Likes
629

Venu,

End-of-page.
Write : / page number, sy-pagno.

Amit.

Read only

Former Member
0 Likes
629

Hi Venu.

You need to write:

w_page = w_page + 1. " In a loop

end-of-page.

write:/ w_page '/' sy-pagno.

Reward Points if found usefull.

Regards

Harsh.

Edited by: Harsh Dave on Jun 30, 2008 7:39 PM

Read only

former_member787646
Contributor
0 Likes
629

Hi,

You can do it as follows.

DATA: X(10) type C,

TOT_PAGES(3) type C.

TOT_PAGES = <Here goes the no of pages>.

CONCATENATE SY-PAGNO ' / ' TOT_PAGES INTO X.

( Here X is a variable).

write:/ X.

Hope it helps you.

Murthy.