Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with editable ALV

Former Member
0 Kudos

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.

3 REPLIES 3

franois_henrotte
Active Contributor
0 Kudos

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

Former Member
0 Kudos

hi kumar ,

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

Former Member
0 Kudos

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.