Strange navigation in ALV hot-spot.

Hi All,
I have a strange problem, which I hope to get som advice about.
Anyway I have created an ALV-report with hot-spot.
The hot-spot executes the line below and of course it "jumps" to VA03.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
The strange thing happens when I press 'F3' and returns to the ALV.
The first time I do this, - it works fine, but when I 're-click' on the hot-spot Im again directed to transaction VA03.
Now have to press 'F3' twice to get back to the ALV.
Same thing happens when I 're-re-click' the hot-spot. But now I have to press 'F3' three times.
Does anyone have an Idea how to solve this?
I use the event to handle the hot-spot and I have attached the PBO snippet below to ease your understanding of my program.
Please feel free to ask for more information
Thanks in advance
Lars Bernstorff Hansen
CLASS cl_event_receiver DEFINITION.
  PUBLIC SECTION.
    DATA: t_utab_unsend TYPE zsd_tt_utab_unsend_mail
        , t_utab_send   TYPE zsd_tt_utab_send_mail.
    METHODS: handle_hotspot_click
      FOR EVENT hotspot_click OF cl_gui_alv_grid
        IMPORTING
          e_row_id
          e_column_id.
MODULE status_0100 OUTPUT.
  DATA: et_index_columns  TYPE lvc_t_col
      , i_structure_name  TYPE dd02l-tabname
      , is_layout         TYPE lvc_s_layo
      , it_fieldcatalog       TYPE lvc_t_fcat
      , i_gridtitle       TYPE lvc_title
      , linetype          TYPE string
      , itabref           TYPE REF TO data
      , ls_fcat           TYPE lvc_s_fcat.
  FIELD-SYMBOLS: <psaareatab>  TYPE STANDARD TABLE
               , <psaareatab2> TYPE STANDARD TABLE.
  IF p_r1 = lcl_initialization=>c_x.
    linetype         = 'ZSD_UTAB_UNSEND_MAIL'.
    i_gridtitle      = 'Ukomplette ordrer - ej sendte'(200).
    i_structure_name = 'ZSD_UTAB_UNSEND_MAIL'.
  ELSE.
    linetype         = 'ZSD_UTAB_SEND_MAIL'.
    i_structure_name = 'ZSD_UTAB_SEND_MAIL'.
    i_gridtitle      = 'Komplette ordrer - sendte'(201).
  ENDIF.
  CREATE DATA itabref TYPE STANDARD TABLE OF (linetype).
  ASSIGN itabref->* TO <psaareatab>.
  IF p_r1 = gc_x.
    ASSIGN gt_utab_unsend TO <psaareatab>.
  ELSE.
    ASSIGN gt_utab_send TO <psaareatab>.
  ENDIF.
  SET TITLEBAR  'MAIN100'.
  SET PF-STATUS 'MAIN100'.
  IF go_custom_container IS INITIAL.
    CREATE OBJECT go_custom_container
      EXPORTING
        container_name = go_container.
    CREATE OBJECT go_grid
      EXPORTING
        i_appl_events = lcl_initialization=>c_x
        i_parent      = go_custom_container.
  ENDIF.
  lcl_initialization=>gxt_utab_unsend[] = gt_utab_unsend[].
  lcl_initialization=>gxt_utab_send[]   = gt_utab_send[].
  lcl_initialization=>bukrs             = p_bukrs.
  lcl_initialization=>r1                = p_r1.
  " Create handler.
  CREATE OBJECT event_receiver.
  " Register handler for events.
  SET HANDLER event_receiver->handle_hotspot_click FOR go_grid.
  CALL METHOD r_present_result->set_layout( CHANGING is_layout = is_layout ).
  " Create field catalog.
  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
      i_structure_name = i_structure_name
    CHANGING
      ct_fieldcat      = it_fieldcatalog.
  " Hotspot fields.
  CALL METHOD r_present_result->set_fieldcatalog
    EXPORTING
      i_r1            = p_r1
    CHANGING
      it_fieldcatalog = it_fieldcatalog.
  lcl_initialization=>it_fieldcatalog[] = it_fieldcatalog[].
  CALL METHOD go_grid->set_table_for_first_display
    EXPORTING
      i_structure_name = i_structure_name
      is_layout        = is_layout
    CHANGING
      it_fieldcatalog  = it_fieldcatalog
      it_outtab        = <psaareatab>.
  CALL METHOD go_grid->set_gridtitle
    EXPORTING
      i_gridtitle = i_gridtitle.
ENDMODULE.                 " STATUS_0100  OUTPUT

Hi.,
Please Share your solution here.. It will be useful for others who are facing this kind of problem..!!
Thanks & Regards,
Kiran

