cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms Printing Total Page

Former Member
0 Kudos

Hi,

I am calling 2 smartforms in 1 print program. Now I want to print total pages in each page. Ex. PAGE 2 OF 17

I used SFSY-JOBPAGES(3ZC) but it is printing the total page as 51 insted of 15. It is working fine for up to 9 pages.

when it exceeds 10 pages  I am getting this issue.

I referred the below thread also.

http://scn.sap.com/message/383533#383533

Could anyone tell me how to print the total pages correctly?

Thanks,

Baskaran

Accepted Solutions (0)

Answers (7)

Answers (7)

aidan_black
Active Contributor
0 Kudos

Hi,

The code correction of the following SAP note will resolve this problem:

1286213 - Incorrect formatting FORMPAGES, JOBPAGES

Regards, Aidan

Former Member
0 Kudos

Hi,

Try this.

PAGE &SFSY-PAGE& OF &SFSY-FORMPAGES&

Regards,

Danish

Former Member
0 Kudos

Hi Baskaran,

Its not 3ZC, its 3CZ, please change and test it again.

Thanks,
Satya.

Former Member
0 Kudos

hi satya,

your advice is totally working.

thanks a lot!

ezgi

former_member183835
Participant
0 Kudos

Dear Baskaran,

System variable used are

SFSY-PAGES : Current Page

SFSY-FORMPAGES : Total Page

Former Member
0 Kudos

Hi Baskaran,

do one thing write this take two variable.

this code write into program line :-

write sfsy-page to gv_page.
write sfsy-formpages to gv_formpages.

in text write this

gv_page(ZC) to gv_formpages(ZC).

it's works,

cheers.

abhilash



Former Member
0 Kudos

Hi Abhilash,

It is working fine. Thanks.

For first form contains 5 pages so it is printing 1 of 5 ...5 of 5

For second form contains 5 pages it is printing 6 of 10 ...10 of 10.

I tried the same logic for SFSY-JOBPAGES it is working same as SFSY_FORMPAGES.

Please let me know if you have any idea. Thanks a lot.

Thanks,

Baskaran

vimalv
Active Participant
0 Kudos

Hi Bhaskaran,

Try changing the window type of the window for Page Numbers to FINAL.

Thanks,

Vimal

Aashish28
Contributor
0 Kudos

For Page : &sfsy-page& of &sfsy-formpages&