Application Development and Automation 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: 
Read only

Getting changed data back from editable ALV...

Former Member
0 Likes
5,058

Hello Gurus,

I am working on ALV using standard ALV function module REUSE_ALV_GRID_DISPLAY. Now, To make the fields editale, I am using flag EDIT = 'X' in field catalog. This working fine.

Now, when the data is changed in ALV grid and user clicks on SAVE button that I have programmed in i_callback_usercommand, how can I get the changed data back from editable ALV so that I can change data in custom table ?

Please help.

Regards,

Rajesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
912

Yes..The internal table that you passed to the function module REUSE_ALV_GRID_DISPLAY..will be updated automatically...after calling the check changed data method.

Thanks

Naren

4 REPLIES 4
Read only

Former Member
0 Likes
912

Hi,

Please search SCN as this has been answered many times.

One of the threads..

Thanks

Naren

Read only

0 Likes
912

I see that the method CHECK_CHANGED_DATA is used. I am also doing it as follows. But how do I get the changed data back in table. There are no table parameters in

CALL METHOD REF_GRID->CHECK_CHANGED_DATA .

DATA: REF_GRID TYPE REF TO CL_GUI_ALV_GRID.

IF REF_GRID IS INITIAL.

CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'

IMPORTING

E_GRID = REF_GRID.

ENDIF.

IF NOT REF_GRID IS INITIAL.

CALL METHOD REF_GRID->CHECK_CHANGED_DATA .

ENDIF.

Please guide

Read only

0 Likes
912

There is no need for table paramters , after the method check_changed_data you tables T_OUTTAB will have data with changed values


    call function 'REUSE_ALV_GRID_DISPLAY'
      exporting
        ....
        .....
      tables
        t_outtab                    = i_yhdr.

a®

Read only

Former Member
0 Likes
913

Yes..The internal table that you passed to the function module REUSE_ALV_GRID_DISPLAY..will be updated automatically...after calling the check changed data method.

Thanks

Naren