Skip to Content
avatar image
Former Member

Why can't I find the standard functions "Delete Row pushbutton" in my ALV?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Nov 02, 2009 at 02:41 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 02, 2009 at 04:46 PM

    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 ).

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • avatar image
    Former Member
    Nov 04, 2009 at 01:04 PM
    • set ALV editable

    lr_config->if_salv_wd_table_settings~set_read_only( value = abap_false ).

    Add comment
    10|10000 characters needed characters exceeded