cancel
Showing results for 
Search instead for 
Did you mean: 

Find total no of pages in a sap script

Former Member
0 Kudos

Hi,

How do i find the no of pages that is generated in SAP script, with out generating a spool.

thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear friend

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.

Former Member
0 Kudos

Hi,

BY & sapscript-formpages&--gives total number of pages

All other commands:

&DATE& Currentdate

&DAY& Day

&MONTH& Month

&YEAR& Year

&TIME& Time of the day

&HOURS& Hours

&MINUTES& Minutes

&SECONDS& Seconds

&PAGE& Page

&NEXTPAGE& Next page number

&SPACE& Blank

&ULINE& Underline

&VLINE& Vertical line

&NAME_OF_MONTH& Name of the Month

&SAPSCRIPT-FORMPAGES& Total number of pages in currently formatted layout set

&SAPSCRIPT-JOBPAGES& Total number of pages in currently formatted print request

Regards,

Shiva Kumar

Former Member
0 Kudos

Hi

&SAPSCRIPT-FORMPAGES& using the total number of pages And

To add a graphical window and place it at you want the logo .

Ranga