on 11-02-2009 1:12 PM
How could I display "Insert Row pushbutton" "Delete Row pushbutton" such standard functions? Till now I have only setting, filter, export, etc.
Many thanks!
Edited by: Meer Wu on Nov 2, 2009 3:30 PM
Edited by: Meer Wu on Nov 2, 2009 3:32 PM
set ALV editable
lr_config->if_salv_wd_table_settings~set_read_only( value = abap_false ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
Add this code for function buttons :
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_true ).
lv_value->if_salv_wd_std_functions~set_edit_delete_row_allowed( abap_true ).
lv_value->if_salv_wd_std_functions~SET_EDIT_CHECK_AVAILABLE( abap_false ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The declaration of the lv_value should be as follows:
data : lv_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table ,
lv_value TYPE REF TO cl_salv_wd_config_table.
Get the reference of the interface controller of usage
lv_ref_interfacecontroller = wd_this->wd_cpifc_< ALV usage name >( ).
Retrieve the reference of the model from interdace controller
lv_value = lv_ref_interfacecontroller->get_model( ).
Then you need to call the methods of the interface if_salv_wd_std_functions as mentioned by Saurav.
Regards
Prasenjit
solution is [SAP Help|http://help.sap.com/saphelp_smehp1/helpdata/de/7f/849e6d796d4fe49221609ffcbc357d/frameset.htm]
Edited by: Meer Wu on Nov 2, 2009 3:41 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.