cancel
Showing results for 
Search instead for 
Did you mean: 

Page Number dispaly problem in Script

Former Member
0 Kudos

Hi Friends,

I am taking printout of PO from me23n. Script is Z and driver program is STD. Iam displaying page number as

Page: 'PAGE' of'& &SAPSCRIPT-JOBPAGES(C)& . if there are pages more than 10 then for eg 20 first time when iam taking print it is showing page 1 0f 2 , 2 of 2 , 3 of 2 until 10 afetr that it is showing correctly that page 11 of 20 12 of 20 etc. when i go back (not to to ME23n in that case it case same problem occurs) and take print out then its showing correct values like 1 of 20 2 of 20 etc. Can you please tell me what might be the problem. how to avoid it.

Thanks in advance.

Praja.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

delete the (C), it actually is bugging when printing page numbers. at least i had this Problem quite often.

Answers (2)

Answers (2)

former_member196079
Active Contributor
0 Kudos

Hi praja

use this


&SAPSCRIPT-JOBPAGES& 

best regards

Marco

Former Member
0 Kudos

Hi Menegazzo Marco ,

Ya once i remove C from the &sapscript-jobpages(c)& it is coiming correct. do you know what is the reson

Thanks .

former_member196079
Active Contributor
0 Kudos

Hi praja

because the c limit the variable at the value of c.....so if c eq 1 and your page is 24 it will print 2,

if c eq 2 it will print 24, but if you hav 250 page it will print 25........

so if you delete the C you have not limit

Best regards

Marco

Former Member
0 Kudos

David liu posted the reason, see his post and the SAP note he is talking about.

david_liu1
Advisor
Advisor
0 Kudos

Hello,

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

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

Regards,

David