cancel
Showing results for 
Search instead for 
Did you mean: 

salv_wd_table

Former Member
0 Kudos

I am trying to add an append row with the following code.

lv_value->IF_SALV_WD_STD_FUNCTIONS~SET_EDIT_APPEND_ROW_ALLOWED( abap_true ).

The program runs, but the insert button does not appear in the toolbar.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

Add this Code so that your toolbar is added to ALV :

data: lr_table_settings type ref to if_salv_wd_table_settings.

lr_table_settings ?= lv_value.

lr_table_settings->set_read_only( abap_false ).

With above code, toolbar with buttons - append row , insert row, delete row, check will be added.

Now in your case , you want only Append rows . So Activate Append row and deactivate other buttons using :

lv_value->if_salv_wd_std_functions~set_edit_append_row_allowed( abap_true ).

lv_value->if_salv_wd_std_functions~set_edit_insert_row_allowed( abap_false ).

lv_value->if_salv_wd_std_functions~set_edit_delete_row_allowed( abap_false ).

lv_value->if_salv_wd_std_functions~SET_EDIT_CHECK_AVAILABLE( abap_false ).

This will solve your issue.

Answers (1)

Answers (1)

Former Member
0 Kudos