Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP Events

Former Member
0 Likes
1,621

hi,

what r the ABAP events?

explain Each event ?

event orders?

hi,

what r the ABAP events?

explain Each event ?

event orders?

8 REPLIES 8
Read only

Former Member
Read only

Former Member
0 Likes
1,198

TOP-OF-PAGE

INITIALIZATION

AT SELECTION-SCREEN

START-OF-SELECTION.

GET .

GET LATE.

END-OF-SELECTION.

END-OF-PAGE is the order

and

Initialization, At selection-screen, Start-of-selection, end-of-selection, top-of-page, end-of-page, At line-selection, At user-command, At PF, Get, At New, At LAST, AT END, AT FIRST. are the events..

Read only

Former Member
0 Likes
1,198

HI,

EVENTS IN ABAP R

____________________________

CLASSICAL REPORT EVENTS :

_________________________________

INITIALIZATION : TO INITIALISE THE SELECTION SCREEN ELEMENTS

START- OF-SELECTION: NORMALLY WE WRITE THE REPORT LOGIC HERE

AT SELECTION-SCREEN : SELECTION SCREEN VALIDATIONS

WHETHER U ENTERED IS CORRECT OR NOT AT SELECTION SCREEN LEVEL

AT SELECTION-SCREEN ON FIELD : TO PROVIDE INPUT HELP[S FOR THE FILDS AT SELECTION SCREEN

FOR EX : MATNR IF U PREESS F4 AT SELECTION SCREEN.

TOP-OF-PAGE : TO PROVIDE LIST HEADING ( OUTPUT HEADINGS)

END-OF-PAGE : TO PROVIDE FOOTER I.E., PAGE NUMBERS

END-OF-SELECTION : TO FREE THE MEMORY , NO NEED OF USING THIS SPECIALLY

_______________________

INTERACTIVE EVENTS :

__________________________

AT LINE-SELECTION : IT IS USED TO HENDLE SECONDARY LISTS

AT USER-COMMAND : TO PROVIDE OUR OWN GUI ( PUSH BUTTONS ETC) AT OUTPUT

AT PF-STATUS : TO PROVIDE FUNCTIONS FOR OUR OWN PROVIDED GUI BUTTONS AT OUTPUT

Read only

Former Member
0 Likes
1,198

Hi Baskar,

The various events used in ABAP are:-

Runtime events:-

Selection screen events

Initialization

At selection-screen

Events after selection criteria has been processed:-

Start-of-selection

End-of-selection

Interactive Events

During list processing:-

Top-of-page

End-of-page

During display of (interactive) list:-

At line-selection

At user-command

AT pf<nn>

For futher details go to ABAP Documentation.There every event is explained with Examples.

Reward if useful.

Regards,

Shilpi

Read only

Former Member
0 Likes
1,198

LOAD-OF-PROGRAM.

Triggers the associated event in an internal session after loading a program of type 1, M, F, or S. Also runs the associated processing block once and once only for each program and internal session.

INITIALIZATION.

the associated event is executed before the selection screen is displayed.

START-OF-SELECTION.

In an executable program, the corresponding event is processed after the selection screen has been displayed and before data is read using a logical database

GET

Triggers the associated events when data is read in an executable (type 1) program using a logical database.

END-OF-SELECTION.

The END-OF-SELECTION event is triggered in type 1 programs once the logical database has finished reading all data and before the list processor is started.

END of page and top page

while displaying the list as the name suggest fired at the top and end of page

taken from SAP help

write the event name and press F1 for help.

Read only

Former Member
0 Likes
1,198

hi

good

Event related to reports are not triggered based on any statements in ABAP.

The event are triggered depended on the way the output is generated .

for eg:

Initialization : triggered when the report is loaded in memory.

At selection-screen output : triggered when the selection screen is loaded in memory before being displayed.

At selection-screen / <field> : before leaving the selection screen.

start-of-selection : the first event for displaying the report.

end-of-selection : after the start-of-selection is completed.

classiscal report events.

top-of-page : every time a new page is started in the list.

end-of-page : every time the list data reaches the footer region of the page.

interactive report events.

top of page during line selection : top of page event for secondary list.

at line-selection : evey time user dbl-clicks(F2) on the list data.

at pF<key> : function key from F5 to F12 to perform interactive action on the list.

reward point if helpful.

thanks

mrutyun^

Read only

Former Member
0 Likes
1,198

initialisation ,

at selection screen o/p,

start of selection ,

end of selection,

get,

get_late,

top-of-page,

end-of-page.

<b>initialisation</b> : Default Values is assinged to the parameters and select-options..

<b>top-of-page</b>:it trigers after the first write statement.

<b>end of page</b> : as mentioned at the line-count .. during the write statements it trigerrs..

these three things r usually asked in the interview...<b></b><b></b>

if its usefull plz reward points

Read only

Former Member
0 Likes
1,198

Events associated with classical report:

1 initialization

2.at selection-screen-output

3.at selection-screen

4.at selection-screen on value request for field <fld>

5.start-of-selections

6.top-of-page

7.end-of-page

8.end-of-selection

usage :

1.to declare frequently used or default values(PBO).

2.to change the look and feel of screen attributes

3.to validate a particular field i.e fld

4.to validate all the fields present in the screen

5.default event ,which triggers after pressing F8

6.to display the page heading in basic list

7.to disp the footer

8.to display the output.

-


in addition to those the events present in interactive report are as follows:

1.at pf<key> Ex: at pf5.

2.at line selection

3.at user-command

4.top-of-page -during line selection

note : end-of-page is used to display the footer in both basic and secondary lists.

1. providing a functional key for end user to yield secondary list

2.for providing double click action

3. providing own gui with push buttons and menus to yield sec list

4.to display the header in sec lists only