Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers