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: 

Please explain how the method CHECK_CHANGED_DATA works?

Former Member
0 Kudos
3,165

Hi experts,

Can any of you experts please explain how the method <b>CHECK_CHANGED_DATA</b>

of <b>CL_GUI_ALV_GRID</b> class works ?

Thanks in advance

regards,

Ashwin

5 REPLIES 5

Former Member
0 Kudos
289

HI,

THIS METHOD CHECKS FOR ANY DATA CHANGED IN U R ALV GRID DISPLAY .

SUPPPOSE U HAVE CHANGED ANY RECORD IN ANY ROW OR COLUMN IT WILL TRACK ALL THOSE CHANGES AND RETURN <b>E_VALID</b>.

IF IT IS 'X' THAT MEANS DATA HAS BEEN CHANGED AT THEN USE THIS IN U R FURTHER CODE

DATA: v_edited TYPE CHAR1.

CALL METHOD alv->check_changed_data

IMPORTING

e_valid = v_edited.

CHEERS

IF ANY DOUBTS ALWAYS THERE

0 Kudos
289

Hi,

Thanks for your immediate reply...I just wanted to know that the variable you declared 'v_edited' will get stored with 'x' if any change is made in the grid.

There is also a changing variable called refresh. what is its use ?

0 Kudos
289

I guess REFRESH will refresh the ALV with the changed values if u set that to X ,tr that..

Former Member
0 Kudos
289

DATA: l_valid TYPE c.

Data grid1 type ref to cl_gui_alv_grid.

CALL METHOD grid1->check_changed_data IMPORTING e_valid = l_valid.

This method checks if any data is changed on the grid if there any editable fields .

And updates the changed values

Message was edited by:

Chandrasekhar Jagarlamudi

Former Member
0 Kudos
289

hi,

refresh will just refresh u r new edited data in alv grid .