Capturing data from ALV grid
Can anyone help me to capture data from ALV grid to pass to a BAPI FM.
My ALV grid has the check box as first column and I want to capture only the rows in the grid with these checkboxes checked. I would prefer to do it without OO.
Albert Israel replied
1. Make your ALV grid editable.
2. In REUSE_ALV_GRID_DISPLAY_LVC or REUSE_ALV_GRID_DISPLAY FM call, pass the user_command subroutine.
i_callback_user_command = 'USER_COMMAND'
3. implement the user_command perform sample
form user_command using r_ucomm type sy-ucomm
rs_selfield type slis_selfield.
loop at itab where cbox = 'X'.
Your code to do whatever.