cancel
Showing results for 
Search instead for 
Did you mean: 

Capture total count of pages in variable

Former Member
0 Kudos

Hi all,

How i capture the total count of pages in Smartform .

When i put the following code it works fine .

SFSY-PAGE OF SFSY-FORMPAGES

but when i check internal table SFSY then it displays 1 for first page and so on .

i.e. Let us suppose there are 4 pages then while displaying it displays correctly.

1 of 4 , 2 of 4

but when i check the internal table then it displays me wrong value ??

i.e. for 1 page it displays

SFSY-PAGE = 1

SFSY-JOBPAGES = 1

SFSY-FORMPAGES = 1

how we come to know that how many pages does this smartform has?

Regards,

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

When using the fields &SFSY-FORMPAGES& or &SFSY-JOBPAGES& , all output pages are kept in the main memory till the end of the form or the print job to allow these fields to be replaced with their respective values.

So create a final window and display &SFSY-FORMPAGES& u can notice the total no of pages when this window gets trigerred.

&SFSY-FORMPAGES& - Displays the total number of pages for the currently processed form.

&SFSY-JOBPAGES& - Contains the total page number of all forms in the currently processed print request.

mahaboob_pathan
Contributor
0 Kudos

hi,

Define one "Final Window" and use variable SFSY-FORMPAGES.

This triggers at end of the form and gives the count of total pages.

Former Member
0 Kudos

Change your window type as "Final Window" and use variable SFSY-FORMPAGES. This triggers at end of the form and gives the count of total pages.

Thanks,

Rama Juluru