Application Development 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: 

what are application events and system events? what is difference between ?

Former Member
0 Kudos

what are application events and system events? what is difference between ?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

System events:

The event is passed to the application server, but does not trigger the PAI.

It will execute an event handler method in ABAP program for the event (using the SET HANDLER statement), on the application server.

Within the event handler method, the static method SET_NEW_OK_CODE of the global class CL_GUI_CFW is used to set a function code and trigger the PAI event.

After the PAI has been processed, the PBO event of the next screen is triggered.

Application events:

The event is passed to the application server, and triggers the PAI.

For handling this event we need to include a method call in a PAI dialog module for the static method DISPATCH of the global class CL_GUI_CFW.

If there is also an event handler method defined in ABAP program for the event (using the SET HANDLER statement), the DISPATCH method calls it. After the event handler has been processed, control returns to the PAI event after the DISPATCH statement and PAI processing continues.

The advantage of this is that you can specify yourself the point at which the event is handled

2 REPLIES 2

Former Member
0 Kudos

System events:

The event is passed to the application server, but does not trigger the PAI.

It will execute an event handler method in ABAP program for the event (using the SET HANDLER statement), on the application server.

Within the event handler method, the static method SET_NEW_OK_CODE of the global class CL_GUI_CFW is used to set a function code and trigger the PAI event.

After the PAI has been processed, the PBO event of the next screen is triggered.

Application events:

The event is passed to the application server, and triggers the PAI.

For handling this event we need to include a method call in a PAI dialog module for the static method DISPATCH of the global class CL_GUI_CFW.

If there is also an event handler method defined in ABAP program for the event (using the SET HANDLER statement), the DISPATCH method calls it. After the event handler has been processed, control returns to the PAI event after the DISPATCH statement and PAI processing continues.

The advantage of this is that you can specify yourself the point at which the event is handled

Former Member
0 Kudos

The Control Framework triggers the event irrespective of the screen flow logic, that is, without processing the PAI and PBO events. These events are called system events. This type of event processing is the default setting.

·The Control Framework processes the PAI module after an event. In this case, you must call method CL_GUI_CFW=>DISPATCHto initiate the event handling of ABAP Objects. These events are called application events.

Application Event : you must first register the events for the control instance and consequently on the frontend.

like..

DATA events TYPE cntl_simple_events.

DATA wa_events TYPE cntl_simple_event.

1. Using field

appl_event , define the event as an application event:

wa_events-appl_event = 'X'.

System events are passed on irrespective of the flow logic of the relevant screen.

1. Change the value of field

wa_events-appl_event in the PBO module:

wa_events-appl_event = SPACE.

Edited by: Devi Raju on Jul 1, 2008 1:48 PM