Skip to Content
avatar image
Former Member

Problem with editable ALV

Hi All,

I am using the method set_table_for_first_display for ALV Editable. After entering the values on the alv screen the values are not getting reflected unless press enter or should come out of my last cell to reflect the changes.

I have used the mc_evt_enter and mc_evt_modified.

I need to trigger the change data event with out coming out of my last cell and pressing the enter bubtton.

This should happen atleast while pressing the save button or as soon as we modify the value in the cell.

Please suggest me the code to trigger this.

Thanks & Regards,

Raghuveer Kumar K.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Apr 08, 2010 at 01:31 PM

    in your data_changed event, put a call to method REFRESH_TABLE_DISPLAY with parameter I_SOFT_REFRESH = 'X'

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 12, 2010 at 09:50 AM

    hi kumar ,

    u can use the class cl_gui_cfw and method "flush" it would refresh .

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 14, 2010 at 08:21 AM

    Hi,

    i HAVE ENCOUNTERED THE SAME PROBLEM BUT I DID WITH THE FOLLOWING SOLUTION.

    Add a Save button on the container and add the save functionality.

    Just add the following class methods

    CLASS-METHODS:

    handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid

    IMPORTING

    e_object ,

    handle_user_command FOR EVENT user_command OF cl_gui_alv_grid

    IMPORTING e_ucomm.

    then in implementation of the above methods declared class.

    METHOD handle_toolbar.

    DATA:

    lw_toolbar TYPE stb_button.

    CLEAR lw_toolbar.

    lw_toolbar-function = 'SAVE'.

    lw_toolbar-icon = 'ICON_DETAIL'.

    lw_toolbar-butn_type = '0'.

    lw_toolbar-text = 'SAVE'.

    APPEND lw_toolbar TO e_object->mt_toolbar.

    when user clicks save modify the internal table that contians the data.

    Regards and Best wishes.

    Add comment
    10|10000 characters needed characters exceeded