Application Development and Automation 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: 
Read only

sap script current page name

Former Member
0 Likes
2,366

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
Read only

GauthamV
Active Contributor
0 Likes
1,599

&PAGE& - for page number

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

Read only

sunil_kokane2
Explorer
0 Likes
1,599

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.

Read only

0 Likes
1,599

HI,

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

regards,

bharat.

Read only

0 Likes
1,599

You will get current pagename details using this variable.

ITCTG-TDPAGE

Read only

0 Likes
1,599

Gautham,

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

text elements:

/: IF &ITCTG-TDPAGE& = NEXT

/: ENDIF

regards,

Bharat.

Read only

0 Likes
1,599

try this

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

/: ENDIF

Read only

Former Member
0 Likes
1,599

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.

Read only

Former Member
0 Likes
1,599

Hi Bharath,

Try this &ITCTG-TDPAGE&

Regards

Sravan