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

sap scripts

Former Member
0 Likes
717

how to add page counter variable to title window in a sap script for purchase order layout?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
697

hii

<b>&page&</b> -- prints the current page no

also check this and use per your functionality

<b>&sapscript-formpages&</b> to print the number of

pages written to the form

<b>&sapscript-jobpages&</b> to print the number of

pages written to the spool list

/: &page& &sapscript-formpages&

/: &page& &sapscript-jobpages&

The first page of the document will take the value of d_page_number

<b>/: ^$PAGE d_page_num</b>

Regards

Naresh

6 REPLIES 6
Read only

Former Member
0 Likes
698

hii

<b>&page&</b> -- prints the current page no

also check this and use per your functionality

<b>&sapscript-formpages&</b> to print the number of

pages written to the form

<b>&sapscript-jobpages&</b> to print the number of

pages written to the spool list

/: &page& &sapscript-formpages&

/: &page& &sapscript-jobpages&

The first page of the document will take the value of d_page_number

<b>/: ^$PAGE d_page_num</b>

Regards

Naresh

Read only

Former Member
0 Likes
697

Hi,

you can use <b>&PAGE&</b> in the window.

Regards

vijay

Read only

0 Likes
697

you can use following command in sapscript

Page &PAGE& of &SAPSCRIPT-FORMPAGES&

Read only

Former Member
0 Likes
697

Hai Shree

You can you &PAGE& statement

Thanks & regards

Sreeni

Read only

Former Member
0 Likes
697

Hi,

Use following syntax in window

&page& -> output 1,2,3----

you can use

Page &PAGE& of &SAPSCRIPT-FORMPAGES&

Output of above syntax

page 1 of 10, Page 2 of 10.

Regards,

Amole

Read only

Former Member
0 Likes
697

hi shree,

use <b>&PAGE& OF &SAPSCRIPT-FORMPAGES&</b>

thanks,

priya.