Skip to Content
0

cl_salv_table Remove function code

May 08 at 12:38 PM

68

avatar image

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

capture1.png (14.1 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Rajkumar Narasimman May 08 at 12:56 PM
0

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


popup.png (14.5 kB)
Show 3 Share
10 |10000 characters needed characters left characters exceeded

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

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

Thank you, now it works!

0