Command to used in your sapscripts :-
/: IF &NEXTPAGE& EQ 0
whatever footer you want.
/: ENDIF
Best regards, SAP Basis, ABAP Programming and Other IMG Stuff http://www.sap-img.com