Enabling screen for single click in OOABAP alvs

Hello All,
I have a requirement where I am displaying ALV grid in screen 100. In this grid I have defined double click event in which I call 101 screen (with coordinates i.e. starting at 10 10) which displays another grid. The problem here is that in screen 101 the buttons and screen fields are not responding to single click. I mean that for every action (change the cell value in 101 screen ot selecting a row or clicking on pushbutton in this 101 screen) I have to click twice. But I want all this actions to be performed with single click. If anyone knows the solution to know please let me know.
Note: <b>Helpful answers will be duly rewarded.</b>

Please do not make duplicate postings.
Rob

Similar Messages

  • How to Open new screen for single click on ALV icon.

    Hi All,
    Can any body help me regarding the below ALV requirement.
    I need to create a executable program ZPROGRAM with a table having field to store long text.The ALV report should display records according to the selection screen parameters with a icon in each record when clicked should open a new screen with present data in the field and must be able to save the entered long text.
    Can any body give me the idea after displaying the simple ALV in the output,
    How to open new screen(not the Pop-up’s) after single click on the icon,
    in that I should be able to modify & save the long text in my ZTABLE and
    able to retrieve the same text for single clicked icon record.
    which function modules/Classes/Methods can we use for this requirement.
    And how retrieve the same text for this record.
    Thanks in advance.
    Regards,
    Kalam A.

    *& Report  ZTEST_ALV
    REPORT  ZTEST_ALV.
    TYPE-POOLS slis.
    DATA: gt_fieldcat TYPE TABLE OF slis_fieldcat_alv .
    DATA: gs_layout  TYPE slis_layout_alv.
    DATA: gt_list_top_of_page TYPE slis_t_listheader.
    DATA: gt_sortinfo_alv   TYPE  slis_t_sortinfo_alv.
    DATA: gs_print_alv TYPE slis_print_alv.
    DATA: gs_grid TYPE lvc_s_glay.
    DATA: gt_event TYPE slis_t_event.
    DATA: gs_event TYPE slis_alv_event.
    DATA: BEGIN OF GT_DISPLAY OCCURS 100.
       INCLUDE STRUCTURE MARA.
       DATA: BOX.
    DATA: END OF GT_DISPLAY.
    START-OF-SELECTION.
    SELECT * FROM MARA UP TO 50 ROWS
      INTO CORRESPONDING FIELDS OF TABLE GT_DISPLAY.
    End-of-Selection.
      PERFORM build_alv.
      PERFORM display_screen .
    FORM build_alv .
      DATA: ls_fieldcat LIKE LINE OF gt_fieldcat.
      DATA: ls_top TYPE LINE OF slis_t_listheader.
      DATA: ls_sort TYPE slis_sortinfo_alv.
      CLEAR: ls_fieldcat, gt_fieldcat[], ls_top,gt_list_top_of_page[],
             ls_sort,gs_grid,gs_print_alv,gt_sortinfo_alv[].
    *&-----gs_layout definition.
    gs_layout-zebra = 'X'.
    gs_layout-detail_popup = 'X'.          "ÊÇ·ñµ¯³öÏêϸÐÅÏ¢´°¿Ú
    gs_layout-f2code = '&ETA'.             "ÉèÖô¥·¢µ¯³öÏêϸÐÅÏ¢´°¿ÚµÄ¹¦ÄÜÂë,ÕâÀïÊÇË«»÷
      gs_layout-no_vline = ' '.              "ÉèÖÃÁмä¸ôÏß
      gs_layout-colwidth_optimize = 'X'.     "ÓÅ»¯Áпí
      gs_layout-detail_initial_lines = 'X'.
    gs_layout-coltab_fieldname = 'LINE_COLOR'. "Line_colorΪgt_displayµÄÒ»¸ö×Ö¶Î,¾ßÌåÑÕÉ«ÉèÖüûÏÂÃæ˵Ã÷.
      gs_layout-hotspot_fieldname = 'MATNR'.
    gs_layout-detail_titlebar = 'ÏêϸÄÚÈÝ'. "ÉèÖõ¯³ö´°¿ÚµÄ±êÌâÀ¸
    gs_layout-group_change_edit = 'X'.
    *&-----gs_grid definition.
      gs_grid-top_p_only = 'X'.
    *&-----gs_print_alv definition.
      gs_print_alv-prnt_title = 'X'.
      gs_print_alv-prnt_info = 'X'.
    *&-----gt_sortinfo_alv definition. С¼Æ
      ls_sort-fieldname = 'MTART'.
      ls_sort-tabname =  'GT_DISPLAY'.
      ls_sort-subtot = 'X'.
      ls_sort-spos      = 1.
      ls_sort-up        = 'X'.
    ls_sort-group = 'UL'.
      APPEND ls_sort TO gt_sortinfo_alv.
      ls_sort-fieldname = 'AENAM'.
      ls_sort-tabname =  'GT_DISPLAY'.
      ls_sort-subtot = 'X'.
      ls_sort-spos      = 1.
      ls_sort-up        = 'X'.
    ls_sort-group = 'UL'.
      APPEND ls_sort TO gt_sortinfo_alv.
    *&-----slis_t_listheader definition. title.
      CLEAR  ls_top.
      ls_top-key  = 'µ±Ç°ÈÕÆÚ:'.
      ls_top-typ  = 'S'.  " H = Header, S = Selection, A = Action
      CONCATENATE  sy-datum0(4)   '-' sy-datum4(2) '-' sy-datum+6(2) INTO ls_top-info .
      APPEND ls_top TO gt_list_top_of_page.
      CLEAR  ls_top.
      ls_top-key  = 'title'.
      ls_top-typ  = 'S'.  " H = Header, S = Selection, A = Action
      ls_top-info = space.
      APPEND ls_top TO gt_list_top_of_page.
    *&-----gs_print_alv definition.
      gs_print_alv-prnt_title = 'X'.
      gs_print_alv-prnt_info = 'X'.
    *&-----gt_fieldcat definition.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
       EXPORTING
         i_program_name     = sy-repid
         i_internal_tabname = 'GT_DISPLAY'
          i_structure_name = 'MARA'
          I_CLIENT_NEVER_DISPLAY = 'X'
         i_inclname         = sy-repid
       CHANGING
         ct_fieldcat        = gt_fieldcat[]
       EXCEPTIONS
         inconsistent_interface = 1
         program_error          = 2
         OTHERS                 = 3.
      ls_fieldcat-hotspot = 'X'.
      MODIFY gt_fieldcat FROM ls_fieldcat INDEX 2.
    **-1. definition with macro.
      DEFINE macro.
       col_pos = col_pos + 1.
       ls_fieldcat-tabname   = 'it_typ_data'.
        ls_fieldcat-fieldname = '&1'.
        ls_fieldcat-seltext_l =  &2.
       ls_fieldcat-col_pos   =  col_pos.
        ls_fieldcat-outputlen =  '&3'.
       ls_fieldcat-datatype  =  '&4'.
       ls_fieldcat-do_sum    =  &5.
       ls_fieldcat-edit    =   &6.
       ls_fieldcat-checkbox  =   &7.
       ls_fieldcat-key   =   &9.
       ls_fieldcat-fix_column =  &10.
       ls_fieldcat-no_out =  &11.
        ls_fieldcat-ref_fieldname = &4.    " System F4 Effect.
        ls_fieldcat-ref_tabname   =  &5.   " System F4 Effect.
        ls_fieldcat-hotspot   =   &6.
        append ls_fieldcat to gt_fieldcat.
        clear ls_fieldcat.
      END-OF-DEFINITION.
      macro matnr     'matnr'            18   'MATNR'   'MARA'  'X'.
      macro MTART     'MTART'            18      'MTART' 'MARA'  ''.
      macro  AENAM    'AENAM'            18       'MAENAM'  'MARA'   ''.
    **-2. definition one-by-one.
    CLEAR ls_fieldcat.
    ls_fieldcat-fieldname = 'MATNR'.
    ls_fieldcat-seltext_s = 'ÎïÁÏ'.
    ls_fieldcat-ref_fieldname = 'ROLLNAME'.
    ls_fieldcat-ref_tabname   =  'DD03L'.
    APPEND ls_fieldcat TO gt_fieldcat.
    ENDFORM.                    "build_alv
    FORM display_screen .
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         i_list_type     = 0
       IMPORTING
         et_events       = gt_event
       EXCEPTIONS
         list_type_wrong = 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.
    READ TABLE gt_event INTO gs_event WITH KEY name = 'TOP_OF_PAGE'.
    IF sy-subrc EQ 0.
       gs_event-form = 'TOP_OF_PAGE'.
       MODIFY gt_event FROM gs_event INDEX sy-tabix.
    ENDIF.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
         i_callback_program                = sy-repid
        i_callback_pf_status_set          = 'PF_STATUS_SET '
         i_callback_user_command           = 'USER_COMMAND'
        i_callback_top_of_page            = 'TOP_OF_PAGE'
       I_CALLBACK_HTML_TOP_OF_PAGE       = 'HTML_TOP_OF_PAGE'
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
        I_BACKGROUND_ID                   = 'ALV_BACKGROUND'    "When top-of-page is initial.
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
         is_layout                         = gs_layout
         it_fieldcat                       = gt_fieldcat[]
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
        it_sort                           =  gt_sortinfo_alv[]
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
       I_SAVE                            = 'A'
      IS_VARIANT                        =
      IT_EVENTS                         = gt_event
      IT_EVENT_EXIT                     =
       IS_PRINT                          = gs_print_alv
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = gt_display
    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.
    ENDFORM.                    "display_screen
    FORM user_command          USING ucomm LIKE sy-ucomm
                               selfield TYPE slis_selfield.
    Data ref1 type ref to cl_gui_alv_grid.
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR' "Check Box need fieldcat-checkbox, input and edit.
         IMPORTING
           E_GRID = ref1.
      CASE ucomm.
        WHEN '&IC1'. " SAP standard code for double-clicking
    READ TABLE gt_display INTO gs_display INDEX  slis_selfield-tabindex.
    CHECK sy-subrc = 0.
         CASE  selfield-fieldname  .
           WHEN 'PLNUM'.
             SET PARAMETER ID 'PAF' FIELD gs_display-plnum.
             CALL TRANSACTION 'MD12' AND SKIP FIRST SCREEN.
           WHEN  'POSNR'.
           SUBMIT  rvscd100 USING SELECTION-SCREEN '1000' WITH vbeln = gs_display-vbeln
                                                          WITH posnr = gs_display-posnr
                                                          WITH zinfo = 'X'
                                                          AND RETURN.
         ENDCASE.
       IF selfield-sel_tab_field = 'OUT_ITAB-PI_SL'. " Line detail.
           READ TABLE i_output INTO pisl_itab INDEX selfield-tabindex.
           IF sy-subrc EQ 0.
       ENDIF.
        WHEN 'CHANGE'.
         CALL METHOD ref1->check_changed_data.
         CALL METHOD ref1->refresh_table_display.
    *5´Ë´¦´úÂë×èÖ¹'REUSE_ALV_GRID_DISPLAY´´½¨ÐµÄÆÁÄ»£¬Ôì³ÉÆÁÄ»¶à²ã
         selfield-refresh = 'X'.
        WHEN 'SWITCH'.
         PERFORM switch_edit_mode.
        WHEN OTHERS.
      ENDCASE.
    ENDFORM.                    "user_command
    Add your code in user_command form.
    WHEN you click matnr ucomm eq '&IC1'.
    Message was edited by:
            Chunhai Hu

  • Single click event in alv grid.

    Hi Experts,
    i have done will my code..everything is working perfectly, but having an issue..pls help me...
    in my output screen i have 2 check-boxes,when i select both of them i shuld get a message saying select only one..this is done when am using double click. Is single click possible in alv-grid...
    please help me.
    thanks.
    anusha

    Hi Anusha,
    Did you Try by using get_selected_rows(Method)?
    If the selected rows are 2 display a message such that 'Select only One record'.
    data t_roid type lvc_t_roid.
    CALL METHOD r_grid->get_selected_rows
            IMPORTING
              et_row_no = t_roid.
    READ TABLE t_roid INDEX 1 TRANSPORTING NO FIELDS."to know how many No.Of records selected
    if sy-tfill > 1.
    Message 'Please Select only one record' type 'I'.
    Exit.
    endif.

  • Single click opn the ALV grid

    Hi all ,
    In the code below ,
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                      RS_SELFIELD TYPE SLIS_SELFIELD.
      DATA: L_TA TYPE SY-TCODE VALUE 'SLIS_DUMMY'.
      CASE R_UCOMM.
        WHEN  'WAHL'.                      "menubutton
          READ TABLE GT_OUTTAB INDEX RS_SELFIELD-TABINDEX. "cursorposit.
          IF SY-SUBRC = 0.
            SUBMIT SLIS_DUMMY WITH P_CARRID EQ GT_OUTTAB-CARRID
                              WITH P_CONNID EQ GT_OUTTAB-CONNID.
          ENDIF.
          CLEAR R_UCOMM.
        WHEN '&IC1'.                       "doubleclick
          READ TABLE GT_OUTTAB INTO GT_OUTTAB INDEX RS_SELFIELD-TABINDEX.
          IF SY-SUBRC = 0.
            SUBMIT SLIS_DUMMY WITH P_CARRID EQ GT_OUTTAB-CARRID
                              WITH P_CONNID EQ GT_OUTTAB-CONNID.
          ENDIF.
          CLEAR R_UCOMM.
      ENDCASE.
    ENDFORM.
    this  ( WHEN  'WAHL'.) is for "menubutton click.
    & this ('&IC1'.) is for  "doubleclick.
    Anyone have any idea what should be the return command for single click in grid ?

    Hi Manish,
    here a short examle:
    REPORT ZGRO_TEST MESSAGE-ID ZZ NO STANDARD PAGE HEADING.
    TABLES: VBAK.
    TYPE-POOLS: SLIS.
    INCLUDE <ICON>.
    DATA: PROGNAME   LIKE SY-REPID,
          FIELDCAT   TYPE SLIS_T_FIELDCAT_ALV,
          EVENT_EXIT TYPE SLIS_T_EVENT_EXIT,
          EVENTS     TYPE SLIS_T_EVENT.
    DATA: BEGIN OF ITAB OCCURS 0,
            VBELN  LIKE VBAK-VBELN,
            KUNNR  LIKE VBAK-KUNNR,
            ICON   LIKE ICONS-L4 VALUE ICON_OKAY,
          END   OF ITAB.
    START-OF-SELECTION.
      SELECT * FROM VBAK UP TO 100 ROWS.
        ITAB-VBELN = VBAK-VBELN.
        ITAB-KUNNR = VBAK-KUNNR.
        APPEND ITAB.
      ENDSELECT.
      PERFORM AUSGABE_ALV_GRID.
    END-OF-SELECTION.
    FORM AUSGABE_ALV_GRID.
      PROGNAME = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                I_PROGRAM_NAME         = PROGNAME
                I_INTERNAL_TABNAME     = 'ITAB'
                I_CLIENT_NEVER_DISPLAY = 'X'
                I_INCLNAME             = PROGNAME
           CHANGING
                CT_FIELDCAT            = FIELDCAT.
      PERFORM SPALTENEIGENSCHAFTEN USING FIELDCAT.
      DATA:  WA_EVENT_EXIT TYPE SLIS_EVENT_EXIT.
      MOVE:  '&IC1' TO WA_EVENT_EXIT-UCOMM,
              'X'   TO WA_EVENT_EXIT-BEFORE.
      APPEND WA_EVENT_EXIT TO EVENT_EXIT.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM      = PROGNAME
                I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
                IT_FIELDCAT             = FIELDCAT
                IT_EVENT_EXIT           = EVENT_EXIT
           TABLES
                T_OUTTAB                = ITAB
           EXCEPTIONS
                PROGRAM_ERROR           = 1
                OTHERS                  = 2.
    ENDFORM.
    FORM SPALTENEIGENSCHAFTEN USING    P_FIELDCAT
                                       TYPE SLIS_T_FIELDCAT_ALV.
      DATA: WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
      LOOP AT P_FIELDCAT INTO WA_FIELDCAT.
        CASE WA_FIELDCAT-FIELDNAME.
          WHEN 'ICON'.
            MOVE 'X' TO WA_FIELDCAT-HOTSPOT.
            MOVE 'X' TO WA_FIELDCAT-ICON.
        ENDCASE.
        MODIFY P_FIELDCAT INDEX SY-TABIX FROM WA_FIELDCAT .
      ENDLOOP.
    ENDFORM.
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                            RS_SELFIELD TYPE SLIS_SELFIELD.
      READ TABLE ITAB    INDEX RS_SELFIELD-TABINDEX.
      IF  R_UCOMM EQ '&IC1'.
        SET PARAMETER ID 'AUN'   FIELD itab-VBELN.
        CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
      ENDIF.
    ENDFORM.
    Have a nice weekend,
    Regards, Dieter

  • OK CODE FOR SINGLE CLICK IN DYNPRO

    HEY GUYS,
    CAN YOU PLEASE TELL ME WHATS THE OKCODE FOR SINGLE CLICK.
    IF I MAKE SINGLE CLICK IN TABLE CONTROL COLUMN HEADER ITS NOT GOING TO PAI FLOW LOGIC.
    PLEASE SUGGEST ME ..HOW TO GO WITH PAI USING SINGLE CLICK ACTION WITH TABLE CONTROL COLUMN HEADER.
    IS THERE ANY FUNCTION CODE I HAVE MAKE TO ON READY TO STATUS AT TABLE CONTROL COLUMNS.
    THANKS IN ADVANCE.
    AMBICHAN

    Hi Chan,
    Instead of Single click better u can handle trying Double click...  Then PAI will definitely be triggered..
    Regards,
    Sridhar

  • Can you have a pdf as an icon for single click access on ipad or iphone?

    can you have a pdf as an icon for single click access on ipad or iphone?

    No - I think Safari is the only app that can have separate shortcuts (for different sites) on the homescreens. You can only access PDFs by first going into it's owning app.

  • Java enabled screen for IT0581,IT0584,IT0585 & IT0586 as Payroll services

    Can we have java-web dynpro enabled screen for IT0581,IT0584,IT0585 & IT0586 as a Payroll services for Indian client .
    If not , how can we add the ITS version for the same infotypes in ESS making it in change mode where employee's can update their amount .
    Pls suggest on the same as its Urgent.
    Thanks ....
    Your answers will be rewarded..

    Hi,
    You will have to develop a report which will take (ITS case)
    a) read sy-uname and then the pernr from 105 infotype subtype 0001
    b) Call transaction for pa30 pass the pernr u got from pervious step and the infotype no and skip first screen then you will directly get 585.
    c) and u will also have to give authorization to the employee for the infotype in the change mode.
    d) You will then create a transactional iview for the given report.
    Otherwise for java you can develop an application which will read an update using BAPI. and hr_infotype_operation.
    Regards,
    Divya

  • JDeveloper Extension for SINGLE CLICK deployment of OIM customizations

    I am not sure most of OIM Developers, System Integrators and Architects aware of this Oracle Asset, hence sharing information.
    In most of the questions posted on forum related to event handler usages Plugin Registration utility and weblogic scripts to import / export meta data files into MDS. There is easy way to deploy OIM 11g even handler plugins , Scheduled Tasks, Request Datasets and Notification Events using OIM Customization Installer JDeveloper Extension.
    Oracle has published Oracle Identity Manager 11g Sample Assets some time back. You can use OIM Customization Installer JDeveloper Extension for SINGLE CLICK deployment of OIM customizations like Event Handlers, Plugins, Scheduled Tasks, Request Datasets and Notification Events.
    You can access and download Oracle Asset using below link,
    http://www.oracle.com/technetwork/middleware/id-mgmt/overview/oim-11g-assets-504842.html
    Thanks,
    Pradeep.

    Pradeep,
    Thanks for sharing this. I have gone through this asset sometime back. This is quite helpful w.r.t deployment but does not have any other added advantage. For example, it does not create the xml's automatically or does not validate them etc. If I remember it right, this plugin was supported till 11.1.1.3 only.
    Appreciate you sharing this as it would surely help folks here.
    -Bikash

  • ESS java enabled screen for IT0581,IT0584,IT0585 & IT0586

    Can we have java enabled screen for IT0581,IT0584,IT0585 & IT0586 as a Payroll services for Indian client .
    If not , how can we add the ITS version for the same infotypes in  ESS making it in  change mode where  employee's can update their  amount .
    Pls suggest on the same as its Urgent.
    Thanks ...

    thx

  • Handle single click event in ALV OOPS

    Hi,
    I have to display 2 ALV grid...one above the other.
    Top ALV will contain Header info and bottom ALV witll display line item.
    I am use ALV OOPS.
    Now when user will click on the top ALV ...bottom ALV should show corresponding data.
    I don't have to use HOTSPOT or Double click event.
    How can I handle single click event.
    Please guide me..thanks in advance
    Regards,
    Prasoon

    hi,
                    for this in ALV OOPS take <b>2 custom containers( cl_gui_custom_container)</b>in the same screen and on the 1st container display the header data<b>(use set_tale_for_first_display method of class cl_gui_alv_grid)</b>.
                   On the 2nd screen item data for  this  use<b> EVENT</b> handling(you want <b>single click</b>). use<b> hotspot_click</b> or <b>button_click </b>events. 
    for this you have to register the events.   the code for that.
    <b>CLASS lcl_event_handler DEFINITION .</b>
    PUBLIC SECTION .
    METHODS:
    *--Hotspot click control
    handle_hotspot_click
    FOR EVENT hotspot_click OF cl_gui_alv_grid
    IMPORTING e_row_id e_column_id es_row_no ,
    *--To control button clicks
    handle_button_click
    FOR EVENT button_click OF cl_gui_alv_grid
    IMPORTING e_oject e_ucomm .
    PRIVATE SECTION.
    ENDCLASS.
    <b>CLASS lcl_event_handlerIMPLEMENTATION .</b>
    *--Handle Hotspot Click
    METHOD handle_hotspot_click .
    PERFORM handle_hotspot_click USING e_row_id e_column_id es_row_no .
    ENDMETHOD .
    METHOD handle_button_click .
    PERFORM handle_button_click USING e_object e_ucomm .
    ENDMETHOD .
    ENDCLASS .
    DATA gr_event_handler TYPE REF TO lcl_event_handler .
    <b>*--Creating an instance for the event handler</b>
    CREATE OBJECT gr_event_handler.
    <b>*--Registering handler methods to handle ALV Grid events</b>
    SET HANDLER gr_event_handler->handle_hotspot_click FOR gr_alvgrid .
    SET HANDLER gr_event_handler->handle_button_click FOR gr_alvgrid .
    do n't forget to use<b> refresh_table_display
    </b> other wise only the record which you first you clicked will display in the 2nd container.
    <b>Reward points for useful Answers</b>

  • How to trigger single click event in ALV

    Hi Experts,
          I am trying to raise an event in a module pool program whereby an event will be triggered on  a single click of a particular row in the ALV.
       My requirement is that in the table display , which is being handled OO method, once the user clicks on a particular row - the details of the row should be displayed in another part of the screen.
       I have used hotspots and done this - but I do not want all my entries underlined.

    Hi Atish,
    Is there any other way to trigger the single click event in the ALV grid display for a particular row ? I have come across an event CLICK_ROW_COL, which I think may solve the problem, however this is a protected event and whenever I try to access it , I get the error that a protected event cannot be accessed.
    Edited by: Aditya  Niyogi on May 14, 2008 6:33 AM

  • Remediation for single-clicking a double-click action

    I'm using the double mouse click feature of a Click box in a
    software simulation lesson we've built in captivate. Unfortunately
    when the user single-clicks in the Click box, no remediation shows
    to tell the user that they must double-click in the box to complete
    the step.
    Anyone have any ideas on how to provide the user with
    remediation on single clicking a double click Click box?
    Thanks,
    Scott Witlen
    McKessson Provider Technologies

    Um... there are no macros. Captivate is a closed system with
    no documented API outside of some variables you can read and in
    some cases, set to make Captivate do some simple navigation-related
    things. Search the Captivate help file for 'variables' and you'll
    find a list.
    Outside of that, the only official ways to "enhance"
    Captivate are either to:
    - Create your own standalone functionality in Flash and
    insert it in Captivate as a self-contained animation. This can be
    problematic due to the closed nature of the Captivate runtime, as
    well as the layering imposed by the use of skins and borders.
    - Make Javascript calls to the browser and put the
    functionality there. Since there is limited interactivity between
    Javascript and Flash, this is much more limited in scope than
    inserting your own self-contained animations
    Some folks have also opened up a published SWF with a
    decompiler program and viewed the Adobe source code in an effort to
    make their inserted animations do cooler things, but that is very
    much an unsupported activity.

  • Multiple MouseEvents for single click

    Hello,
    I have created a reusable component based on a JPanel.
    Our company uses my component in several Swing applications, all of which use a JFrame.
    My component has a mouse listener for mousePressed events.
    Recently a new app, also based on a JFrame, has started to use my component. In this new Swing app, my component's mousePressed listener gets called THREE TIMES for each mouse pressed.
    In all other apps, if the user presses the mouse once, I get only ONE call to my mousePressed listener.
    Looking at the stack traces into my mousePressed() method I notice this:
    In the apps where mousePressed() is only called once, the stack looks like this:
         at java.awt.Component.processMouseEvent(Component.java:5131)
         at java.awt.Component.processEvent(Component.java:4931)
         at java.awt.Container.processEvent(Container.java:1566)
         at java.awt.Component.dispatchEventImpl(Component.java:3639)
         at java.awt.Container.dispatchEventImpl(Container.java:1623)
         at java.awt.Component.dispatchEvent(Component.java:3480)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3162)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
         at java.awt.Container.dispatchEventImpl(Container.java:1609)
    where as when mousePressed() gets called multiple times, the stack trace shows this:
         at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:218)
         at java.awt.Component.processMouseEvent(Component.java:5131)
         at java.awt.Component.processEvent(Component.java:4931)
         at java.awt.Container.processEvent(Container.java:1566)
         at java.awt.Component.dispatchEventImpl(Component.java:3639)
         at java.awt.Container.dispatchEventImpl(Container.java:1623)
         at java.awt.Component.dispatchEvent(Component.java:3480)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3162)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
         at java.awt.Container.dispatchEventImpl(Container.java:1609)
    Does anybody have any idea of why AWTEventMulticaster would be on the stack for one app and not for another?
    And how can I prevent getting called multiple times for a single mouse click?
    Thank you,
    Ted Hill

    You don't understand. My JPanel implements the MouseListener interface and its mousePressed(MouseEvent ) method gets called THREE TIMES on a single mouse click. Normally it should only be called ONCE.
    It seems that the app that is using the JPanel extension has somehow registered it as interested in mouse events MULTIPLE TIMES.
    I've never seen this before in Swing and was wondering if anyone else has.
    Thanks,
    Ted

  • Is it possible to make a tab group into an app tab or bookmark button for single click switching?

    Firefox 4 - I like the idea of tab groups but don't like the way you have to switch between them.
    Is there a way to create an app tab or button that I can click on to switch between my tab groups?
    Thanks,
    Grant

    This can be done with html5 and jQuery to create ur audio player then embedded with the web content overlay
    http://www.jquery4u.com/media/10-jquery-html5-audio-players/
    http://www.codebasehero.com/2011/07/html5-music-player-updated/

  • Handling  single click in alv tree

    Hello Friends,
    Is there an event triggered,for single click on an alv tree.
    regards
    kaushik

    hi ,
    it_fieldcat-hotspot = 'X'.
    regards,
    venkat.
    Edited by: venkat  appikonda on Mar 13, 2008 8:11 PM
    Edited by: venkat  appikonda on Mar 13, 2008 8:12 PM

