cancel
Showing results for 
Search instead for 
Did you mean: 

Reset page number to '1 ' for each box of packing list in sap script

Former Member
0 Kudos

hi Gurus,

I am running a packing list for delivery note . Many boxes spread across more than one page. I Need to print page number in Packing list for each box like 1 of 2 , 2 of 2. In the new page for next box , I need to print 1 of 1, 2 of 2. and goes on.

can you suggest a method to achieve this in script.

thanks,

manoj

Edited by: tmanoj80 on Sep 22, 2010 10:05 AM

Edited by: tmanoj80 on Sep 22, 2010 10:06 AM

<MOVED BY MODERATOR TO THE CORRECT FORUM>

Edited by: Alvaro Tejada Galindo on Feb 14, 2011 5:42 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

maulik
Contributor
0 Kudos

For Smarforms

Use SFSY-FORMPAGES to display the total number of pages in the Smartforms

&SFSY-PAGE& Current page number

&SFSY-FORMPAGE& Total number of pages in the currently formatted layout set

&SFSY-JOBPAGE& Total number of pages in the currently formatted print request

&SFSY-COPYCOUNT& Original-1,1st copy-2

&SFSY-DATE& Date

&SFSY-TIME& Time

&SFSY-USERNAME& Username

I'm using the variable SFSY-FORMPAGES, I get a star "*" instead of the total number of pages.

There may not be enough space in the window to display the variable, either increase the window dimensions or condense the spaces using &SFSY-FORMPAGES(C)&

For Sapscript

SAPscript: Total number of pages

Description

From Release 3.0, SAPscript allows you to output the total number of pages on any output page:

2 new system symbols (note upper case) were therefore introduced:

&SAPSCRIPT-FORMPAGES&

Total page number based on the current output layout set:

&SAPSCRIPT-JOBPAGES&

Total page number based on all output layout sets created with the function modules OPEN_FORM, START_FORM .. ENDFORM, START_FORM .. END_FORM, ..., CLOSE_FORM

Examples:

Page &PAGE& of &SAPSCRIPT-FORMPAGES(C)&

Specifies the current page number and total page number. The additional specification (C) outputs the symbol in a compressed form, that is the leading blanks are omitted in the 4-character output (default).

Number of all output pages: &SAPSCRIPT-JOBPAGES(C)&

Outputs the total number of output pages. Caution: When using this symbol, all output pages must be held in the main storage so that the total page number can be inserted at the end of the output. Larger outputs can affect performance.