### Print Total of Pages

Hi,

I need to print severals forms depends on how many custoumers I've got in my invoice throuhg VF03.

Eanch form can have severals pages, so the cuestion is...

How can I show the total for pages for each form?

Let me set an example

The invoice got 3 customers.

The 1st form for the 1st customer has 4 pages so the total of pages must go like this

1 of 4 on the 1st page

2 of 4 on the 2st page

3 of 4 on the 3st page

4 of 4 on the 4st page

The 2st form for the 2st customer has 2 pages so the total of pages must go like this

1 of 2 on the 1st page

2 of 2 on the 2st page

The 3st form for the 3st customer has 3 pages so the total of pages must go like this

1 of 3 on the 1st page

2 of 3 on the 2st page

3 of 3 on the 3st page

The problem is that I cant use SFSY-FORMPAGES cause when the form is shown FORMPAGES = 423 = 9.

When I have to print 4, 2 or 3 I dont know how many pages I'm gonna print for that customer.

So what I need is a varaible thas behaves as SFSY-FORMPAGES is there a way to do this?

Many many Thanks!

10|10000 characters needed characters exceeded

• Former Member
Jun 03, 2010 at 05:43 AM

Hi,

Try this ,,Page &SFSY-PAGE& of &SFSY-JOBPAGES(3Z)&

10|10000 characters needed characters exceeded
• Nico Giuffrida Former Member

Same problem.

Do you know if there is a way to create a var that behaves as SYSF-FORMPAGES or SYSY-JOBPAGES? I mean that shows the value at the moment of showing the form?

Thanks

Nico.-

• Former Member
Jun 04, 2010 at 08:51 AM

hi,

I've got the simliar problem as yours.

The solutions is:

don't print all the forms page one time.

in the driver program, separated the data for different customer into internal tables.

loop at the header internal table which contain one record for each customer.

Call the function of the form.

endloop.

According seting the control parameter of the form print function, you can collect all the pages into a sinlge spool request.

This solution can perfectly solve the problem.

Good luck.