Application Development and Automation 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: 
Read only

List processing double click event

Former Member
0 Likes
1,257

How to catch double click on list processing line?

1 ACCEPTED SOLUTION
Read only

former_member209217
Active Contributor
0 Likes
820

Hi,

Use at line selection event used for handling double click events.

chk this link

Regards,

Lakshman.

6 REPLIES 6
Read only

Former Member
0 Likes
820

Hi,

can you explain better your problem?

Regards,

Leo.

Read only

0 Likes
820

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

Read only

former_member209217
Active Contributor
0 Likes
821

Hi,

Use at line selection event used for handling double click events.

chk this link

Regards,

Lakshman.

Read only

Former Member
0 Likes
820

I want to make any things, when user makes double click on list processing

Read only

Former Member
0 Likes
820
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_COMMAND

For 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

Read only

Former Member
0 Likes
820

Use AT LINE SELECTION. event you will get lot of details in SDN regarding that.

Thanks