cancel
Showing results for 
Search instead for 
Did you mean: 

Remove standard button in ALV LIKE APPEND/INSERT/DELETE

mahesh_jagnani
Participant
0 Kudos

Hi Expert,

I have a requirement in which we do not need APPEND/INSERT/DELETE button in ALV,Can you please tell how i can remove that.

Pleaae suggest.

Thanks

Mahesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member199125
Active Contributor
0 Kudos

Check this

data lo_cmp_usage type ref to if_wd_component_usage.

lo_cmp_usage = wd_this->wd_cpuse_alv1( ). " alv1 is my used alv component

if lo_cmp_usage->has_active_component( ) is initial.

lo_cmp_usage->create_component( ).

endif.

data lo_interfacecontroller type ref to iwci_salv_wd_table .

lo_interfacecontroller = wd_this->wd_cpifc_alv1( ).

data lo_value type ref to cl_salv_wd_config_table.

lo_value = lo_interfacecontroller->get_model( ).

data: lr_std type ref to if_salv_wd_std_functions.
    lr_std ?= lo_value.
lr_std->SET_EDIT_APPEND_ROW_ALLOWED( abap_false ).

lr_std->SET_EDIT_DELETE_ROW_ALLOWED( abap_false ).

lr_std->SET_EDIT_INSERT_ROW_ALLOWED( abap_false ).

Regards

Srinivas

Answers (0)