dispatch 
Use this method to dispatch application events (see Event Handling) to the event handlers registered for the events. If you do not call the method within the PAI event of your application program, it is called automatically by the system after the PAI has been processed. The method returns a return code from which you can tell if the call was successful.
Syntax
CALL METHOD cl_gui_cfw=>dispatch IMPORTING return_code = return_code.
Parameters |
Description |
|---|---|
return_code |
|
Caution
An event can only be dispatched once. After that, it is "spent". Consequently, attempting to dispatch the events a second time does not trigger the handler events again.