cancel
Showing results for 
Search instead for 
Did you mean: 

Print text in last page

Former Member
0 Kudos

Hello,

I have to print certain sentence only in the last page,

i tryied by using

/: if &PAGE& EQ &SAPSCRIPT-FORMPAGES&

p1 hello

/:endif.

its not coming since &SAPSCRIPT-FORMPAGES& value is determined only at end .

Can any one help me out to print the text only in the last page without changing the print prog.since we are using standard print program.

Regards,

Poornima.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.

From SAP Help:

This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .

Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.

/: IF &NEXTPAGE& = '0'

  • Last page

/: ENDIF

<b>Reward points</b>

Regards

Former Member
0 Kudos

Hi

Create a Footer window and in that window you write these lines

/: if &PAGE& EQ &SAPSCRIPT-FORMPAGES&

p1 hello

/:endif.

it should work.

<b>Reward points for useful Answers</b>

Regards

Anji