05-25-2006 11:55 PM
Hi, if I have 3 pages in my SAPScript, how do I know which page is current? Is there a field/variable that I can check?
Any document that shows the other variables?
05-25-2006 11:58 PM
05-26-2006 12:07 AM
Im sorry but that is not what I meant...basically, I have the following PAGE in my SAPSCRIPT:
DTLPG1
DTLPG2
TOTPG1
TOTPG2
There are some windows that are common to each. Therefore, how do I know that SAPScript is currently on a particular page (from the list above). Is there a variable that can be checked?
05-26-2006 1:06 AM
hi blumtain,
check all these commands
&syst-page& for current page
&syst-jobpages& for total pages
or
use &page&/&syst-page&/&sy-pagno&
or
you can do this way..
&PAGE& of &SAPSCRIPT-JOBPAGES&
or\
you can use following command in sapscript
Page &PAGE& of &SAPSCRIPT-FORMPAGES&
Regards,
Naveen
05-26-2006 1:26 AM
Thanks for the input but I am not looking for the page number or the total pages. The "Page" that I am referring to is the element "Page" in sapscript. As stated above, I have 4 Page elements and I am wondering if there is a system variable that can be used to identify this when SAPScript is being executed.
05-26-2006 4:57 AM
HI
GOOD
TRY THIS OUT
Call function 'OPEN_FORM'
EXPORTING
Form = 'Z_FORM'
Call function 'START_FORM'. "Default startpage = FIRST
...
[Print all standard form pages]
Call function 'END_FORM'. "Printed everything but T&C
Call function 'START_FORM' "Start a new page
EXPORTING
Startpage = 'LAST'. "Direct access to page LAST
Call function 'WRITE_FORM'
EXPORTING
Window = 'TERMS'. "Final page T&C
Call function 'END_FORM'. "End of printing page LAST
Call function 'CLOSE_FORM'.
-
You can just fill the data in the main
window and SAP will handle the paging based on the NEXT PAGE in the
SAPscript.
THANKS
MRUTYUN
05-26-2006 5:12 AM
System Symbols
Current Date
Current Day Number
Current Month Number
Current Year Number
Current Day Name (Long Form)
Current Month Name (Long Form)
Current Time
Hours Component of Current Time
Minutes Component of Current Time
Seconds Component of Current Time
Current Page Number
Page Number of the Next Page
Selected Device Type
Spaces
Underline
Vertical Line
&VLINE& You can use this symbol to insert a string of vertical line characters into the output text. You must pass the number of vertical line characters required with the symbol. If you leave out the number, then just one vertical line character is printed.
regards
vinod