Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

cl_salv_functions_list->set_function( name=, boolean=)

Former Member
0 Likes
1,639

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?

2 REPLIES 2
Read only

Former Member
0 Likes
1,034

Solved it by renaming GUI Status from SALV_TABLE_STANDARD to something else. SALV_TABLE_STANDARD must be a reserved GUI Status name

Read only

Former Member
0 Likes
1,034

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.