Classical Reports, What are the events of Classical Reports ?

Classical reports in SAP ABAP programming, Classical report events in SAP ABAP programs

+ -
  • Classical Reports are reports which contain both selection-screen and output screen.
  • SAP ABAP is an event driven programming language, ABAP programs executed based on events not line-by-line.
Events in Classical Reports

Below are the list and sequence of events available under classical reports, each event has it`s own importance .

Load-of-praogram

This event is used to load program into memory for execution and this is the first event in execution sequence.

Initialization

This event is used to initialize variables, screen default values and other default actions.

At Selection-Screen output

By using this event we can manipulate dynamic selection-screen changes.

At Selection-Screen on field

This event is used to validate a single selection-screen input parameter.

Syntax: AT SELECTION-SCREEN ON <parameter name>. "Validate a input parameter 

At Selection-Screen on value request

This event is used to provide value help ( field help ) for a input field.

Syntax: AT SELECTION-SCREEN ON VALUE REQUEST FOR <parameter name>. "Input search help for a input parameters 

At Selection-Screen on help request

By using this event we can provide F1 help for a input field.

Syntax: AT SELECTION-SCREEN ON HELP REQUEST FOR <parameter name>. "Input (F1) help for a input parameters 

At Selection-Screen

This event is used to validate multiple input fields

Syntax: AT SELECTION-SCREEN . "used to validate multiple input fields 

Start-of-Selection

This is default event which is used to write actual business logic .

Syntax: START-OF-SELECTION . "Default event 

End-of-Selection

We can use this event just to state that start-of-selection is ended, this event is used with logical databases, logical databases are in HR ABAP only. In normal ABAP we don`t have much importance .

Syntax: END-OF-SELECTION . "Start of selection is ended 

Top-of-Page

This event prints constant heading for all pages.

Syntax: TOP-OF-PAGE . "Page heading 

End-of-Page

This event prints constant footer for all pages.

Before using this event, we need to reserve some lines for displaying footer .

Syntax: END-OF-PAGE . "Page footer 
Example: REPORT ZPROGRAM LINE-COUNT 27(3). " Here we reserve 3 lines for footer 
Note: The above events are events available under classical report, there will be more events in interactive reports.

Learner Questions


No Questions by learners, be first one to ask ..!!

    Please Sign in to ask a question

    Was this lesson helpful to you? Yes No 122 People out of 126 think this lesson helpful


    Lesson Navigation

    Modularization techniques in SAP ABAP← Previous Lesson
    Next Chapter →