hi,
there are 20 pages in the report for which same header is diplayed for 20 pages by using follow.
TOP-OF-PAGE.
PERFORM write_doc_header.
now the requirement is to change the last page heading. for this i've another perform statement.
so plz let me know the syntax sh be to place this perform statment.
plz let me know tht am i thinking right by luking at below??
TOP-OF-PAGE.
if sy-index = last page.
perform lastpage_header.
else
PERFORM write_doc_header.
endif.