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

Editable alv

Former Member
0 Likes
433

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

3 REPLIES 3
Read only

Former Member
0 Likes
411

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

Read only

anversha_s
Active Contributor
0 Likes
411
Read only

Former Member
0 Likes
411

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