SAP ABAP is one of the Event triggering programming languages which has its unique way of executing the code by calling the events which user has mentioned at the time of implementing the code. SAP has prioritized the order of execution in ABAP, Lets see what are all those events.
I have seen people saying there are 8 events, and some say there are 10, some other say there are only 6 events……but to my knowledge I say there are exactly 12 events in SAP ABAP.
(1) Load of Program — This is the first event which gets triggered once the execution is started. Goal of this event is to load the code into system memory.
(2) Initialization — This event is used to assign the default values to the variables which we define in the data decleration section.
(3) At Selection Screen Output — This event is mainly used to perform screen manipulations in the output selection screen. We can refer this event to a module pool concept called PBO ( Process Before Output ) which works in the similar way. Inoder to deal with At selection screen output we have to use table called Screen. This event will ge triggered before the selection screen is processed.
(4) At Selection Screen — This event is mainly used to perform validations on multiple input field parameters. This event will get triggered while the selection screen is being processed.
At Selection Screen On ‘Field’ — This event is used to perfomr screen validatons on single input paramter field.
At Selection Screen On-Value Request For ‘Field’ — This event is used to enable an F4 functionality on input field.
At Selection Screen On-Help Request For ‘Field’ — This evenet is used to generate a documentation relevant to that field upon clicking F1.
(5) Start-Of-Selection — This is the place where our whole business logic is implemented. This event gets triggered after the selection screen processing is completed.
(6) End-Of-Selection — This represents end of start of selection event. This event is mainly used while we are dealing with Logical Database which we often used in HR Module. Its not a madatory event to mention when we are not dealing with Logical database, despite we have to use it when dealing with logical database.
(7) Top-Of-Page — This event is mainly used if you want to mention header on the output screen. We often use this event while dealing with Reports.
(8) End-Of-Page — This event is mainly used if you want to mention the footer on the output screen.We often use this event while dealing with Reports. Unlike in Top of Page, we have to reserve some space to mention footer part on the output screen.
Syntax → REPORT ZAging_Report LINE-COUNT (20).
(9) At Line-Selection — This event gets triggered when the user double click on List line in the final output screen.
(10) Top-Of-Page During Line-Selection — This event is used to write something on top of every page of secondary list.
(11) At PF — This event gets triggered when the user clicks on Function Button.
(12) At User-Command — This event gets triggered when the user clicks on any Custom button of the GUI.
Above are the list of events in SAP ABAP. If I was wrong at any point ,leave your suggesions in the comment window.
SAP ABAP is one of the Event triggering programming languages which has its unique way of executing the code by calling the events which user has mentioned at the time of implementing the code. SAP has prioritized the order of execution in ABAP, Lets see what are all those events.I have seen people saying there are 8 events, and some say there are 10, some other say there are only 6 events……but to my knowledge I say there are exactly 12 events in SAP ABAP.(1) Load of Program — This is the first event which gets triggered once the execution is started. Goal of this event is to load the code into system memory.(2) Initialization — This event is used to assign the default values to the variables which we define in the data decleration section.(3) At Selection Screen Output — This event is mainly used to perform screen manipulations in the output selection screen. We can refer this event to a module pool concept called PBO ( Process Before Output ) which works in the similar way. Inoder to deal with At selection screen output we have to use table called Screen. This event will ge triggered before the selection screen is processed.(4) At Selection Screen — This event is mainly used to perform validations on multiple input field parameters. This event will get triggered while the selection screen is being processed.At Selection Screen On ‘Field’ — This event is used to perfomr screen validatons on single input paramter field.At Selection Screen On-Value Request For ‘Field’ — This event is used to enable an F4 functionality on input field.At Selection Screen On-Help Request For ‘Field’ — This evenet is used to generate a documentation relevant to that field upon clicking F1.(5) Start-Of-Selection — This is the place where our whole business logic is implemented. This event gets triggered after the selection screen processing is completed.(6) End-Of-Selection — This represents end of start of selection event. This event is mainly used while we are dealing with Logical Database which we often used in HR Module. Its not a madatory event to mention when we are not dealing with Logical database, despite we have to use it when dealing with logical database.(7) Top-Of-Page — This event is mainly used if you want to mention header on the output screen. We often use this event while dealing with Reports.(8) End-Of-Page — This event is mainly used if you want to mention the footer on the output screen.We often use this event while dealing with Reports. Unlike in Top of Page, we have to reserve some space to mention footer part on the output screen.Syntax → REPORT ZAging_Report LINE-COUNT (20).(9) At Line-Selection — This event gets triggered when the user double click on List line in the final output screen.(10) Top-Of-Page During Line-Selection — This event is used to write something on top of every page of secondary list.(11) At PF — This event gets triggered when the user clicks on Function Button.(12) At User-Command — This event gets triggered when the user clicks on any Custom button of the GUI.Above are the list of events in SAP ABAP. If I was wrong at any point ,leave your suggesions in the comment window. Read More Technology Blog Posts by Members articles
#SAP
#SAPTechnologyblog