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

Problem_: ALV Check Box refresh on screen

Former Member
0 Likes
1,299

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

5 REPLIES 5
Read only

Former Member
0 Likes
807

show the complete user_command coding..?

Read only

Former Member
0 Likes
807

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

Read only

0 Likes
807

what is there in this form PERFORM SEL_REL_BACK USING P_SELFIELD.

try to use p_selfield-refresh = 'X' at the end.

Read only

Former Member
0 Likes
807

chbox - not possible to refresh

Read only

Former Member
0 Likes
807

Hello,

In this class there are some refresh methods try that methods in your programming.

CL_GUI_ALV_GRID