Similar Messages

  • Capture the ALV Hot Spot column on which the user had exactly clicked

    Hello Experts,
    I have an ALV in Web Dynpro with 4 columns of which two columns have hot spot action on them.
    Now when i click on the 1st column a pop up should appear and on click of the 2nd column a different Pop-up should appear.
    Now i have an even handler which handles the ON_CLICK event..
    Whenever i click on either of the columns the control will go to this event handler method.
    Now my doubt is how to capture the column on which the user had exactly clicked so that i can define actions seperately for each column.
    Reply is Appreciated.
    Thanks in Advance,
    Shravan

    Try This
    CLASS lcl_event_handler DEFINITION.
      PUBLIC SECTION.
        METHODS:
          on_link_click FOR EVENT link_click OF cl_salv_events_table
            IMPORTING row column.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    CLASS lcl_event_handler IMPLEMENTATION.
      METHOD on_link_click. 
       " Your business logic goes here. The variable *row* contains the row number and *column contains column name*.
      ENDMETHOD.
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    * Put this code just nefore you have used the display method of SALV.
        DATA: lo_event_handler TYPE REF TO lcl_event_handler.
        CREATE OBJECT lo_event_handler.
    * Register the event handler
        SET HANDLER lo_event_handler->on_link_click FOR lo_events.
    Hope this helps.
    Regards
    Mishra

  • ALV hot spot to open a transaction when clicked on a row

    hi all
           can you please suggest me where i can get the best code for
           adding hotspot functionality in ALV display  in which I have to open a  
            related transaction as we click on any row of ALV.
    Thanks in Advance.
    Naval bhatt

    try this code
    *& Report  ZBATCHNO21N                                                 *
    REPORT  ZBATCHNO21N LINE-SIZE 280    .
    TABLES : CHVW,ZMMSE_BATCH,LFA1,MAKT,MARA.
    tables : godynpro.
    TYPE-POOLS : SLIS.
    DATA : IMMSE LIKE ZMMSE_BATCH OCCURS 0 WITH HEADER LINE.
    DATA : BEGIN OF ITAB OCCURS 0,
           CHARG  LIKE CHVW-CHARG,
           MATNR  LIKE CHVW-MATNR,
           LEVEL TYPE I,
           MACID  LIKE ZMMSE_BATCH-MACID,
           LEGNO  LIKE ZMMSE_BATCH-LEGNO,
           FEDID  LIKE ZMMSE_BATCH-FEDID,
           MAKTX  LIKE MAKT-MAKTX,
           PRDATE LIKE ZMMSE_BATCH-PRDATE,
           LICHA  LIKE CHVW-LICHA,
           NAME1  LIKE LFA1-NAME1,
           LIFNR  LIKE CHVW-LIFNR,
           MBLNR LIKE CHVW-MBLNR,
           BISMT  LIKE MARA-BISMT,
           END OF ITAB.
    DATA : LEVEL TYPE I VALUE 1.
    DATA: PA_MATNR LIKE CHVW-MATNR,
          PA_CHARG1 LIKE CHVW-CHARG,
          PA_CHARG LIKE CHVW-CHARG,
          PA_MBLNR LIKE CHVW-MBLNR,
          CH_MATNR LIKE CHVW-MATNR.
    DATA : TTABIX LIKE SY-TABIX.
    DATA : V_CHARG LIKE CHVW-CHARG.
    DATA : IFIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
           WFIELDCAT TYPE SLIS_FIELDCAT_ALV,
           ILAYOUT   TYPE SLIS_LAYOUT_ALV.
    DATA : COUNTER TYPE I VALUE 1.
    DATA : V_MBLNR LIKE CHVW-MBLNR.
    SELECT-OPTIONS: MATNR FOR CHVW-MATNR OBLIGATORY NO INTERVALS NO-EXTENSION,
                    CHARG1 FOR CHVW-CHARG OBLIGATORY NO INTERVALS NO-EXTENSION,
                    WERKS FOR CHVW-WERKS OBLIGATORY NO INTERVALS NO-EXTENSION.
    START-OF-SELECTION.
    SELECT * FROM ZMMSE_BATCH INTO TABLE IMMSE WHERE ACHARG IN CHARG1 AND OMATNR IN MATNR.
    SELECT SINGLE * FROM CHVW WHERE MATNR IN MATNR AND
                             CHARG IN CHARG1 AND WERKS IN WERKS AND
                             ( BWART EQ '131' OR BWART EQ '931' ).
        MOVE CHVW-MATNR TO PA_MATNR.
        MOVE CHVW-MATNR TO CH_MATNR.
        MOVE CHVW-CHARG TO PA_CHARG.
        MOVE CHVW-MBLNR TO PA_MBLNR.
        SELECT SINGLE BISMT FROM MARA INTO MARA-BISMT WHERE MATNR EQ PA_MATNR .
        SELECT SINGLE MAX( PRDATE ) INTO ZMMSE_BATCH-PRDATE FROM ZMMSE_BATCH
        WHERE OMATNR IN MATNR AND ACHARG IN CHARG1.
    *    APPEND ITAB.
    *ENDSELECT.
    CLEAR : CHVW.
    SELECT MBLNR CHARG MATNR INTO CORRESPONDING FIELDS OF  ITAB FROM CHVW
                                  WHERE MBLNR = PA_MBLNR AND BWART = '261'.
    *READ TABLE IMMSE INDEX COUNTER.
    *SELECT SINGLE MACID LEGNO FEDID PRDATE INTO CORRESPONDING FIELDS OF ITAB FROM ZMMSE_BATCH
    *              WHERE IMATNR EQ ITAB-MATNR AND CHARG EQ ITAB-CHARG AND ACHARG EQ PA_CHARG
    *              AND SBATCH = IMMSE-SBATCH.
    *COUNTER = COUNTER + 1.
    ITAB-LEVEL = 1.
    APPEND ITAB.
    ENDSELECT.
    SORT ITAB BY MATNR CHARG.
    SORT IMMSE BY IMATNR CHARG.
    DATA : WTAB LIKE ITAB,
           TABIX LIKE SY-TABIX,
           WTAB1 LIKE ITAB.
    LOOP AT ITAB.
    TABIX = SY-TABIX.
    MOVE-CORRESPONDING ITAB TO WTAB.
    AT NEW MATNR.
    LOOP AT IMMSE WHERE IMATNR = WTAB-MATNR AND CHARG = WTAB-CHARG.
    WTAB-LEGNO = IMMSE-LEGNO.
    WTAB-MACID = IMMSE-MACID.
    WTAB-FEDID = IMMSE-FEDID.
    WTAB-PRDATE = IMMSE-PRDATE.
    MODIFY ITAB FROM WTAB INDEX TABIX.
    TABIX = TABIX + 1.
    READ TABLE ITAB INTO WTAB1 INDEX TABIX.
    IF WTAB1-MATNR NE IMMSE-IMATNR.
    EXIT.
    ENDIF.
    ENDLOOP.
    ENDAT.
    ENDLOOP.
    LOOP AT ITAB.
    *ITAB-LEVEL = LEVEL.
    SELECT SINGLE MAKTX INTO ITAB-MAKTX FROM MAKT WHERE MATNR = ITAB-MATNR.
    SELECT SINGLE LICHA LIFNR FROM CHVW INTO (ITAB-LICHA, ITAB-LIFNR) WHERE MATNR
                 EQ ITAB-MATNR AND ( BWART EQ '105' OR BWART EQ '101' )
                 AND CHARG EQ ITAB-CHARG.
    IF ITAB-CHARG CP '2IN*'.
    V_CHARG = ITAB-CHARG.
    REPLACE FIRST OCCURRENCE OF '2IN' IN V_CHARG WITH '500' .
    SELECT SINGLE LIFNR INTO ITAB-LIFNR FROM MSEG WHERE MBLNR = V_CHARG.
    ENDIF.
    SELECT SINGLE NAME1 INTO ITAB-NAME1 FROM LFA1 WHERE LIFNR = ITAB-LIFNR.
    SELECT SINGLE MBLNR INTO ITAB-MBLNR FROM CHVW WHERE MATNR = ITAB-MATNR AND
                                                 CHARG = ITAB-CHARG AND
                                                 BWART IN ('101','105','561').
    MODIFY ITAB.
    TTABIX = SY-TABIX.
    PERFORM GET_DATA.
    ENDLOOP.
    PERFORM BUILDFIELDCAT.
    PERFORM BUILDLAYOUT.
    PERFORM DISPLAYDATA.
    *&      Form  GET_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM GET_DATA .
    SELECT SINGLE * FROM CHVW WHERE MATNR = ITAB-MATNR AND
                             CHARG EQ ITAB-CHARG AND WERKS IN WERKS AND
                             ( BWART EQ '131' OR BWART EQ '931' ).
      IF SY-SUBRC = 0.
        MOVE CHVW-MATNR TO PA_MATNR.
        MOVE CHVW-MATNR TO CH_MATNR.
        MOVE CHVW-CHARG TO PA_CHARG.
        MOVE CHVW-MBLNR TO PA_MBLNR.
        ITAB-LEVEL = ITAB-LEVEL + 1.
    SELECT MBLNR CHARG MATNR INTO CORRESPONDING FIELDS OF  ITAB FROM CHVW
                                  WHERE MBLNR = PA_MBLNR AND BWART = '261'.
    SELECT SINGLE MACID LEGNO FEDID PRDATE INTO CORRESPONDING FIELDS OF ITAB FROM ZMMSE_BATCH
                  WHERE IMATNR EQ ITAB-MATNR AND CHARG EQ ITAB-CHARG AND ACHARG EQ PA_CHARG.
    TTABIX = TTABIX + 1.
    INSERT ITAB INDEX TTABIX.
    ENDSELECT.
    ELSE.
    EXIT.
    ENDIF.
    ENDFORM.                    " GET_DATA
    *&      Form  BUILDFIELDCAT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM BUILDFIELDCAT .
    WFIELDCAT-FIELDNAME = 'LEVEL'.
    WFIELDCAT-COL_POS = 1.
    WFIELDCAT-SELTEXT_L = 'Level'.
    WFIELDCAT-OUTPUTLEN = 5.
    wfieldcat-key = 'X'.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-FIELDNAME = 'MACID'.
    WFIELDCAT-COL_POS = 2.
    WFIELDCAT-SELTEXT_L = 'Machine Id'.
    *WFIELDCAT-OUTPUTLEN = 5.
    wfieldcat-key = 'X'.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-FIELDNAME = 'LEGNO'.
    WFIELDCAT-COL_POS = 3.
    WFIELDCAT-SELTEXT_L = 'Legend No'.
    *WFIELDCAT-OUTPUTLEN = 5.
    wfieldcat-key = 'X'.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-FIELDNAME = 'FEDID'.
    WFIELDCAT-COL_POS = 4.
    WFIELDCAT-SELTEXT_L = 'Feeder Identification'.
    *WFIELDCAT-OUTPUTLEN = 5.
    wfieldcat-key = 'X'.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-FIELDNAME = 'CHARG'.
    WFIELDCAT-COL_POS = 5.
    WFIELDCAT-SELTEXT_L = 'Batch No'.
    *WFIELDCAT-OUTPUTLEN = 5.
    wfieldcat-key = 'X'.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-FIELDNAME = 'MATNR'.
    WFIELDCAT-COL_POS = 6.
    WFIELDCAT-SELTEXT_L = 'Part No'.
    *WFIELDCAT-OUTPUTLEN = 5.
    wfieldcat-key = 'X'.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-FIELDNAME = 'MAKTX'.
    WFIELDCAT-COL_POS = 7.
    WFIELDCAT-SELTEXT_L = 'Part Name'.
    *WFIELDCAT-OUTPUTLEN = 5.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-FIELDNAME = 'LICHA'.
    WFIELDCAT-COL_POS = 8.
    WFIELDCAT-SELTEXT_L = 'Supplier Lot No'.
    *WFIELDCAT-OUTPUTLEN = 5.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-FIELDNAME = 'NAME1'.
    WFIELDCAT-COL_POS = 9.
    WFIELDCAT-SELTEXT_L = 'Supplier Name'.
    *WFIELDCAT-OUTPUTLEN = 5.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-FIELDNAME = 'PRDATE'.
    WFIELDCAT-COL_POS = 10.
    WFIELDCAT-SELTEXT_L = 'Production Date & Time'.
    *WFIELDCAT-OUTPUTLEN = 5.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    WFIELDCAT-FIELDNAME = 'MBLNR'.
    WFIELDCAT-COL_POS = 11.
    WFIELDCAT-SELTEXT_L = 'Material Document No'.
    WFIELDCAT-HOTSPOT = 'X'.
    WFIELDCAT-NO_OUT = 'X'.
    **WFIELDCAT-OUTPUTLEN = 5.
    APPEND WFIELDCAT TO IFIELDCAT.
    CLEAR WFIELDCAT.
    ENDFORM.                    " BUILDFIELDCAT
    *&      Form  BUILDLAYOUT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM BUILDLAYOUT .
    ILAYOUT-ZEBRA = 'X'.
    ILAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    *ILAYOUT-F2CODE = '&IC1'.
    ENDFORM.                    " BUILDLAYOUT
    *&      Form  DISPLAYDATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM DISPLAYDATA .
    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          = 'PFSTATUS'
       I_CALLBACK_USER_COMMAND           = 'USERCOMMAND'
       I_CALLBACK_TOP_OF_PAGE            = 'TOPOFPAGE'
    *   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                         = ILAYOUT
       IT_FIELDCAT                       = IFIELDCAT
    *   IT_EXCLUDING                      =
    *   IT_SPECIAL_GROUPS                 =
    *   IT_SORT                           =
    *   IT_FILTER                         =
    *   IS_SEL_HIDE                       =
    *   I_DEFAULT                         = 'X'
    *   I_SAVE                            = ' '
    *   IS_VARIANT                        =
    *   IT_EVENTS                         =
    *   IT_EVENT_EXIT                     =
    *   IS_PRINT                          =
    *   IS_REPREP_ID                      =
    *   I_SCREEN_START_COLUMN             = 0
    *   I_SCREEN_START_LINE               = 0
    *   I_SCREEN_END_COLUMN               = 0
    *   I_SCREEN_END_LINE                 = 0
    *   IT_ALV_GRAPHICS                   =
    *   IT_HYPERLINK                      =
    *   IT_ADD_FIELDCAT                   =
    *   IT_EXCEPT_QINFO                   =
    *   I_HTML_HEIGHT_TOP                 =
    *   I_HTML_HEIGHT_END                 =
    * IMPORTING
    *   E_EXIT_CAUSED_BY_CALLER           =
    *   ES_EXIT_CAUSED_BY_USER            =
      TABLES
        T_OUTTAB                          = ITAB
    * 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.                    " DISPLAYDATA
    FORM TOPOFPAGE.
    DATA : ILISTHEADER TYPE SLIS_T_LISTHEADER,
           WLISTHEADER TYPE SLIS_LISTHEADER,
           TEXT(100),
           TEXT1(50),
           SPACES(5).
    SPACES = '     '.
    WLISTHEADER-INFO = 'LOGAN Product Traceablity Report'.
    WLISTHEADER-TYP = 'H'.
    APPEND WLISTHEADER TO ILISTHEADER.
    CONCATENATE 'NIP Code :' CHARG1-LOW INTO TEXT SEPARATED BY SPACE.
    CONCATENATE 'Pricol Part No :' MATNR-LOW INTO TEXT1 SEPARATED BY SPACE.
    CONCATENATE TEXT TEXT1 INTO TEXT SEPARATED BY SPACE.
    WLISTHEADER-INFO = TEXT.
    WLISTHEADER-TYP = 'S'.
    APPEND WLISTHEADER TO ILISTHEADER.
    CLEAR TEXT.
    SELECT SINGLE BISMT FROM MARA INTO MARA-BISMT WHERE MATNR IN MATNR.
    SELECT SINGLE MAX( PRDATE ) INTO ZMMSE_BATCH-PRDATE FROM ZMMSE_BATCH
      WHERE OMATNR IN MATNR AND ACHARG IN CHARG1.
    CONCATENATE 'Customer Part No :'  MARA-BISMT INTO TEXT SEPARATED BY SPACE.
    WLISTHEADER-INFO = TEXT.
    WLISTHEADER-TYP = 'S'.
    APPEND WLISTHEADER TO ILISTHEADER.
    CLEAR TEXT.
    CONCATENATE 'Date & Time:'
                ZMMSE_BATCH-PRDATE INTO TEXT SEPARATED BY SPACE.
    WLISTHEADER-INFO = TEXT.
    WLISTHEADER-TYP = 'S'.
    APPEND WLISTHEADER TO ILISTHEADER.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
        IT_LIST_COMMENTARY       = ILISTHEADER
    *   I_LOGO                   =
    *   I_END_OF_LIST_GRID       =
    ENDFORM.
    FORM USERCOMMAND USING PUCOM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.
    CASE PUCOM.
    WHEN '&IC1'.
    IF SELFIELD-FIELDNAME = 'MBLNR'.
    SET PARAMETER ID 'MBN' FIELD SELFIELD-VALUE.
    CALL TRANSACTION 'MIGO' AND SKIP FIRST SCREEN.
    *GODYNPRO-ACTION = 'Display'.
    ENDIF.
    ENDCASE.
    ENDFORM.
    *FORM PFSTATUS USING EXTAB TYPE SLIS_T_EXTAB.
    *SET PF-STATUS 'ZSTANDARD'.
    *ENDFORM.
    regards
    shiba dutta

  • Code for Hot spot in ALV report to call transaction

    Hi,
    I  hv never use hot spot to link as a call transaction can u give the link or code how to make hot spot on a particular fields  i am working on a ALV report in that report in the belnr coloumn when user click on belnr i want to call FB03 transaction ref. to that belnr number and fisacl year.
    regards,
      zafar

    Hi,
    In the fieldcatalog you will have to write the hotspot as shown below,
       wa_fieldcat-hotspot   =  'X'.
      APPEND wa_fieldcat TO it_fieldcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program       = sy-repid
            i_callback_user_command  = 'USER_COMMAND'"----> this is important
         i_callback_pf_status_set = 'PFSTATUS'
            it_fieldcat              = it_fieldcat
            is_layout                = it_layout
         it_event_exit            = it_eventexit
         i_screen_start_column    = 10
         i_screen_start_line      = 20
         i_screen_end_column      = 70
         i_screen_end_line        = 45
            i_grid_title             = 'Customer-Order Details'
          TABLES
            t_outtab                 = it_data.
    then you will have to catch the user command as follows,
    FORM user_command USING r_ucomm TYPE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      DATA: alv_vbeln TYPE vbeln,
            mess_text(30) TYPE c,
            txt_vbeln(10) TYPE c.
    *User clicks a Order No. in ALV it passed to the following transaction.
      CASE r_ucomm.
        WHEN '&IC1'.
          READ TABLE it_data INDEX rs_selfield-tabindex INTO wa_data.
          alv_vbeln  = wa_data-vbeln..
          IF sy-subrc = 0.
            CLEAR: mess_text, txt_vbeln.
            SUBMIT zprogram
             WITH pr_vbeln = alv_vbeln AND RETURN.
    put your call transaction logic here
          ENDIF.
      ENDCASE.
    ENDFORM.                    "user_command
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

  • Deactivate the double click/ hot spot for a particular row in alv grid.

    Hello,
       As per a certain condition how to deactivate the double click/ hot spot for a particular row in alv grid.
    Regards,
    Saroj

    where u define layout there is a field hotspot.like
    data: var.
    if con is true
    var = 'X'. (show hotspot)
    else.
    var = ' '. (deactive hotspot)
    elseif ws_fieldcat-fieldname = 'DMBTR'
                    AND ws_fieldcat-tabname = 'T_MTAB'.
          ws_fieldcat-do_sum = C_X.
          <b>ws_fieldcat-hotsopts = var.</b>
          MODIFY Wt_fieldcat FROM ws_fieldcat
                  TRANSPORTING   DO_SUM.
    It is helpful for u. if any problen send me ur coding i will change it.
    Regards
    Manish Kumar

  • Attaining Hot spot in ALV Tree Using OOPS concept

    Hi All,
    In our requirement we are displaying the data in ALV Tree Using OOPS.
    We need to achieve hot spot on one of the header field.
    I am using  Class 'CL_GUI_ALV_TREE'
    Ex:
    CreditAccnt/ Company codes            DSO    DDSO
    26                                                   15        15
       8000                                              5          5
       8545                                             10        10
    In the above example for every credit accnt in header we r displaying the values ( DSO ,DDSO) for all company codes.
    Now we require hot spot on Credit Accnt 26. Such that when user clicks on the credit accnt it should navigate to another transaction.
    NOTE: we havent build any field catalogue for field CreditAccnt/ Company codes .

    Hi,
    You can refer to the tutorial -
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf
    Or try using the code below-
    CLASS lcl_event_receiver DEFINITION
    CLASS lcl_event_receiver DEFINITION.
    PUBLIC SECTION.
    CLASS-METHODS:
    Hot Spot Click
    handle_hotspot
    FOR EVENT hotspot_click OF cl_gui_alv_grid
    IMPORTING e_row_id
    e_column_id
    es_row_no,
    ENDCLASS.
    Implementation
    *& Method handle_hotspot
    This method is called when the user clicks on a hotspot to drill down.
    The following types are exported from the ALV
    LVC_S_ROW
    LVC_S_COL
    LVC_S_ROID
    METHOD handle_hotspot.
    The hotspot processing coded in the form below.
    PERFORM f9802_handle_hotspot USING e_row_id
    e_column_id
    es_row_no.
    ENDMETHOD.
    *& Form f9802_handle_hotspot
    This form is called when the user clicks on a hotspot on the ALV grid
    The parameters are of type
    -->P_E_ROW text
    -->P_E_COL text
    -->P_E_ROID text
    FORM f9802_handle_hotspot USING p_row
    p_col
    p_roid.
    DATA: lw_output LIKE LINE OF i_output.
    READ TABLE i_output INDEX p_row INTO lw_output.
    SET PARAMETER ID 'MAT' FIELD lw_output-matnr.
    CALL TRANSACTION 'MM02' AND SKIP FIRST SCREEN.
    ENDFORM. " f9802_handle_hotspot
    FORM f9300_modify_field_cat TABLES p_fieldcat STRUCTURE lvc_s_fcat.
    Field-symbols: <lfs_fieldcat> TYPE lvc_s_fcat.
    LOOP AT p_fieldcat ASSIGNING <lfs_fieldcat>.
    CASE <lfs_fieldcat>-fieldname.
    WHEN 'MATNR'.
    <lfs_fieldcat>-hotspot = c_x.
    <lfs_fieldcat>-key = c_x.
    WHEN OTHERS.
    ENDCASE.
    ENDLOOP.
    ENDFORM.
    In PBO,
    module STATUS_9001 output.
    Set handlers for events
    SET HANDLER o_eventreceiver->handle_hotspot FOR o_Alvgrid.
    ENDMODULE.
    Hope this helps

  • Hot spot event on alv tree

    hi.....
    whats the event for hotspot or single click on node event
    thanks.

    Hi,
    If you want to get it through grid you can go through the sample code...
    The sample program explains on how to achieve hotspot apply the same for alv tree...
    REPORT  Z_ALV_HOTSPOT.
    TABLES:EKKO.
    SELECT-OPTIONS:S_EBELN FOR EKKO-EBELN.
        INTERNAL TABLE FOR EKKO
    DATA: TB_EKKO TYPE STANDARD TABLE OF EKKO,
        INTERNAL TABLE FOR EKPO
          TB_EKPO TYPE STANDARD TABLE OF EKPO,
          DA_TOP  TYPE REF TO CL_DD_DOCUMENT,
          DW_TOP  TYPE REF TO CL_DD_DOCUMENT.
    DATA:
        GRIDS
          EKKO_GRID TYPE REF TO CL_GUI_ALV_GRID,
          EKPO_GRID TYPE REF TO CL_GUI_ALV_GRID,
        CONTAINERS
          EKKO_CONTAINER        TYPE REF TO CL_GUI_CONTAINER,
          EKPO_CONTAINER        TYPE REF TO CL_GUI_CONTAINER,
          TOP_OF_PAGE_CONTAINER TYPE REF TO CL_GUI_CONTAINER,
          DTOP_OF_PAGE_CONTAINER TYPE REF TO CL_GUI_CONTAINER,
          DMAIN_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
          MAIN_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
          SPLITTER TYPE REF TO CL_GUI_SPLITTER_CONTAINER,
          DSPLITTER TYPE REF TO CL_GUI_SPLITTER_CONTAINER,
        LAYOUT
          X_LAYOUT TYPE LVC_S_LAYO,
        WORK AREA
          X_EKKO LIKE EKKO.
      DATA: FLAG TYPE C,
            flag_top type c.
          CLASS LCL_HANDLER DEFINITION
    CLASS LCL_HANDLER DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:HANDLER_HOTSPOT_CLICK FOR EVENT HOTSPOT_CLICK OF
         CL_GUI_ALV_GRID IMPORTING E_ROW_ID.
        CLASS-METHODS:HANDLER_TOP_OF_PAGE FOR EVENT TOP_OF_PAGE OF
         CL_GUI_ALV_GRID .
    ENDCLASS.                    "LCL_HANDLER DEFINITION
          CLASS LCL_HANDLER IMPLEMENTATION
    CLASS LCL_HANDLER IMPLEMENTATION.
      METHOD HANDLER_HOTSPOT_CLICK.
    CLEAR X_EKKO.
    CLEAR TB_EKKO.
        READ TABLE TB_EKKO INDEX E_ROW_ID-INDEX INTO X_EKKO.
        IF SY-SUBRC = 0.
          PERFORM GET_ITEM_DETAILS USING X_EKKO-EBELN.
        ENDIF.
      ENDMETHOD.                    "HANDLER_HOTSPOT_CLICK
      METHOD HANDLER_TOP_OF_PAGE.
        CALL METHOD DA_TOP->ADD_TEXT
          EXPORTING
            TEXT = 'Top Of Page'.
        CALL METHOD DA_TOP->DISPLAY_DOCUMENT
          EXPORTING
            PARENT = TOP_OF_PAGE_CONTAINER.
    if flag_top = 'X'.
    CALL METHOD DW_TOP->ADD_TEXT
          EXPORTING
            TEXT = 'ITEM Top Of Page '.
        CALL METHOD DW_TOP->DISPLAY_DOCUMENT
          EXPORTING
            PARENT = DTOP_OF_PAGE_CONTAINER.
      flag_top = ' '.
    endif.
      ENDMETHOD.                    "HANDLER_TOP_OF_PAGE
    ENDCLASS.                    "LCL_HANDLER IMPLEMENTATION
    *&      Module  STATUS_0100  OUTPUT
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'ABC'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Form  GET_DATA
    MODULE GET_DATA OUTPUT.
      SELECT * UP TO 5 ROWS INTO TABLE TB_EKKO FROM EKKO WHERE EBELN IN
      S_EBELN.
    ENDMODULE.                    " GET_DATA
                             START OF SELECTION.
    START-OF-SELECTION.
      CALL SCREEN 100.
    *&      Module  DISPLAY_DATA  OUTPUT
          text
    MODULE DISPLAY_DATA OUTPUT.
    CREATING CONTAINER OBJ*******
      CREATE OBJECT MAIN_CONTAINER
        EXPORTING
          CONTAINER_NAME               = 'CONT1'
        EXCEPTIONS
          CNTL_ERROR                  = 1
          CNTL_SYSTEM_ERROR           = 2
          CREATE_ERROR                = 3
          LIFETIME_ERROR              = 4
          LIFETIME_DYNPRO_DYNPRO_LINK = 5
          OTHERS                      = 6
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT SPLITTER
                        EXPORTING TOP     = 5
                                  PARENT  = MAIN_CONTAINER
                                  ROWS    = 2
                                  COLUMNS = 1.
      CALL METHOD SPLITTER->GET_CONTAINER
        EXPORTING
          ROW       = 1
          COLUMN    = 1
        RECEIVING
          CONTAINER = TOP_OF_PAGE_CONTAINER.
      CALL METHOD SPLITTER->GET_CONTAINER
        EXPORTING
          ROW       = 2
          COLUMN    = 1
        RECEIVING
          CONTAINER = EKKO_CONTAINER.
    CREATING GRID OBJ AND ASSAIGNING TO CONTAINER ****
      CREATE OBJECT EKKO_GRID
        EXPORTING
          I_PARENT          =  EKKO_CONTAINER
        EXCEPTIONS
          ERROR_CNTL_CREATE = 1
          ERROR_CNTL_INIT   = 2
          ERROR_CNTL_LINK   = 3
          ERROR_DP_CREATE   = 4
          OTHERS            = 5
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    LAYOUT SETTINGS ***
      X_LAYOUT-ZEBRA  = 'X'.
      X_LAYOUT-KEYHOT = 'X'.
    TO DISPLAY TB_EKKO CONTENTS  ********
      CALL METHOD EKKO_GRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          I_STRUCTURE_NAME              = 'EKKO'
          IS_LAYOUT                     = X_LAYOUT
        CHANGING
          IT_OUTTAB                     = TB_EKKO
        EXCEPTIONS
          INVALID_PARAMETER_COMBINATION = 1
          PROGRAM_ERROR                 = 2
          TOO_MANY_LINES                = 3
          OTHERS                        = 4.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ***REGESTRING HANDLER FOR HOT SPOT CLICK EVENT
      SET HANDLER LCL_HANDLER=>HANDLER_HOTSPOT_CLICK FOR EKKO_GRID.
      SET HANDLER LCL_HANDLER=>HANDLER_TOP_OF_PAGE FOR EKKO_GRID.
    For Top Of Page
      CREATE OBJECT DA_TOP
        EXPORTING STYLE = 'ALV_GRID'.
      CALL METHOD DA_TOP->INITIALIZE_DOCUMENT.
      CALL METHOD EKKO_GRID->LIST_PROCESSING_EVENTS
        EXPORTING
          I_EVENT_NAME = 'TOP_OF_PAGE'
          I_DYNDOC_ID  = DA_TOP.
    ENDMODULE.                 " DISPLAY_DATA  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'EXIT'.
          LEAVE TO SCREEN 0.
        WHEN 'CANCEL'.
          LEAVE TO SCREEN 0.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'OTHERS'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  GET_ITEM_DETAILS
    FORM GET_ITEM_DETAILS  USING  P_EKKO_EBELN TYPE EKKO-EBELN.
      CLEAR TB_EKPO[].
      SELECT * UP TO 5 ROWS INTO TABLE TB_EKPO FROM EKPO WHERE EBELN =
      P_EKKO_EBELN.
      IF FLAG IS INITIAL.
        FLAG = 'X'.
    CREATING CONTAINER OBJ*******
        CREATE OBJECT DMAIN_CONTAINER
          EXPORTING
            CONTAINER_NAME               = 'CONT2'
          EXCEPTIONS
            CNTL_ERROR                  = 1
            CNTL_SYSTEM_ERROR           = 2
            CREATE_ERROR                = 3
            LIFETIME_ERROR              = 4
            LIFETIME_DYNPRO_DYNPRO_LINK = 5
            OTHERS                      = 6
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    CREATE OBJECT DSPLITTER
                        EXPORTING TOP     = 5
                                  PARENT  = DMAIN_CONTAINER
                                  ROWS    = 2
                                  COLUMNS = 1.
      CALL METHOD DSPLITTER->GET_CONTAINER
        EXPORTING
          ROW       = 1
          COLUMN    = 1
        RECEIVING
          CONTAINER = DTOP_OF_PAGE_CONTAINER.
      CALL METHOD DSPLITTER->GET_CONTAINER
        EXPORTING
          ROW       = 2
          COLUMN    = 1
        RECEIVING
          CONTAINER = EKPO_CONTAINER.
    CREATING GRID OBJ AND ASSAIGNING TO CONTAINER ****
        CREATE OBJECT EKPO_GRID
          EXPORTING
            I_PARENT          =  EKPO_CONTAINER
          EXCEPTIONS
            ERROR_CNTL_CREATE = 1
            ERROR_CNTL_INIT   = 2
            ERROR_CNTL_LINK   = 3
            ERROR_DP_CREATE   = 4
            OTHERS            = 5
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.
    LAYOUT SETTINGS ***
      X_LAYOUT-ZEBRA  = 'X'.
    TO DISPLAY TB_EKPO CONTENTS  ********
      CALL METHOD EKPO_GRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          I_STRUCTURE_NAME              = 'EKPO'
          IS_LAYOUT                     = X_LAYOUT
        CHANGING
          IT_OUTTAB                     = TB_EKPO
        EXCEPTIONS
          INVALID_PARAMETER_COMBINATION = 1
          PROGRAM_ERROR                 = 2
          TOO_MANY_LINES                = 3
          OTHERS                        = 4.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    SET HANDLER LCL_HANDLER=>HANDLER_TOP_OF_PAGE FOR EKPO_GRID.
    For Top Of Page
      CREATE OBJECT DW_TOP
        EXPORTING STYLE = 'ALV_GRID'.
      CALL METHOD DW_TOP->INITIALIZE_DOCUMENT.
    flag_top = 'X'.
      CALL METHOD EKPO_GRID->LIST_PROCESSING_EVENTS
        EXPORTING
          I_EVENT_NAME = 'TOP_OF_PAGE'
          I_DYNDOC_ID  = DW_TOP.
    ENDFORM.                    " GET_ITEM_DETAILS
    <b>Reward points for all helpful answers.</b>
    Regards,
    Azaz Ali.

  • I want to use my wifi iPad for navigation but now realise it doesn't have gps built in. Is it possible to use hot spot to get the gps location to my iPad from my iphone? Long shot I know!

    I want to use my wifi iPad for navigation but now realise it doesn't have gps built in. Is it possible to use hot spot to get the gps location to my iPad from my iphone? Long shot I know!

    I thought yes, more like this on the right says no. Why not take the two devices outside and try.

  • ALV GRID  - double click event - hot spot event

    Dear developers
    I am building a custom application using ALV GRID (OO method).
    I have three ALV's on the screen.
    User selects a cell on the first ALV from the list. say a specific product group.
    The second ALV displays the product records depnding on selection of first ALV. (this works fine).
    when the user selects a cell of a specific column on ALV grid 2 using double click event or hotspot I am always getting row ID as 1 , irrespective of the user clickin on row 2 or 3 on the specific cell.
    To carry out further processing , I need to get the exact row the user is selecting which I expected to be available in LVC_S_ROID. My further process works always with ROW ID as 1.
    I am using event hot spot in alv grid 1. In grid 2 I tried both hot spot and double click . But both returns the index value of row as 1 , irrespective of the cell being clicked is beyond row 1. in second grid.
    Looking forward for help or suggestion on this,
    Regards
    Kumar

    Hi
    The handler is implemented as follows for all ALV GRIDs.
    I give below only the relevant one grid 2 from my code.
    Class definition
    **03/17/2005 skulist hotspot
    handle_skulist FOR EVENT hotspot_click OF cl_gui_alv_grid
    IMPORTING e_row_id e_column_id es_row_no,
    Class implementation
    **03/17/2005 sku list by currency hotspot on listprice
      METHOD handle_skulist .
        PERFORM handle_skulist USING e_row_id e_column_id es_row_no.
      ENDMETHOD.                    "HANDLE_HOTSPOT_CLICK
    DATA gr_event_handler TYPE REF TO lcl_event_handler.
    DATA gr_event_handler_4 TYPE REF TO lcl_event_handler.
    The above are done in an include and are public in nature.
    Also note that I have similar implementation for similar events for grid 1 bu the event handlers are registered in different names.
    The code below is in the maib program , under a custom container for grid 2
    CREATE OBJECT gr_event_handler_4.
        SET HANDLER gr_event_handler_4->handle_skulist FOR gr_alvgrid1.
    *Based on the user action on grid 2 this form is getting executed. But as I said earlier the parameter I am getting for index is 1 always.
    FORM handle_skulist USING i_row_id1 TYPE lvc_s_row
                                    i_column_id1 TYPE lvc_s_col
                                    is_row_no1 TYPE lvc_s_roid.

  • DPS: Disabling Top Navigation Bar in Adobe App Builder disables Hot Spots in Articles

    When I disable the top navigation bar in Adobe's app builder, my hot spots (linked to MSOs) in certain articles are also disabled. The hot spots work if I "refresh" and swipe back to an article with no overlays. How do I get my hot spots to work and also have the top nav bar disabled? Thanks.

    Unfortunately, I do not know how to access it now that the app has been accepted. I had originally typed it up in Word thinking that I would be able to access it from the appeal site later, but that site is no longer accessible.
    I essentially explained that I had followed the 59 page DPS guide step-by-step and that no where did it explain how to enable the iOS status bar to be visible at all times ... that I was a designer and not a programmer ... that in 2012, 12 of the top 20 grossing apps on the iTunes Newstand were created with DPS ... that my app was an interactive "literary" travel app that was to be read like a brochure.  All that must have done the trick.

  • Submit button for hot spot quiz

    the hot spot quiz functionality is not very intuitive.  is there a way to proceed to the next slide after the user hits "submit?"   also, is there a way to only allow one hotspot selection that once the user makes a selection he/she cannot keeping placing selections all over the page? thanks.

    Hello Lilybiri,
    Thank you for offering to help find a solution for my Hot Spot Quiz issues.  If you would like to (or have the time to) help me here's what I am trying to accomplish:
    We need some Hot Spot quizzes which require the user to click on one, or sometimes one of several, hot spots on an image object.  I have already encountered the Captivate 4 hot spot quiz limitation of having to click on all of a group of hot spots in order for the answer to be correct when we want the user to click on just one of any of the correct hot spots.  I have developed a customer specific header and footer bar template for each slide, with the footer bar containing navigational buttons for beginning/previous/next/end functionality, have disabled this navigation in the question slides as we don't want this available to the user during the quizzing.  Instead, we want to advance to the next question slide if the user clicks the correct hot spot, or produce a text caption (with a continue button to advance to the next question slide) accompanied by an arrow animation indicating the correct hot spot to click (which would require executing an advanced action).  The user gets one attempt to answer the question correctly.  Each question slide will have a text caption with the question for the user to answer.  Because of the limitations I've encountered with Captivate 4 hot spot quizzing I've been considering creating custom question slides just as you suggested.  Unfortunately, we have a very tight deadline to meet and a lot of content to pour into this project, so I need solutions that are as simple and quick to develop as possible.  It seems that sometimes Captivate does not allow for this to happen and I've been discovering that it's been increasingly frustrating to use.  Any assistance you could lend me would be greatly appreciated and I thank you for your time.
    Sincerely,
    Roland

  • Removing undeline from the hot spot column ( REUSE_ALV_GRID_DISPLAY )

    Hi
    I am using the Hot Spot for the columns in ALV report.
    I need to remove the underline from the column values here.
    How to do that.
    Amol

    One thing we have done with ALV is to not use the hotspots. We have the users double click on a cell, rather than single click. In the command processing routine, the system still receives the correct field name for deterining the processing, etc.
    The other advantage is that this allows us to copy and paste much easier individual fields fdrom the ALV without jumping to a new function unintentionally. The disadvantage is that you cannot see which fields have links.
    Remove the hotspot from the field, run the program, and double click on the field. It will still call the command processor, and the underline is gone.
    Just an idea based on something we had to do becuase of the copy/paste issue.

  • How to handle hot spot in table

    I have a screen with ALV grid where the first column is hot spot and when you press it, it will go to another screen and display details of selected row with some additional functionality as below.
    Now I want to skip this screen and proceed to next step .
    To do this I have recorded the flow and then I have created script to identify which row is selected with the following script which is working fine.
    In the recorded script(below) I had selected the second row of the grid, so that displayed screen show second row details and when I changed the value to 3, event of the 3rd row triggered and works fine.
    Since i have the selected row value,Can I make this value (marked in above screen) dynamic? So that every time I trigger the hot spot it will capture corresponding row and display the screen.
    Message was edited by: Shaik Shadulla

    Hi Shaik Shadulla,
    I am also having the same requirement .Have you fixed this issue?
    Could you please let me know how you have fixed?
    Thank you,
    Arunkumaran

  • Hot spot for field based on field value

    Hi,
    Im using ALV list to display report. And I have enable hot spot for that field based on field value. For example, If the field has value " 0 " then hotspot should be enabled for that field. If the field has value " 1 " then it should be displayed as normal field without hotspot.
    Can anyone tell me how to do this?
    Thanks,
    Amal

    Hi Amal
    Do this
    In your final internal table
    add a table type
    gi_cellstyles TYPE lvc_t_styl
    Then (while populating output)
    FORM prepare_edit_output.
    * say your field is 'field'
      DATA : lw_stylerow TYPE lvc_s_styl,
             li_styletab TYPE lvc_t_styl.
      IF gw_output-field = '0'.
        CLEAR lw_stylerow.
        lw_stylerow-fieldname = 'FIELD'.
        lw_stylerow-style     = cl_gui_alv_grid=>mc_style_hotspot.
        APPEND lw_stylerow TO li_styletab.
      ELSEIF gw_output-field = '1'.
        CLEAR lw_stylerow.
        lw_stylerow-fieldname = 'FIELD'.
        lw_stylerow-style     = cl_gui_alv_grid=>mc_style_hotspot_no.
        APPEND lw_stylerow TO li_styletab.
      ENDIF.
      INSERT LINES OF li_styletab INTO TABLE gw_output-gi_cellstyles.
    ENDFORM.
    In your layout building
        gw_layout-stylefname = 'GI_CELLSTYLES'.
    Pushpraj

  • Hot Spot Icon/animation legenth

    I am using the 30 day free version of Adobe Captivate 4 and when I preview my "presentation" in a web browser the icon/animation for the Hot Spot question stays on the screen for three to five seconds after pressing the submit button.
    How can I change the timing for the Hot Spot icon/animation display?

    Hello Lilybiri,
    Thank you for offering to help find a solution for my Hot Spot Quiz issues.  If you would like to (or have the time to) help me here's what I am trying to accomplish:
    We need some Hot Spot quizzes which require the user to click on one, or sometimes one of several, hot spots on an image object.  I have already encountered the Captivate 4 hot spot quiz limitation of having to click on all of a group of hot spots in order for the answer to be correct when we want the user to click on just one of any of the correct hot spots.  I have developed a customer specific header and footer bar template for each slide, with the footer bar containing navigational buttons for beginning/previous/next/end functionality, have disabled this navigation in the question slides as we don't want this available to the user during the quizzing.  Instead, we want to advance to the next question slide if the user clicks the correct hot spot, or produce a text caption (with a continue button to advance to the next question slide) accompanied by an arrow animation indicating the correct hot spot to click (which would require executing an advanced action).  The user gets one attempt to answer the question correctly.  Each question slide will have a text caption with the question for the user to answer.  Because of the limitations I've encountered with Captivate 4 hot spot quizzing I've been considering creating custom question slides just as you suggested.  Unfortunately, we have a very tight deadline to meet and a lot of content to pour into this project, so I need solutions that are as simple and quick to develop as possible.  It seems that sometimes Captivate does not allow for this to happen and I've been discovering that it's been increasingly frustrating to use.  Any assistance you could lend me would be greatly appreciated and I thank you for your time.
    Sincerely,
    Roland

Maybe you are looking for