on 10-21-2009 11:25 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
have u referred the SAP online help :
http://help.sap.com/saphelp_nw2004s/helpdata/en/5f/ec57c72a1349c8bfdda56d976e9399/content.htm
refer these links for configuiring ALV :
It shud help u .
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.