2010 Feb 04 1:09 PM
Hi,
I need to print one smartform as 3 copies. I can print the 3 copies, and I need to print Pages 1 of 4 like that, but system variable SFSY was not populating correctly. I dint understand where the problem is. Can any one explain what would be the problem.
Thanks,
Ramana.T
2010 Feb 04 1:27 PM
Hi
Try in this format Page&SFSY-PAGE&/&SFSY-FORMPAGES&.This will print current page/total page ex 1/5 like that.
Regards,
Keerthi
2010 Feb 04 2:24 PM
Hi,
your issue will be solved if you use SFSY-FORMPAGES. The output will be 1/2, 3/3 In this format.
hope this helps.
2010 Feb 05 7:31 AM
Hi,
Thanks to all for your valuable suggestions.
I am already using like what you have mentioned in the threads(&SFSY-PAGES& of &SFSY-FORMPAGES&). But these system variables are populating with wrong page numbers. I want to know whether any code should be written to populate these system variable correctly.
Once again thanks for your replies.
Thanks,
Ramana.T
2010 Feb 05 10:47 AM
Can you explain again your problem, which numbers do you want and which do you get ?
If you use a 3 copies option, you will get 1/4, 2/4, 3/4, 4/4, 1/4, 2/4, ect.
If you want 1/12, 2/12, dont use copies, call thrice the FM not closing the spool at end of first two calls and use &SFSY-JOBPAGE& and not &SFSY-FORMPAGES& (Use a late processing window, check the note for old versions)
Regards,
Raymond
2010 Feb 04 2:36 PM
You need to use (read [Page Numbering|http://help.sap.com/saphelp_nw70/helpdata/en/70/e17a34dec511d3b575006094192fe3/frameset.htm] in [Smart Forms|http://help.sap.com/saphelp_nw70/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm])
- &SFSY-PAGE& for the current page number
- &SFSY-FORMPAGES& for the total number of pages in the form
- &SFSY-JOBPAGE& for the total number of pages in all forms in the print job
Use a late processing window, to get a correct value with enough space reserved ([Note 588352 - '*' when you output the total number of pages|https://service.sap.com/sap/support/notes/588352])
Regards,
Raymond
2011 Mar 30 12:24 PM