Application Development 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: 

cl_salv_table Remove function code

0 Kudos

Hi all,

I am using CL_SALV_TABLE to create ALV. I need only the OK button to continue, no other functions. I have already disabled the generic functions like this:

lr_functions->set_group_export( abap_false ).

but can I also hide/disable the other buttons? F1 Help? Arrows to move?

Thank you for your help,

Tim

1 ACCEPTED SOLUTION

rajkumarnarasimman
Active Contributor
0 Kudos

Hi Tim Krause,

Use SET_ALL method to disable the buttons in CL_SALV_TABLE.

DATA: lr_functions TYPEREFTO cl_salv_functions_list.  
lr_functions = go_alv->get_functions().   
lr_functions->set_all(' ').

Output:

Regards

Rajkumar Narasimman

4 REPLIES 4

rajkumarnarasimman
Active Contributor
0 Kudos

Hi Tim Krause,

Use SET_ALL method to disable the buttons in CL_SALV_TABLE.

DATA: lr_functions TYPEREFTO cl_salv_functions_list.  
lr_functions = go_alv->get_functions().   
lr_functions->set_all(' ').

Output:

Regards

Rajkumar Narasimman

0 Kudos

Hi,

thank you for your comment. How is your go_alv defined? For me, the functions->set_all('') does not have an impact, so functions are still there.

BR,

Tim

0 Kudos

Used CL_SALV_TABLE for GO_ALV and set_screen_popup method to display popup window.

DATA go_alv TYPE REF TO cl_salv_table.

Instead of getting the functions and clearing all the buttons, even if you comment the code LR_FUNCTIONS while displaying popup, only ok button will display as shown in previous screenshot.


0 Kudos

Thank you, now it works!