Skip to Content
author's profile photo Former Member
Former Member

want a code to get selected rows alv grid without objects

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

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Aug 01, 2006 at 11:27 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.