cancel
Showing results for 
Search instead for 
Did you mean: 

sapscript total page number X of Y

Former Member
0 Kudos

Hi Expert,

I have an emergency sapscript page issue. Thank you very much for provide suggestion to me.

I want to print page number in each page bottom, like X of Y. X is the current page number, Y is the total page number.

I'm using &PAGE& of &SAPSCRIPT-JOBPAGES&.

This sometimes works. But in some case, when there are a lot of data, the total page variable &SAPSCRIPT-JOBPAGES& goes wrong. In the first page, it prints 1 of 1, in the second page, it print 2 of 2, 3 of 3...

Is there anyone who knows the root cause for this? Thank you

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi David,

i finally solved this issue.

if the page number is more than 10, the page display correctly. but the pages before 10, it displays incorrectly, like 1 of 1, 2 of 1, 3 of 1...So the page number seems like truncated.

In the form, it used to be ,,,,Page &PAGE& of &SAPSCRIPT-JOBPAGES(C)&, after i removed(C), it works.

Former Member
0 Kudos

Thank you for your reply. But it does not work.

i guess it is related to memory. because in the program i used function module VC_I_GET_CONFIGURATION_IBASE, which occupy a lot of memory. i also used function module CLSE_FREE_MEMORY to free memory. But still does not work.

david_liu1
Advisor
Advisor
0 Kudos

Hello,

First check SAP note:

87312 - SAPSCRIPT: Symbol FORMPAGES not filled

You will find some general information on the following SAP's webpage:

http://help.sap.com/saphelp_erp2004/helpdata/en/d1/

8033ea454211d189710000e8322d00/frameset.htm

Be careful about &SAPSCRIPT-FORMPAGES(C)&. It displays only

1 digit if you omit "(C)" option (note 47035).

Also check in the page definition is the mode set auf INC?

Regards,

David