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: 

How to get change data from ' REUSE_ALV_GRID_DISPLAY' ?

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

0 Kudos

Hi,

I am not using standard ALV GUI . The problem is in case of multiple data saving , only one data is saved.

Former Member
0 Kudos

Hi Manoj,

The edited data can be seen in the table using which you displayed the ALV.

Thanks,

Manish