Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Capturing data from ALV grid

Dear experts.

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.




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.

case r_ucomm.

when 'SAVE'.

loop at itab where cbox = 'X'.

  • Your code to do whatever.




0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question