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: 

Page Number is not coming Correctly in PO Print out

Former Member
0 Kudos
180

Hi,

In PO Print out (MEDRUCK copy in Sap Script)..Page Number is not coming correctly..

When page numbers are below 10, it is coming like this... 1/10, 2/10, 3/10....it is correct...

But When Numbers is above 10 means like 15, it is coming like this...

1/1

2/1

3/1

.

.

.

10/10

11/15

12/15

13/15

14/15

15/15

After page 10, it is coming correct...(see in BOLD)

Please tell me what is the problem in it...

My code is, when print the page numbers is: ---

&PAGE& / &SAPSCRIPT-FORMPAGES(C)&

Regards....

1 ACCEPTED SOLUTION

Former Member
0 Kudos
111

>

> Hi,

>

> In PO Print out (MEDRUCK copy in Sap Script)..Page Number is not coming correctly..

>

> When page numbers are below 10, it is coming like this... 1/10, 2/10, 3/10....it is correct...

>

> But When Numbers is above 10 means like 15, it is coming like this...

> 1/1

> 2/1

> 3/1

> .

> .

> .

> 10/10

> 11/15

> 12/15

> 13/15

> 14/15

> 15/15

>

> After page 10, it is coming correct...(see in BOLD)

>

> Please tell me what is the problem in it...

>

> My code is, when print the page numbers is: ---

>

> &PAGE& / &SAPSCRIPT-FORMPAGES(C)&

>

>

> Regards....

try this 

*&PAGE& / &SAPSCRIPT-FORMPAGES(4CZ)&*

4 REPLIES 4

Former Member
0 Kudos
111

Solved By Myself.

Solution is: -

use &PAGE& OF &SAPSCRIPT-formpages(2)& to display your page numbers as 1 of 3, 2 of 3, 3 of 3.

Former Member
0 Kudos
112

>

> Hi,

>

> In PO Print out (MEDRUCK copy in Sap Script)..Page Number is not coming correctly..

>

> When page numbers are below 10, it is coming like this... 1/10, 2/10, 3/10....it is correct...

>

> But When Numbers is above 10 means like 15, it is coming like this...

> 1/1

> 2/1

> 3/1

> .

> .

> .

> 10/10

> 11/15

> 12/15

> 13/15

> 14/15

> 15/15

>

> After page 10, it is coming correct...(see in BOLD)

>

> Please tell me what is the problem in it...

>

> My code is, when print the page numbers is: ---

>

> &PAGE& / &SAPSCRIPT-FORMPAGES(C)&

>

>

> Regards....

try this 

*&PAGE& / &SAPSCRIPT-FORMPAGES(4CZ)&*

0 Kudos
111

Thanks dear...

Both are working...

0 Kudos
111

Hi,

I have a SAP script in which i need to display the currect page number and copy number of the form. How can this be done ...

eg. Copy 1 of 4 ,copy 2 of 4 ....

The total no. of copies will come from NAST table , but i don't know where the currect number will come from .

I got the total no of copies from nast table but i dint get the current copy can u help in this.

thanks in advance,

Anil.