cancel
Showing results for 
Search instead for 
Did you mean: 

Paging in Sapscript forms

Former Member
0 Kudos

Hi,

This is related to paging in Sapscript forms. When I am running a form(lets say pickslip) in batch job, we want to print job pages. If the job contains 5 pickslips and each of 2 pages, it should show '1 of 10' till '10 of 10'. System field 'sapscript-jobpages' seems its not working for the total no of pages in the job. Can anybody has any idea on this ? (I tried with formpages. It gives the total no of pages in the current pickslip. For the example i have mentioned it shows 1 of 2 and 2 of 2 for each pickslip, which is correct)

Thanks,

Ashok

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

did you give any length specifications for jobpages ?

i guess it will b e coming as 2 of 1 etc...

try giving &sapscript-jobpages(2C)& .. please check the syntax for length specification

Former Member
0 Kudos

hi,

you have to reinitilise the increment counter as 1 after every pick slip.

reward points if its helpful.

Former Member
0 Kudos

hi thx for ur reply. this issue still not resolved.

cd u let me know some details abt which counter u r talking abt ?

Thx for the help

ashok

Former Member
0 Kudos

Hi ,

there are two counter's one gives the no of pages for the form ity is &SAPSCRIPT-FORMPAGES&.

the other is total no of opages in the job &SAPSCRIPT-JOBPAGES&.

http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/frameset.htm

If you have problem while using teh above commands that is if it gives 1/1 2/1

etc...

use &SAPSCRIPT-JOBPAGES(2C)& where C is the condense option and 2 is the length specification

PLZ give reward points if the post is helpful