Hello, I am trying to add some rows to my ALV report, so I am using this code:
method ONACTIONADD_ENTRIES .
DATA: lr_comp_alv TYPE REF TO if_wd_component_usage,
lr_comp_if_alv TYPE REF TO iwci_salv_wd_table,
lr_config TYPE REF TO cl_salv_wd_config_table.
lr_comp_alv = wd_this->wd_cpuse_alv( ).
IF lr_comp_alv->has_active_component( ) IS INITIAL.
lr_comp_alv->create_component( ).
ENDIF.
lr_comp_if_alv = wd_this->wd_cpifc_alv( ).
*... Configure ALV
lr_config = lr_comp_if_alv->get_model( ).
lr_config->if_salv_wd_table_settings~set_edit_mode(
IF_SALV_WD_C_TABLE_SETTINGS=>edit_mode_mass
).
endmethod.
This method executes when the user press a Button, but once it is called the new rows doesn't appear.
However, if I press the standard ALV buttons "Append Row" or "Insert Row" the new rows from the mode_mass appear and also the new inserted/appended row.
I don't know what I am missing.
Thank you for your time and help