Application Development 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: 

want a code to get selected rows alv grid without objects

Former Member
0 Kudos

Is there any one can give a solution to get the selected row details from an alv grid ( without objects ), i shall be thankful

2 REPLIES 2

naimesh_patel
Active Contributor
0 Kudos

Hello,

If you had used the checkbox, then it gets automatically updated.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

  • I_BYPASSING_BUFFER =

  • I_BUFFER_ACTIVE =

  • I_INTERFACE_CHECK = ' '

I_CALLBACK_PROGRAM = W_PRGNM

I_CALLBACK_PF_STATUS_SET = W_CON_CALLBACK_PF

I_CALLBACK_USER_COMMAND = 'USER_COMAAND'

....

&----


*& Form USER_COMMAND

&----


FORM USER_COMMAND USING RS_UCOMM LIKE SY-UCOMM

RS_SELFIELD TYPE SLIS_SELFIELD.

CASE RS_UCOMM.

WHEN '&IC1'.

  • access rs_selfield you get the line number for double click

ENDCASE.

ENDFORM. " USER_COMMAND

regards,

naimesh

0 Kudos

Hi

Thanks for reply and it is ok, but if user selects more than one row. then i want those details of selected rows for my further process at user_command.