cancel
Showing results for 
Search instead for 
Did you mean: 

Truncate &PAGE& in SAPCRIPT

Former Member
0 Kudos

Hi all,

I have problems for printing the page number in a SAPSCRIPT.

I´m using: AS &PAGE& / &SAPSCRIPT-FORMPAGES&

The forms works ok if I have less than 10 pages. It puts 1/10, 2/20.........9/10

But if it has 10 or more pages it puts 1/10 again instead of 10/10

can be truncated the &PAGE& ????????

Which is the correct way for the sentence: AS &PAGE& / &SAPSCRIPT-FORMPAGES& for printing ok, for example 1/15, 2/15..........14/15, 15/15 instead of 1/15, 2/15, 1/15, 1/15 ????

Thans in advance.

Pilar.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks, the question is answered.

Former Member
0 Kudos

check.

AS <b>&PAGE(3Z)&</b> / &SAPSCRIPT-FORMPAGES&

Former Member
0 Kudos

Thanks for the answer.

I yet have solved the problem.

The solution is:

In the definition of the page FIRST there is a field (output length) that allows to fix the lenght of the variable for printing the page number. That field had the value 1, so I never saw the page number 10, :-(.

Thanks anyway for your help.

Pilar.