cancel
Showing results for 
Search instead for 
Did you mean: 

page numbers in smartform

Former Member
0 Kudos

i am selecting muliple production orders,on selection-screen for form priniting

so it prints individual forms for each order,but here i have problem

for 1st oder it showing 1 t0 2

2to2.

upto ok

in 2nd order it shows 2to2 like that

but iwant page no of 2nd oder also like 1st oder page no.

pls

help me to get that

thank u

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

In the smartform in the Pages and Windows folder and the in the first page

there is a tab called 'Page Counter'. in that tab in 'Mode' tab try changing the radio buttons to

Initialise Counter, Increase Counter, Leave counter ......, etc.

I hope this resolves your issue.

Thanks & Regards,

Sudheer

Former Member
0 Kudos

but i am using one first page only for this case what is the solution for this problem without calling smartform in loop of driver program.

thanks & Regards

Sri

raymond_giuseppi
Active Contributor
0 Kudos

Do you call the FM smartforms order per order or with a list of orders, which values did you pass for CONTROL_PARAMETERS-NO_OPEN and NO_CLOSE

Regards,

Raymond

Former Member
0 Kudos

Hi ,

First call the SSF_FUNCTION_MODULE_NAME

Now cal the FM SSF_OPEN

loop on the internal table containing production order no's and get data for the production order

Now call the fm associated with the smart form name.

and finally call the fm ssf_close.

THIS WOULD SOLVE THE PROBLEM. REASON BEING THE FM ASSOCIATED WITH THE SMART FORM IS CALLED FOR EVERY ITERATION SO THIS WOULD TREAT THE SF OUTPUT FOR EACH PRODUCTION ORDER AS A NEW FORM..

<begging removed by moderator>

Moderator message: please do not post in all upper case.

Edited by: Thomas Zloch on Nov 14, 2011 12:02 PM

prakashjasti
Contributor
0 Kudos

Hello Srivani

For that type of page numbering

you have to print the variables for showing the pagenumbers by clearing those variables

for every order

Regards,

Prakash.

Former Member
0 Kudos

but i am using system fields sfsy-page,sfsy-formpage but after 1st order we can't refresh the syatem fields,

no of page for order's always depending on items of order ,dynamically pages increses for 1st order

but

my requirement is

for 1st order

1 of 3

2 of 3

3 of 3

for

2nd order

1 of 2

2 of 2

then only the user can know that paricular order have how many pages .

so pls help me for this

prakashjasti
Contributor
0 Kudos

Hello

Dont use system variables

if you use them it will not solve your purpose

Please use the manual variables and clear them for every order.

Regards,

Prakash.

Former Member
0 Kudos

i am using variables only to count number of pages per order but i dont know where to display it.I created a final window and define a text and pass the variable to it but it didnt work,the total page has to be printed right from page 1 like page 1 of<3>,so i dont know know where to display the <3>.<removed by moderator> please help.

Edited by: Thomas Zloch on Nov 11, 2011 2:02 PM

Former Member
0 Kudos

&SFSY-FORMPAGES& and &SFSY-JOBPAGES& are still increase by one even you try to initialize the counter.

If you really want the total pages count for each Order. I would suggest you to try to modify your print program and call the smartform for each Oder. Just hide the print window. Then you will be able to get the page/total pages correctly.

mithun_shetty4
Contributor
0 Kudos

Have you used these system variables in ur smartform ?


&SFSY-PAGE& of &SFSY-FORMPAGES&

Former Member
0 Kudos

after using that only it showing the problem like i was mentioned in above

Former Member
0 Kudos

This message was moderated.