cancel
Showing results for 
Search instead for 
Did you mean: 

Printing in last page

Former Member
0 Kudos

Hi Experts,

I created a window for signature in SAP Script, in which the text "Signature" should appear only in the last page.

I did the following code.

/: IF &PAGE& = &SAPSCRIPT-FORMPAGES&

/ Signature

/: ENDIF

But the condition doesn't match to the last page.

PAGE value is like '3' and SAPSCRIPT-FORMPAGES value is like ' 3'.

Space is prefixed. How can I come out this issue.

Kindly help me out.

Thanks and regards,

Venkat.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hello friend,

I think it can be in better way....

i.e.

use the

perform write_form 'print_sign' 'sign'.

just before the close_form(fm).

print_sign=element name

sign=window name

it is better because , we should not overload the form.

And your sign will also print at last page only.

what you think?

Former Member
0 Kudos

hello friend,

I think it can be in better way....

i.e.

use the

perform write_form 'print_sign' 'sign'.

just before the close_form(fm).

print_sign=element name

sign=window name

it is better because , we should not overload the form.

And your sign will also print at last page only.

what you think?

Former Member
0 Kudos

Hi,

try this way..

/: IF &NEXTPAGE& EQ 0

/ Signature

/: ENDIF

Prabhudas