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

ALV Input enabled

Former Member
0 Likes
504

Hi all,

i have a report which displays data in ALV grid and some columns are input enabled where user supplies additional data once after the list displays.

After user input, i have to read those selected lines from the alv grid and i have to do the subsequent process.

here i am able to read the selected lines but i am not getting the user input values. i am getting empty values..

how can i get the user input values form the ALV Grid...?

Thanks,

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
480

Are u using fm or OO for ALV?

a®

4 REPLIES 4
Read only

former_member194669
Active Contributor
0 Likes
481

Are u using fm or OO for ALV?

a®

Read only

0 Likes
480

i am using ALV Function modules

how can i read values updated by user on the screen for the input enabled field.

Read only

0 Likes
480

    call function 'REUSE_ALV_GRID_DISPLAY'
      exporting
        it_fieldcat                 = i_fieldcat[]
        is_layout                   = pt_grplayout2
        i_callback_program          = 'YATT0007'
        i_callback_html_top_of_page = p_header
        i_callback_user_command     = f_user_command1
        it_events                   = i_events[]
      tables
        t_outtab                    = i_yscchdr.
  else.
    message i012(yscc).
  endif.
endform.                                 " F_alv_edit_oruser
*
*&---------------------------------------------------------------------*
* Form  f_user_command1                                                *
*&---------------------------------------------------------------------*
* This form will handle the user command from fm REUSE                 *
*----------------------------------------------------------------------*
form f_user_command1 using p_ucomm type sy-ucomm
                     rs_selfield type  slis_selfield.

  data p_ref1 type ref to cl_gui_alv_grid.
  call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    importing
      e_grid = p_ref1.
  call method p_ref1->check_changed_data.
  case p_ucomm.
    when '&DATA_SAVE'.
      "HERE YOUR OUTPUT TABLE HAVE UPDATED VALUES


  endcase.
  rs_selfield-refresh = c_x.             " Grid refresh

endform.                                 " F_user_command1

a®

Read only

0 Likes
480

Excellent.

i gave full marks to u.....