04-08-2011 9:55 AM
Hai Expert,
I have created an alv using fm , 'REUSE_ALV_GRID_DISPLAY' . I have made one column as editable for the user to enter the data. The user can enter multiple data into that column at a time. I have used the fm, 'GET_GLOBALS_FROM_SLVC_FULLSCR'.
But on saving only the last data is being saved.Other datas are not being saved.
The code which i used is given below.
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield. "#EC CALLED
*checkbox process
DATA: l_ref_alv TYPE REF TO cl_gui_alv_grid,
l_valid TYPE char01,
l_rv1 TYPE STRING. "#EC NEEDED
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = l_ref_alv.
CALL METHOD l_ref_alv->check_changed_data
IMPORTING
e_valid = l_valid.
rs_selfield-refresh = gc_true.
CLEAR : l_control_parameters,l_output_options.
CASE r_ucomm.
WHEN 'SAVE'.
loop at ty_itfinal INTO wa_itfinal.
IF rs_selfield-fieldname = 'SAMPLE_REMARKS'.
********************************
*****************************
******************************
*****************************
WHEN OTHERS.
ENDCASE.
ENDFORM. "USER_COMMAND
04-08-2011 11:15 AM
Hi
You are nearly there. Just check the value of sy-ucomm. If its standard ALV GUI status, then sy-ucomm should be "&DATA_SAVE". However just cross check once !!!
Regards,
Rupesh Mhatre
04-08-2011 11:15 AM
Hi
You are nearly there. Just check the value of sy-ucomm. If its standard ALV GUI status, then sy-ucomm should be "&DATA_SAVE". However just cross check once !!!
Regards,
Rupesh Mhatre
04-08-2011 11:29 AM
Hi,
I am not using standard ALV GUI . The problem is in case of multiple data saving , only one data is saved.
04-08-2011 12:12 PM
Hi Manoj,
The edited data can be seen in the table using which you displayed the ALV.
Thanks,
Manish