cancel
Showing results for 
Search instead for 
Did you mean: 

How to print a text on every page except last page of smartform

Former Member
0 Kudos

Hi,

I want to print a text on every page except the last page.

I'm using the variable sfsy-page and sfsy-jobpages, but in debugging it is showing same values for both variables i.e., for first page it showing 1 for both variables for first page and 2 for second page.

So,plz guide me how to get the total number of pages of smartforms.

Thanks

Sonali.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

In run time the variable returns sfsy-jobpages as current page only.

try out making the window as final window.

bharat_rathod2
Active Participant
0 Kudos

Dear,

Try to view more than one page privew and befor see it put condition on that text node

sfsy-page <> sfsy-jobpages

former_member209818
Active Contributor
0 Kudos

It seems that your Output is only one page output. Hence its showing value 1 in both the System variables. Try to generate a out which will spill to multiple pages and then try to print your variables.

Just a Thought

If sfsy-page = sfsy-jobpages And sfsy-page = 1, Print the variable.

If sfsy-page <> sfsy-jobpages, print the variable.

you can build the logic using above details

JL23
Active Contributor
0 Kudos

moved from SAP ERP - Logistics Materials Management (SAP MM) to Output Management

because I think it is more a general issue about smart forms than a specifc issue regarding MM application