cancel
Showing results for 
Search instead for 
Did you mean: 

Print Total of Pages

former_member220448
Participant
0 Kudos

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!

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member208517
Participant
0 Kudos

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.

Former Member
0 Kudos

Hi,

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

former_member220448
Participant
0 Kudos

The problem is that &SFSY-JOBPAGES(3Z)& shows the total of pages in every form.

EX: 1st form 4 pages

2nd form 2 pages

3rd form 3 pages

Total pages 9.

I've got 1 of 9

2 of 9

3 of 9

4 of 9

1 of 9

2 of 9

1 of 9

2 of 9

3 of 9

Any new idea?

What does de (3Z) stand for?

Thanks,

Nico.-

Former Member
0 Kudos

HI,

try this Page &SFSY-PAGE& of &SFSY-formPAGES&

3 stands for no of digits &

Z stands for non zero

former_member220448
Participant
0 Kudos

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.-