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

Please explain how the method CHECK_CHANGED_DATA works?

Former Member
0 Likes
4,144

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
Read only

Former Member
0 Likes
1,268

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

Read only

0 Likes
1,268

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 ?

Read only

0 Likes
1,268

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

Read only

Former Member
0 Likes
1,268

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

Read only

Former Member
0 Likes
1,268

hi,

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