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

Truncate &PAGE& in SAPCRIPT

Former Member
0 Likes
585

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
561

Hi,

I think the space is not sufficient increase its width and try.

Regards,

sasi

Hi,

I think the space is not sufficient increase its width and try.

Regards,

sasi

3 REPLIES 3
Read only

Former Member
0 Likes
561

Hi

The syntax looks fine

try in this way

/ Page: &PAGE& of &SAPSCRIPT-FORMPAGES&

see that enough space is there to print all the data

first try in the starting of line and then adjust

it should print all the figures correctly

Reward points for useful Answers

Regards

Anji

Read only

0 Likes
561

Thanks for the answers.

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.

Read only

Former Member
0 Likes
562

Hi,

I think the space is not sufficient increase its width and try.

Regards,

sasi