Maybe you are looking for

  • Flash Buttons Not Working in DREAMWEAVER !!!!!!!!!!! :(

    Ive made an animation in flash of curtians opening to a stage of dancers, who are all buttons. When i put this animation into dreamweaver and test the web page the buttons do NOT work PLEASE HELP ME !! lmack

  • How to store data for an account individually

    hi there, may i know how do u store data for an account individually. let's say i have an application for all users. but i do have a log in module since i have a module where users can enter thier own information into the system like appoinments. sin

  • Apple TV not seing my DirecTV Genie RC71 Remote

    Just received a Genie RC71 today with an RC71 remote from DirecTV.  Everything is working great, except I can't seem to program my Apple Remote to the RC71.  I am supposed to be able to "add a remote" to my apple TV, and press the "up" button on the

  • Binary file problem (Read a specific Stream)

    Hi Guys , I have a problem , I want to read a binary files but not the whole binary file. I only want to read one stream. Forexample , I have a binar files which has 5 streams. If I only want to read one of the stream what should i do ? How do i get

  • Can't Find Version Number on WRT 54GX2 -there's no ver. no. on it

    I can't find a "version number" anywhere on the unit. In order to update the firmware, the website calls for specifying whether it's version 1 or version 2. I'm presuming that because it doesn't say what version it is, it must be version 1, but I don