Output with Page Header and Footer
The Header and Footer is achieved by TOP-OF-PAGE and END-OF-PAGE events in the program.
Please see the below code for reference and the output it generated.
Code
TOP-OF-PAGE.
* This event generates the Page Header Title
WRITE: 'Page with Header and Footer'.
ULINE AT /(27).
END-OF-PAGE.
* This event generates the Footer for the output
ULINE.
WRITE: /30 'Page', sy-pagno.
START-OF-SELECTION.
DO 6 TIMES.
WRITE / sy-index.
ENDDO.
Output
For more Tutorials, visit ABAP Tutorials, Tips & Tricks and Certification Questions
No comments:
Post a Comment