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

Similar Messages

  • How to Open GUI Transaction when clicking in Hyper Link

    Hello All,
    I want to open GUI Transaction  when user will click on Hyper Link created in a particular column in a table view. For that I have created  Transaction Launcher ID using Transaction Launcher  Wizard. Then what will be the next step, i'm not getting. Can anybody help me out on this?
    Thanks in advance,
    Madhusudan

    Hi,
    Here is the sample code:
    DATA: lr_navigation TYPE REF TO if_crm_ui_navigation_service.
    lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
    CHECK lr_navigation IS BOUND.
    lr_navigation->navigate( iv_link_id = 'ZLINKID' ).
    -ASB

  • Hot spots not working in IE when publishing HTML5

    Hot spots not working in IE when publishing HTML5. When user points on correct hotspot, the negative feedback is given. This happens only in latest version 8.0.1.

    Hello ,
    Welcome to Adobe Forums !
    I am also able to reproduce the issue on Internet Explorer 10.
    Could you please reply with the exact version of Internet Explorer you are using?
    Regards
    Himanshu

  • Multiple windows open in safari when click on web site.  Also can't change/edit DNS servers or any other changes in advance window of network tab

    macbook pro
    osx - mavericks
    multiple windows open in safari when click on web site.  Also can't change/edit DNS servers or any other changes in advance window of network tab.
    Basically every time i click on website other windows open and get redirected to other websites selling something (same as that mackeeper site which seems to open often)  Really ***** as in just a few minutes on the web I have many windows open and many are the same pages.  Can't make changes in the advanced tab of network as options are greyed out and the + & - symbols do nothing when clicked.  Hope there is an easy answer as surfing net is really sucking right now

    I hope to get some more info on a similar situation.
    I have a new Mac Pro, less than 2 months old. OSX 10.5 updated to 10.5.2. Quicktime updated too. When I use the Desktop and Screen Saver system pref, I can easily select and use one of the Apple supplied desktop pictures as a desktop background.
    But I wish to use a Photo from an iPhoto (iLife 08) folder / album as the desktop background. I can find all the albums, I can see all the icons for the pictures, I can select an iconed pciture and it appears in the top left of the preference pane (showing the effect of "fit to window" or "stretch to fit", etc). But all I get is a pale blue screen (which might be my default desktop colour). I don't get any of my iPhoto album pics to appear as a dektop background.
    There is one minor note on this, I don't keep the pictures in my iPhoto Library, I just reference them, and the originals are on a different internal disk.
    I've tried the suggestions above, trashing finder and desktop plists, killall Finder, etc. restart. Nothing gets it working again. It did work originally, for most of the time I've had the Mac Pro, then I changed the dektop to an Apple supplied picture of Earth.
    This affects both an Admin, and a standard user. The photos (and enclosing folders) are read / writable by the admin user, and readable by the Standard user. Both users can easily access the photos in their iPhoto. They open the original files on the second internal drive, and performing a right click - Show File shows the original file as expected. I've even emptied the iPhoto library completely and rebuilt it, just in case there was an issue here.
    Any ideas ? or anyone else seen this ? I don't really want to start reformatting disks and reinstalling the OS, but any suggestions short of this are extremely welcome.

  • 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

  • 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

  • Open transaction when click in the link in sap inbox body text

    Hi all,
    Requirement :
    Have to send mail through program (not workflow) and in the mail body one link should go to the sap inbox. when user click that link it should open the transaction with passing some values to the transaction.
    Solution :
    Can we use the java script in the mail sending FM body so that we can raise a event when clicking the link in sap inbox.
    Please suggest some method to solve the problem.
    Regards,

    Hi,
    Here is the sample code:
    DATA: lr_navigation TYPE REF TO if_crm_ui_navigation_service.
    lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
    CHECK lr_navigation IS BOUND.
    lr_navigation->navigate( iv_link_id = 'ZLINKID' ).
    -ASB

  • New windows in Firefox 29 on Windows 8.1 don't open fully maximized when clicked through a link

    New problem in firefox 29:
    When I click a link that opens the new page in a new window, the window pops open in the last partially maximized state that it was in. Should I maximize the new window (in Windows 8.1) and close it and re-click the original link, the window opens again in the partially maximized state, not the last fully maximized state that I previously closed it in.
    To create it as I've encountered it:
    -go to https://news.google.com
    -click on any article. the default behavior should be to open the article in a new window
    -the window won't be maximized in my experience
    -you can maximize the window and then close the window/ article
    -re-click on the same article and the new window should appear again in the non-maximized state, not the fully maximized state that you closed it in previously
    One point of note. Right-clicking the same link that opens the new window and specifically choosing "Open Link in New Window" DOES open the new window in a fully maximized state. I repeat, the new window does open fully maximized when you choose "Open Link in New Window" from the right-click drop downs menu. But, this doesn't happen with the simple left-click, which I'm concerned with.

    Reverted back to version 28.0, 29 just isnt working, layout is a mess. (Ok i got the old layout back by installing and setting up Classic Theme Restorer, but once you remove the orange title bar, the screen resize bug appears.) Also its a very bad thing such a large graphical overhaul took place without prior notice. If i wanted google Chrome i would have just installed that, dont need FF to provide me with it. Might upgrade again if bugs and layout are changed, otherwise ill stay with 28.0 or maybe start using Waterfox.

  • Will not open new tab when clicked on the + next to open page

    firefox does not open new window when I click on the new tab +
    also does not open new tab when going through the file menu

    This issue can be caused by the Ask<i></i>.com toolbar (Tools > Add-ons > Extensions)
    See:
    * [[Troubleshooting extensions and themes]]

  • Finder Windows always open new windows when clicking subfolders

    since i upgraded to 10.5.6, my finder windows only open new windows when I click on a subfolder. this is no matter what I do with the setting in preferences.
    Also, my finder windows no longer display the side bars with folder icons.
    I searched my library (and whole computer) for the finder preferences .plist file and can't find it. (was going to delete it and re-create it).
    Any ideas here?

    Thanks for the star.
    The default of Finder’s Find will not search that folder, but you can change the pulldown menu just beneath where it says Search, from Kind to System files by selecting Other from that menu and then scroll down the next window and check the box next to System files. You’ll then need to change the pulldown menu next to that to “include” instead of “don’t include.”
    The next time you do a search using Find, that pulldown menu will have System files as an option, if you think you might want to search for something in your home folder.

  • edited by host HARD DRIVE ICON WILL NOT OPEN ON DESKTOP WHEN CLICK

    my HD will not open on desktop when i click on it. For 4 years i had no problem on this every.
    why does this happen now?
    what is wrong with the icon?
    could my HD start becoming bad?
    what are some signs that i should be "aware of" is this one?

    You might try booting from DVD or another drive and running Disk Utility and Disk Warrior.
    Or Single Users Mode (command s on startup) and follow on-screen instruction command
    /sbin/fsck -fy
    to repair your boot drive
    ... or a Safe Boot with shift key held down.
    Corrupt prefs, directory, could be a number of small or major things.
    But, in any case, make sure you have backups, and a bootable backup clone, maybe an emergency boot drive as well (install OS X on another drive if you don't have one now).

  • How to open an image when clicking in a word.

    Im working in a demo for an interactive book for ipad using the Digital Publishing Suite > Folio Builder and i need to be able to open a specific image when clicking in a word. I havent found any tutorial that shows how to do this can somebody please point me in that right direction?  thx so much

    Download Bob Bringhurst's DPS Tips app from the app store and/or watch my lynda.com DPS Essentials Course. If you don't have a subscription you can get a free one week trial here: lynda.com library | Trial Subscription

  • I lost the function of opening new websites when clicking on icon Firefox on desktop

    Hi!
    Previously, when I had e.g. hotmail open (or any other actual web site), and wanted to check up on other web sites for answering questions, or for checking up informations on other web sites (e.g. Wikipedia, or Library services etc.) I could open these sites by clicking on the Firefox icon on my desktop. Now, I only seem to be able to open one site, no matter how many times I click on Firefox icon; nothing happens. In order to open up other sites, I have to close down the actual open site and click up the wanted site by clicking on the F. icon.
    I would like to be able to open several windows and check upon information from various sources.
    What can I do to get the function back?
    Best regards,
    K. Henriksson

    Can you open a new window using File > New Window or {Ctrl + N} ?
    If not, do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Apps open then close when clicked

    Some of my apps open and then close real quick, unable to open at all, sometimes when I do an update ( of an unrelated app) then the programs will open when clicked? One of the apps are iBank. Any ideas.

    Buddy i am also  facing the same problem in my apple iphone4 i make try to sync all the apps through itune , and i think so that you solve your issue through this effort , just tell me after using this process

  • I just updated to Firefox 17.0.1 and now I can't click on a bookmark to open it or open new tab when clicking new tab button.

    In FF 17.0.1 I have several bugs to mention. I am only able to open bookmarks by right clicking them and selecting Open In New Tab from the drop down menu. I am unable to open a new tab by clicking on the new tab button or by clicking open new tab from the FF drop down menu at top of browser. Also, none button work in FF, such as Home, Back, Forward, or refresh. This is so aggravating!!

    After I posted this, I restarted with add ons disabled and it worked..deleted a cpl of addons for compatibility checking and that fixed it.

Maybe you are looking for