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

Script

Former Member
0 Likes
339

What is the system field to view the last page of the script?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
323

Hi,

There is no system field for the last page.

1.For last page:

Print Footer notes only on the last page :

Command to used in your sapscripts :-

/: IF &NEXTPAGE& EQ 0

whatever footer you want.

/: ENDIF

2.These are the system variables:

&DATE& Currentdate

&DAY& Day

&MONTH& Month

&YEAR& Year

&TIME& Time of the day

&HOURS& Hours

&MINUTES& Minutes

&SECONDS& Seconds

&PAGE& Page

&NEXTPAGE& Next page number

&SPACE& Blank

&ULINE& Underline

&VLINE& Vertical line

&NAME_OF_MONTH& Name of the Month

&SAPSCRIPT-FORMPAGES& Total number of pages in currently formatted layout set

&SAPSCRIPT-JOBPAGES& Total number of pages in currently formatted print request

Regards,

If helpful reward with points(Don't forget).

Edited by: shiva kumar on Apr 11, 2008 9:19 AM

2 REPLIES 2
Read only

Former Member
0 Likes
324

Hi,

There is no system field for the last page.

1.For last page:

Print Footer notes only on the last page :

Command to used in your sapscripts :-

/: IF &NEXTPAGE& EQ 0

whatever footer you want.

/: ENDIF

2.These are the system variables:

&DATE& Currentdate

&DAY& Day

&MONTH& Month

&YEAR& Year

&TIME& Time of the day

&HOURS& Hours

&MINUTES& Minutes

&SECONDS& Seconds

&PAGE& Page

&NEXTPAGE& Next page number

&SPACE& Blank

&ULINE& Underline

&VLINE& Vertical line

&NAME_OF_MONTH& Name of the Month

&SAPSCRIPT-FORMPAGES& Total number of pages in currently formatted layout set

&SAPSCRIPT-JOBPAGES& Total number of pages in currently formatted print request

Regards,

If helpful reward with points(Don't forget).

Edited by: shiva kumar on Apr 11, 2008 9:19 AM

Read only

Former Member
0 Likes
323

Hi,

&SAPSCRIPT-FORMPAGES& (Total number of pages in currently formatted layout set ) can be used to view last page of script as the last page will be equal to the total number of pages .

Hope this helps.

Reward if helpful.

Regards,

Sipra