01-28-2009 9:16 AM
HI experts,
can any body tell me how can i get the current page name in sap script.
In case of smartform we can get it by using sfsy-pagename. is there any way like this.
rgds,
bharat.
01-28-2009 9:27 AM
&PAGE& - for page number
&PAGE& Of &SAPSCRIPT-FORMPAGES& - for current page of total pages.
01-28-2009 9:31 AM
Refer Link
http://help.sap.com/saphelp_45b/helpdata/en/6c/897415dc4ad111950d0060b03c6b76/content.htm
Examples:
Page &PAGE& of &SAPSCRIPT-FORMPAGES(C)&
Specifies the current page number and total page number. The additional specification (C) outputs the symbol in a compressed form, that is the leading blanks are omitted in the 4-character output (default).
Number of all output pages: &SAPSCRIPT-JOBPAGES(C)&
Outputs the total number of output pages. Caution: When using this symbol, all output pages must be held in the main storage so that the total page number can be inserted at the end of the output. Larger outputs can affect performance.
01-28-2009 9:42 AM
HI,
I don't want the number of pages or current page number. i want the page name.
regards,
bharat.
01-28-2009 9:50 AM
You will get current pagename details using this variable.
ITCTG-TDPAGE
01-28-2009 10:06 AM
Gautham,
i am getting error when i try to use this variable as below.
text elements:
/: IF &ITCTG-TDPAGE& = NEXT
/: ENDIF
regards,
Bharat.
01-28-2009 1:01 PM
01-28-2009 9:58 AM
Hi Bharath,
Follow this procedure...
Got to
Insert (MENU)-> Symbols->System symbols-> TTXSY SAPscript system symbol
(select it )
Click Choose button
- from here select PAGE.
Insert (MENU)-> Symbols->System symbols-> SAPSCRIPT SAPscript system fields
(select it )
Click Choose button
- from here select -> FORMPAGES Total number of pages
In editor it appears as &PAGE& &SAPSCRIPT-FORMPAGES&
just type Of between them as below
&PAGE& Of &SAPSCRIPT-FORMPAGES&
So that it will be in readable format for user.
Regards,
Basheer.
01-28-2009 8:58 PM