cancel
Showing results for 
Search instead for 
Did you mean: 

how to remove the the standard button APPEND/INSERT/DELETE in webdynpro alv

Former Member
0 Kudos

Hello,

how to remove the the standard button APPEND/INSERT/DELETE in webdynpro-abap alv

Thanks

Rakshar

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member199125
Active Contributor
0 Kudos

Use this.

data lo_cmp_usage type ref to if_wd_component_usage.

lo_cmp_usage = wd_this->wd_cpuse_alv1( ).

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_export_allowed( abap_false ).

NOte: ALV1 is alv component name

Regards

Srinivas

Edited by: sanasrinivas on Dec 1, 2011 6:11 AM

Former Member
0 Kudos

Hi

You can use the methods from interface IF_SALV_WD_STD_FUNCTIONS.

example

l_table->if_salv_wd_std_functions~set_edit_insert_row_allowed( abap_false ).

l_table->if_salv_wd_std_functions~SET_EDIT_APPEND_ROW_ALLOWED( abap_false ).

l_table->if_salv_wd_std_functions~SET_EDIT_DELETE_ROW_ALLOWED( abap_false ).

Hope it helps.

Former Member
0 Kudos

Hi ,

Thanks for the code.

Could you please tell me the class name for interface IF_SALV_WD_STD_FUNCTIONS.

so that i can declare the class name as well in my code to avoid the syntax error.

Thanks

Rakshar..

Former Member
0 Kudos

Hello ,

Thanks a lot.

this is code is working for me.

Thank

Rakshar