‎2009 Apr 07 2:33 PM
‎2009 Apr 07 2:39 PM
‎2009 Apr 07 2:38 PM
‎2009 Apr 07 2:46 PM
hi,
check this link to use double click whch is PICK event ..
http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba3ae35c111d1829f0000e829fbfe/content.htm
~linganna
‎2009 Apr 07 2:39 PM
‎2009 Apr 07 2:39 PM
I want to make any things, when user makes double click on list processing
‎2009 Apr 07 2:40 PM
For ALV:
fs_event-name = 'USER_COMMAND'.
fs_event-form = 'USER_COMMAND'.
APPEND fs_event TO t_event.
CLEAR fs_event.
fs_event-name = 'PF_STATUS_SET'.
fs_event-form = 'USER_COMMAND1'.
APPEND fs_event TO t_event.
CLEAR fs_event.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE =
i_callback_program = sy-cprog
* I_CALLBACK_PF_STATUS_SET = ' '
* i_callback_user_command = 'USER_COMMAND'
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
* I_GRID_TITLE =
* I_GRID_SETTINGS =
is_layout_lvc = fs_layo
it_fieldcat_lvc = t_fcat
* IT_EXCLUDING =
* IT_SPECIAL_GROUPS_LVC =
* IT_SORT_LVC =
* IT_FILTER_LVC =
* IT_HYPERLINK =
* IS_SEL_HIDE =
* I_DEFAULT = 'X'
* I_SAVE = ' '
* IS_VARIANT =
it_events = t_event
* IT_EVENT_EXIT =
* IS_PRINT_LVC =
* IS_REPREP_ID_LVC =
* I_SCREEN_START_COLUMN = 0
* I_SCREEN_START_LINE = 0
* I_SCREEN_END_COLUMN = 0
* I_SCREEN_END_LINE = 0
* IT_EXCEPT_QINFO_LVC =
* I_HTML_HEIGHT_TOP =
* I_HTML_HEIGHT_END =
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = t_obs_unq_fms
EXCEPTIONS
program_error = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*Dynamic Subroutine.....................
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&IC1'. " Click
rs_selfield-tabindex. " Row number where double clicked
ENDCASE.
ENDFORM. "USER_COMMANDFor SImple List :
Use AT LINE-SELECTION event.
Sy-LILLI will give you selected line no
SY-LISEL value of selected line.If you are using custom pf-status mention PICK in PF-STATUS.
Regards,
Gurpreet
‎2009 Apr 07 2:42 PM
Use AT LINE SELECTION. event you will get lot of details in SDN regarding that.
Thanks