The compiler normally loads the description of a global class from the class library the first time you use the class in your program - in particular, when you use the class for the first time to specify the type of a reference variable. However, if the first access to a global class in a program is to its static components or in the definition of an event handler method , you must load it explicitly using the statement CLASS class DEFINITION LOAD. This variant has no corresponding ENDCLASS statement.
CLASS CL_GUI_PICTURE DEFINITION LOAD.
CLASS C1 DEFINITION.
METHODS HANDLER FOR EVENT PICTURE_CLICK OF CL_GUI_PICTURE.