Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

*&---------------------------------------------------------------------*

*& Include ZMENU_INTERFAZ_I01


*&---------------------------------------------------------------------*
*&---------------------------------------------------------------------*
*& Module USER_COMMAND_0100 INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
module user_command_0100 input.
data: return_code type i.
* CL_GUI_CFW=>DISPATCH must be called if events are registered
* that trigger PAI
* this method calls the event handler method of an event
call method cl_gui_cfw=>dispatch
importing
return_code = return_code.
if return_code <> cl_gui_cfw=>rc_noevent.
" a control event occured => exit PAI
clear g_ok_code.
exit.
endif.

case sy-ucomm.

when 'BACK'. " Finish program


if not g_custom_container is initial.
" destroy tree container (detroys contained tree control, too)
call method g_custom_container->free
exceptions
cntl_system_error = 1
cntl_error = 2.
if sy-subrc <> 0.
endif.
clear g_custom_container.
clear g_tree.
endif.
leave program.
endcase.

endmodule. " USER_COMMAND_0100 INPUT

You might also like