Skip to Content
0

Need to print certain text at last page at footer in SAPSCRIPT

May 25, 2017 at 08:17 PM

40

avatar image
Former Member

Hi All,

I need to print some Text of Footer at last page. I have been using flag for this purpose as below in sapscript. I have defined this under MAIN Window. &PAGE(C)& EQ &SAPSCRIPT-FORMPAGES(C) doesn't work here.

/E FOOTER

/:BOTTOM

/: IF FLAG EQ 'X'

text

text

/: ENDIF

/:ENDBOTTOM

In sapscript program have kept following logic at the end.

data: flag type c.

flag = 'X'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'FOOTER'

EXCEPTIONS

element = 1

window = 2.

it works correctly and prints the required only at last page at bottom. But whenever the space in MAIN Window is less, it doesn't print the text. It should go to next page is space is not sufficient.

Please help.

Thanks

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers