Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

sap script current page name

Former Member
0 Kudos

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.

8 REPLIES 8

GauthamV
Active Contributor
0 Kudos

&PAGE& - for page number

&PAGE& Of &SAPSCRIPT-FORMPAGES& - for current page of total pages.

sunil_kokane2
Explorer
0 Kudos

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.

0 Kudos

HI,

I don't want the number of pages or current page number. i want the page name.

regards,

bharat.

0 Kudos

You will get current pagename details using this variable.

ITCTG-TDPAGE

0 Kudos

Gautham,

i am getting error when i try to use this variable as below.

text elements:

/: IF &ITCTG-TDPAGE& = NEXT

/: ENDIF

regards,

Bharat.

0 Kudos

try this

/: IF &ITCTG-TDPAGE& EQ 'NEXT'

/: ENDIF

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi Bharath,

Try this &ITCTG-TDPAGE&

Regards

Sravan