Skip to Content
-1
Jun 09, 2020 at 09:07 PM

Call Status GUI to a global class

626 Views

Hi there.

I have a reporte ALV, where I'm triying call my status GUI from my program report to a method in a global class. I'm using the next function:

lo_alv->set_screen_status(  report        = sy-repid
                            pfstatus      = 'ZMY_GUI_ALV'
                            set_functions = 2 ).

How can I make this? I get a dump with this description:

An exception has occurred which is explained in more detail below. The
exception, which is assigned to class 'CX_SALV_OBJECT_NOT_FOUND' was not
 caught and
therefore caused a runtime error. The reason for the exception is:
Objeto: ZMY_GUI_ALV; nombre: MENU no existe (clase: CL_SALV_MODEL_LIST; método:
SET_SCREEN_STATUS)