‎2009 Jan 19 11:59 PM
I have an ABAP program that runs multiple SALV reports using CL_SALV_TABLE. I copied GUI STATUS: SALV_TABLE_STANDARD to program and assign it to CL_SALV_TABLE. I modified the GUI status to have buttons for each report. I am trying to disable the button for the report that is currently displayed using syntax:
-
>
data: lr_functions type ref to cl_salv_functions_list
lr_functions = cl_salv_table->get_functions( )
lr_functions->set_functions( name= <name>, boolean= abap_false)
-
>
In debug it is not finding the function name that needs to disabled.
What step did I miss?
‎2009 Jan 20 12:56 AM
Solved it by renaming GUI Status from SALV_TABLE_STANDARD to something else. SALV_TABLE_STANDARD must be a reserved GUI Status name
‎2011 Feb 14 7:57 AM
I found that in the call to cl_alv_model_base->SET_SCREEN_STATUS that there is also a function module ALV_CHECK_BUFFER. It seems the status's are buffered and sometimes the customer added functions aren't able to be activated/deactivated.