‎2006 Nov 29 11:06 AM
Hi,
Iam using an editable alv to display the output report. I have 3 editable fields (check box field ) in it. by default it will set as 'X'. The user can edit the check boxes .
I have used a push button when it is clicked i want to load the new screen values in the internal table.I am using the following code to refresh my values.
FORM user_command USING r_ucomm TYPE sy-ucomm
rs_selfield TYPE slis_selfield
when 'but'
rs_selfield-refresh = 'X'.
endform.
The refresh is not taking place.
Is there any other option to do this.
Regards,
Priya
‎2006 Nov 29 11:08 AM
FORM user_command USING r_ucomm TYPE sy-ucomm
rs_selfield TYPE slis_selfield
CASE R_UCOMM.
when 'BUT'.
rs_selfield-refresh = 'X'.
endform.
regards,
Ravi
‎2006 Nov 29 11:10 AM
‎2006 Nov 29 11:10 AM
Hi Priya,
If you want to retrieve the ALV screen, including the changed values, simply use :
*---------------------------------------------------------------------*
* ITAB_user_command *
*---------------------------------------------------------------------*
FORM itab_user_command USING ucomm TYPE sy-ucomm
s_selfield TYPE slis_selfield.
DATA ref1 TYPE REF TO cl_gui_alv_grid.
s_selfield-refresh = 'X'.
CASE ucomm.
When 'BUT'.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref1.
CALL METHOD ref1->check_changed_data.Hope this helps,
Erwan