Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem in Smartform System Variable SFSY.

Former Member
0 Kudos
709

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

6 REPLIES 6
Read only

Former Member
0 Kudos
476

Hi

Try in this format Page&SFSY-PAGE&/&SFSY-FORMPAGES&.This will print current page/total page ex 1/5 like that.

Regards,

Keerthi

Read only

0 Kudos
476

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.

Read only

0 Kudos
476

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

Read only

0 Kudos
476

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

Read only

RaymondGiuseppi
Active Contributor
0 Kudos
476

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

Read only

Former Member
0 Kudos
476

Resolved by Myself