‎2008 Oct 30 6:57 AM
I create a ALV report with a editable check box coloum, when program run I just make the first 5 rows checked. Actually, if I ticked any check box since row 6, then excute my function button, I just found in the internal table of AVL, the check box coloum at first rows were unticked, only the latest check box was ticked.
I used
call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'
importing
E_GRID = REF1.
call method REF1->CHECK_CHANGED_DATA.
at the begin of command form to refresh internal table. So what other method than CHECK_CHANGED_DATA shall a take to keep all the 6 checkbox ticked (unchange data in noclicked rows and change data in clicked row).
thanks
‎2008 Oct 30 7:43 AM
‎2008 Oct 31 12:21 AM
FORM user_command using P_UCOMM like SY-UCOMM
P_SELFIELD type SLIS_SELFIELD.
DATA: REF1 type ref to CL_GUI_ALV_GRID,
call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'
importing
E_GRID = REF1.
call method REF1->CHECK_CHANGED_DATA.
case P_UCOMM.
*when press execution button
when '&EXC'. "Execution Button
break yshen.
PERFORM SEL_REL_BACK USING P_SELFIELD.
.....
I am just wondering whether there is any other method to replace CHECK_CHANGED_DATA, to get the values for all unchanged rows before tick or untick at some rows.
Thanks
‎2008 Oct 31 3:03 AM
what is there in this form PERFORM SEL_REL_BACK USING P_SELFIELD.
try to use p_selfield-refresh = 'X' at the end.
‎2008 Nov 05 4:04 AM
‎2008 Nov 05 4:15 AM
Hello,
In this class there are some refresh methods try that methods in your programming.
CL_GUI_ALV_GRID