cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member220470
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (0)