cancel
Showing results for 
Search instead for 
Did you mean: 

SFSY-FORMPAGES problem

Former Member
0 Kudos

Hi,

I'm having a problem getting the correct formpages total and cannot reset this field as well. Please help!

For example, 3 POs are passed into the smartform( PO1 and PO2 has 1 page each, while PO3 has 2 pages) . I set up the pages/page break as follows:-

1) 1st Page ( initialize page counter )

Inside, I defined a Loop node, with an event "At new" where I created a "Page break command" should the event be triggered.

2) 2nd Page ( increase page counter)

The SFSY-FORMPAGES is showing '2' for all 3 POs when displayed. Seems it is keeping the last value. Is there any way to reset this?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Claire,

Use this in the place of what you have used and this will solve your problem.

Page: &SFSY-PAGE& of &SFSY-FORMPAGES&

This will give the output as Page 1 of 10. (Example).

Reward Points if useful.

Thanks,

Tej..

Message was edited by:

Shree Tejus

Former Member
0 Kudos

Hi,

try using SFSY-JOBPAGES instead of SFSY-FORMPAGES, it may solve your problem

i think SFSY-FORMPAGES will count the no of pages in form rather than no of pages for print

Regards

Shiva

Former Member
0 Kudos

Hi

SFSY-FORMPAGES field will give the Total pages for a single PO only

if you are using multiple POs then this will be problem

Try to clear this AT NEW PO..event and see whether it get cleared or not.

Reward points for useful Answers

Regards

Anji

Former Member
0 Kudos

Hi Anji,

Thanks for the idea.. I tried but it doesn't work out for PO3 now. It's always showing '1' for FORMPAGES now.. any other ideas/tips? I've tried performing some calculation etc but it just doesn't work out

regards

claire