2007 Mar 08 5:42 AM
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
2007 Mar 08 5:47 AM
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
2007 Mar 08 5:50 AM
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 ?
2007 Mar 08 5:53 AM
I guess REFRESH will refresh the ALV with the changed values if u set that to X ,tr that..
2007 Mar 08 5:50 AM
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
2007 Mar 08 6:21 AM
hi,
refresh will just refresh u r new edited data in alv grid .