on 04-23-2008 3:59 AM
Hi gurus,
I want to check if the current page is the last page and use this statement in Code Node:
IF SFSY-PAGE EQ SFSY-FORMPAGES.
V_G_SHOW = 'X'.
ELSE.
But when I try to debug this part of code, I find SFSY-PAGE and SFSY-FORMPAGES always have same value.
Why?
thanks
Hi Donghai Liang
Its not possible to handle IF SFSY-PAGE EQ SFSY-FORMPAGES. But if u want to do some thing at the end ( on the last page or after the last page) put your code after the loop in main window. So that it works after printing of all the table entries. That means on the last page. If u still want to trigger another page there u can trigger using command line for new page.
Reward if useful.
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check the window type if it is Secondary change to Final window
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Smartforms evaluate &SFSY-FORMPAGES& during the execution of the form.
If you want to know the final number of pages, you have to execute the Windows at the end of the form. Look at OSS [Note 588352 - '*' when you output the total number of pages |https://service.sap.com/sap/support/notes/588352] so the window will be "late" executed and the data of &SFSY-FORMPAGES& and &SFSY-PAGE& may be different. (the note relates to "final" window)
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
control commands will work only in SAP scripts. Even though they will not give any syntax errors in smart forms, They will not work. You write the code in the program lines node. Create the node program lines where ever you want and in that you have to write the code.
Reward.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
After processing all the elements inside the page,it will decide the page no.so it is not possible to use these system variables directly inside the page elements.Instead you can use the conditions ie. And Additional Events like only on first page etc..under conditions tab
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.