‎2006 Jun 25 11:38 AM
Hi,
My client wants some text in the last page above footer.
I have given
if &page& = &sapscript-formpages&.
include (some text)
endif
but in debug when page is 1
formpages is 0.
Any inputs in this regard would be appreciated.
Thanks in advance.
Syed
‎2006 Jun 25 11:46 AM
Hi
If you want to write something only in the last page you've to check the variable &NEXTPAGE.
This variable give the number of the last page, if it's ZERO it means you're in last one.
if &&NEXTPAGE& = 0.
include (some text)
endif
Max
‎2006 Jun 26 12:42 PM
if &NEXTPAGE& = 0.
include (some text)
endif
or
if &sapscript-formpages& = 0.
do this (some text )
endif.
or
if &page& = 0
do (some text )
endif.
‎2006 Jun 26 9:46 AM
Hi Syed,
I hope the command you gave wont work because
<b>&page&</b> is a character type of length 60 and <b>&sapscript-formpages&</b> is an integer type of length 10. So you can check by two methods one is
<b>1.</b> if &NEXTPAGE& eq 0.
<b>
2.</b> using an include
/: PERFORM CHECK_PAGE1 IN PROGRAM Y_TEST
/: USING &PAGE&
/: USING &SAPSCRIPT-FORMPAGES&
/: ENDPERFORM
‎2006 Jun 26 9:59 AM
Hi Syed ,
The last page in script is shone as 0.
so we need to che check with 0.
try this code.
if &page& = 0.
include (some text)
endif.
OR
if &sapscript-formpages& = 0.
include (some text)
endif.
either of this two will works.
Regards,
Ramesh.
‎2006 Jun 26 10:00 AM
Hi Syed ,
The last page in script is shone as 0.
so we need to che check with 0.
try this code.
if &page& = 0.
include (some text)
endif.
OR
if &sapscript-formpages& = 0.
include (some text)
endif.
OR
if &NEXTPAGE& = 0.
include (some text)
endif.
either of this three will works.
Regards,
Ramesh.
‎2006 Jun 26 10:14 AM
‎2006 Jun 26 10:24 AM
‎2006 Jun 26 10:27 AM
hi syed,
give like this
if &NEXTPAGE& = 0.
include (some text)
endif