CALL METHOD cl_gui_cfw=>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.
CALL METHOD cl_gui_cfw=>dispatch
IMPORTING return_code = return_code.