on 12-05-2006 8:54 AM
Hi,
that seems stupid, but I'm not able to save the system value of the formpages (sfsy-formpages) in a local variable. If you print it out like Page &sfsy-page& of &sfsy-formpages& the value will be correct! If I try something like max_pages = sfsy-formpages only the current page number will be saved.
How can I do that? All hints and tips in the forum regarding Sapscript...
Thanks in advance,
Christian
Hi,
Use this
&SFSY-PAGE& of &SFSY-FORMPAGES<b>(3Z)</b>&
This will solve the problem.No need of local variable.
Kindly reward points if it helps.
Message was edited by:
Jayanthi Jayaraman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
In the window where you have this logic you could try to set the window type as "Final Window" because then the variable SFSY-FORMPAGES has been filled.
BR
Niklas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have to print a complex table with different footer lines, where some of them should only be printed on the last page. So a "Final window" does not help.
So, I see only one option:
Calculate the amount of lines to print and care myself for page breaks... This is a bad solution, because I can't handle unexpected page breaks and my layout will only work in "good" cases.
Shame on Smartforms for missing that simple functionality!
Perhaps you could extract the "footers" from the complex table and have them in a window at the bottom of the screen, and then have the window as "final window".
Because the only way you will be able to get the true value of sfsy-formpages is in a final window...
Good luck with your problem.
BR
Niklas
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.