Rightclick and context menu functionality in SBO 2004

hi guys...
how to capture the right click event and the context menu event. I have seen the right click example in the SBO 2005 examples but how to get that functionality in SBO 2004, there r no SAPbouiCOM.ContextMenuInfo and SBO_Application.RightClickEvent
thanx in advance..
regards,
Vasu..

Hi,
I don't think you can achieve this in the 2004 version as it was an entirely new feature in the 2005A SDK.
Regards,
Owen

Similar Messages

  • ALV: Right Button Click and Context Menu

    Hi Experts,
    I have to implement an ALV which should act on a right button click and show a context menu.
    Is this possible? I found only events for "on_double_click" or "on_link_click" and is it possible to show a context menu?
    Thanks in advanced.
    Best regards,
    Markus

    Hello Markus
    The relevant events are:
    CONTEXT_MENU_REQUEST
    USER_COMMAND
    Have a look at my sample report ZUS_SDN_ALV_CONTEXT_MENU_1.
    *& Report  ZUS_SDN_ALV_CONTEXT_MENU_1
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="910750"></a>
    *& Thread: ALV: Right Button Click and Context Menu
    *& Flow logic of screen 100 (no screen elements; ok_code = GD_OKCODE)
    *&    PROCESS BEFORE OUTPUT.
    *&      MODULE STATUS_0100.
    *&    PROCESS AFTER INPUT.
    *&      MODULE USER_COMMAND_0100.
    REPORT  zus_sdn_alv_context_menu_1.
    DATA:
      gd_okcode        TYPE ui_func,
      go_docking       TYPE REF TO cl_gui_docking_container,
      go_splitter      TYPE REF TO cl_gui_splitter_container,
      go_cell_top      TYPE REF TO cl_gui_container,
      go_cell_bottom   TYPE REF TO cl_gui_container,
      go_grid1         TYPE REF TO cl_gui_alv_grid,
      go_grid2         TYPE REF TO cl_gui_alv_grid,
      gs_layout        TYPE lvc_s_layo.
    DATA:
      gt_knb1          TYPE STANDARD TABLE OF knb1,
      gt_knvv          TYPE STANDARD TABLE OF knvv.
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
            IMPORTING
              e_row
              e_column
              es_row_no
              sender,
          handle_context_menu_request FOR EVENT context_menu_request
                                                     OF cl_gui_alv_grid
            IMPORTING
              e_object
              sender,
          handle_user_command FOR EVENT user_command OF cl_gui_alv_grid
            IMPORTING
              e_ucomm
              sender.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_double_click.
    *   define local data
        DATA:
          ls_knb1      TYPE knb1.
        CHECK ( sender = go_grid1 ).
        READ TABLE gt_knb1 INTO ls_knb1 INDEX e_row-index.
        CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
        CALL METHOD go_grid1->set_current_cell_via_id
          EXPORTING
    *        IS_ROW_ID    =
    *        IS_COLUMN_ID =
            is_row_no    = es_row_no.
    *   Triggers PAI of the dynpro with the specified ok-code
        CALL METHOD cl_gui_cfw=>set_new_ok_code( 'DETAIL' ).
      ENDMETHOD.                    "handle_double_click
      METHOD handle_context_menu_request.
    *   define local data
        DATA: lt_fcodes    TYPE ui_funcattr,
              ls_fcode     TYPE uiattentry,
              ls_func      TYPE ui_func,
              lt_func      TYPE ui_functions.
        "   Inactivate all standard functions
        CALL METHOD e_object->get_functions
          IMPORTING
            fcodes = lt_fcodes.
        LOOP AT lt_fcodes INTO ls_fcode.
          ls_func = ls_fcode-fcode.
          APPEND ls_func TO lt_func.
        ENDLOOP.
        e_object->disable_functions( lt_func ).
    "   Add new functions
        e_object->add_separator( ).
        CALL METHOD e_object->add_function
          EXPORTING
            fcode = 'XD03'
            text  = 'Call Transaction'.
        CALL METHOD e_object->add_function
          EXPORTING
            fcode = 'DETAILS'
            text  = 'Display Details'.
      ENDMETHOD.                    "handle_context_menu_request
      METHOD handle_user_command.
    *   define local data
        DATA:
          ls_knb1   TYPE knb1,
          ls_row    TYPE lvc_s_row,
          ls_col    TYPE lvc_s_col.
        "   NOTE: in case of CL_GUI_ALV_GRID the functions of a context menu
        "         are handled in method USER_COMMAND.
        CHECK ( e_ucomm = 'XD03'      OR
                e_ucomm = 'DETAILS' ).
        CALL METHOD sender->get_current_cell
          IMPORTING
            es_row_id = ls_row
            es_col_id = ls_col.
        CASE e_ucomm.
          WHEN 'XD03'.
            READ TABLE gt_knb1 INTO ls_knb1 INDEX ls_row-index.
            SET PARAMETER ID 'BUK' FIELD ls_knb1-bukrs.
            SET PARAMETER ID 'KUN' FIELD ls_knb1-kunnr.
            CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
          WHEN 'DETAILS'.
      "       NOTE: only for the sake of simplicity the event handler method
            "             is called
            CALL METHOD lcl_eventhandler=>handle_double_click
              EXPORTING
                e_row  = ls_row
                sender = go_grid1.
          WHEN OTHERS.
        ENDCASE.
      ENDMETHOD.                    "handle_user_command
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    START-OF-SELECTION.
      SELECT        * FROM  knb1 INTO TABLE gt_knb1
             WHERE  bukrs  = '1000'.
    * Create docking container
      CREATE OBJECT go_docking
        EXPORTING
          parent                      = cl_gui_container=>screen0
          ratio                       = 90
        EXCEPTIONS
          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 splitter container
      CREATE OBJECT go_splitter
        EXPORTING
          parent            = go_docking
          rows              = 2
          columns           = 1
    *      NO_AUTODEF_PROGID_DYNNR =
    *      NAME              =
        EXCEPTIONS
          cntl_error        = 1
          cntl_system_error = 2
          OTHERS            = 3.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Get cell container
      CALL METHOD go_splitter->get_container
        EXPORTING
          row       = 1
          column    = 1
        RECEIVING
          container = go_cell_top.
      CALL METHOD go_splitter->get_container
        EXPORTING
          row       = 2
          column    = 1
        RECEIVING
          container = go_cell_bottom.
    * Create ALV grids
      CREATE OBJECT go_grid1
        EXPORTING
          i_parent          = go_cell_top
        EXCEPTIONS
          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.
    * Set event handler
      SET HANDLER:
        lcl_eventhandler=>handle_double_click         FOR go_grid1,
        lcl_eventhandler=>handle_context_menu_request FOR go_grid1,
        lcl_eventhandler=>handle_user_command         FOR go_grid1.
      CREATE OBJECT go_grid2
        EXPORTING
          i_parent          = go_cell_bottom
        EXCEPTIONS
          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.
    * Display data
      gs_layout-grid_title = 'Customers'.
      CALL METHOD go_grid1->set_table_for_first_display
        EXPORTING
          i_structure_name = 'KNB1'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_knb1
        EXCEPTIONS
          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.
      gs_layout-grid_title = 'Customers Details (Sales Areas)'.
      CALL METHOD go_grid2->set_table_for_first_display
        EXPORTING
          i_structure_name = 'KNVV'
          is_layout        = gs_layout
        CHANGING
          it_outtab        = gt_knvv  " empty !!!
        EXCEPTIONS
          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.
    * Link the docking container to the target dynpro
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = syst-repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          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.
    * NOTE: dynpro does not contain any elements
      CALL SCREEN '0100'.
    * Flow logic of dynpro (does not contain any dynpro elements):
    *PROCESS BEFORE OUTPUT.
    *  MODULE STATUS_0100.
    *PROCESS AFTER INPUT.
    *  MODULE USER_COMMAND_0100.
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.  " contains push button "DETAIL"
    *  SET TITLEBAR 'xxx'.
    * Refresh display of detail ALV list
      CALL METHOD go_grid2->refresh_table_display
    *    EXPORTING
    *      IS_STABLE      =
    *      I_SOFT_REFRESH =
        EXCEPTIONS
          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.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE gd_okcode.
        WHEN 'BACK' OR
             'END'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
    *   User has pushed button "Display Details"
        WHEN 'DETAIL'.
          PERFORM entry_show_details.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  ENTRY_SHOW_DETAILS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM entry_show_details .
    * define local data
      DATA:
        ld_row      TYPE i,
        ls_knb1     TYPE knb1.
      CALL METHOD go_grid1->get_current_cell
        IMPORTING
          e_row = ld_row.
      READ TABLE gt_knb1 INTO ls_knb1 INDEX ld_row.
      CHECK ( syst-subrc = 0 ).
      SELECT        * FROM  knvv INTO TABLE gt_knvv
             WHERE  kunnr  = ls_knb1-kunnr.
    ENDFORM.                    " ENTRY_SHOW_DETAILS
    Regards
      Uwe

  • Open iviews in new window from detailed navigation context menu function

    hello,
    when we click in the detail navigation menu and in the context menu (because many of ours users are used to right click to open a link in a new window on the internet) on the functionnality "open in new window", the start page is always display instead of the corresponding iview ...
    could you tell me if there is a configuration into the portal to :
    1- suppress the function "open in new window" from the context menu in the detailed navigation !
    2- make the iview displayed into the new window really the iview desired !
    best regards,
    Olivier.

    Hi Olivier,
    The frist part is very precise. Not possible. Period. The reason is that the links are calling JS and not directly calling a http target.
    About the second part: Within the Light Framework, you create a Light Detailed Navigation. And in this case, the links are direct http links. So with that, you have what you want.
    For the Light Framework see http://help.sap.com/saphelp_nwce10/helpdata/en/43/0174a642406db7e10000000a422035/frameset.htm and around.
    Hope it helps
    Detlev

  • How to configure Goto context menu function on the web?

    We are running a web template on IE browser.  After the report run successfully, left click on any key figure column, we can see Goto context menu, from here, we can go to detailed report (e.g. from the current Cube level to more detailed ODS level).  However we find this jump from cube level to ODS level (Goto context manu) works on our QA system other than DEV system.  
    These stuff were configured by SAP consultants who left our company one year ago, if anyone knows how to make the Goto context menu works by drilling down from cube level to ODS level, please let us know and we are really appreciated!

    dear Bhanu,
    We figured out the problem, it is because we click Goto then select "Display Documents" which yields a 400 error, then go back to click Goto, pick up the target link we want and it yield the error.  After we hit F5 to reload the URL link, then directly select Goto our target, then it works fine!
    But one more question, under Goto context menu, we find four menu context items:
    1. Display Documents
    2. Documents for Navigation Status
    3. Our application target1
    4. Our application target2
    Select option 1 yields an error like mentioned above.
    Select option 2 pops up a new window with Key Figure selection box and a button called "Additional Functions", but seems go nowhere.
    Option 3 is setup in our system by using RSBBS like you suggested.
    Option 4 is not in RSBBS.
    Then our questions are for option 1, 2, and 4.  What are the functionalities of option 1 and 2, are these two standard web functionalities of BW web reports? and these two options always show up on the web no matter whether they work or not, right?  We are confused with option 4, it's not listed in RSBBS, then how come it show up?

  • Flash trapallkeys and context menu issue on Mac

    Hi
    Using Flash CS3 and AS2. There seems to be a conflict when trapping all keys and with the context menu on Mac. If I have a Flash movie with a single line of code:
    fscommand("trapallkeys", "true"); 
    When I open the resulting swf in either the standalone Flash Player or if I publish as a Mac projector, when I right-click I get the context menu appear as normal, but none of the menu items work - nothing is triggered and the menu disappears. This is even the case for "Settings..." and "About Flash Player..." items. If I open the swf in a browser or run the movie from the Flash authoring environment, then the context menu works - but of course the fscommand is not run in these circumstances.
    I've tried publishing for different Flash Player versions (down to 5!) and running in different Flash Players (a couple of version 9's and the latest version 10). 
    Has/can anyone get the fscommand to run AND the context menu to work together in the standalone Flash Player or the Mac projector? By the way, this only seems to be an issue on the Mac version - both work together on a Windows machine. 
    Any help at all would be greatly appreciated. 
    Thanks, Mark

    Hello Rohan,
    We had the same issues as you described and we're on NW 2004s patch 9.
    We applied the OSS note 909314 (as SAP suggested) and those two issues were resolved.
    Thanks,
    Elena.

  • Add "make unique symbol" button and context menu option

    I often want to make a variation of an existing symbol that is already positioned on the page. Unless I'm missing something, the steps are to duplicate existing symbol in the symbols palette, then replace the selected symbol instance, using the "replace symbol instance" in the Control Bar. Why not have a context menu option "make unique symbol" that automatically replaces the instance with new, unique symbol? I'd also like to see "Edit Symbol" added to the context menu. I'm hovering over the symbol, why should I have to go find the "edit symbol" button? I realize I can double-click the instance, but this does not work in all cases, such as when the direct select tool is active.
    If you've used SketchUp, you know where this idea comes from.
    Thanks,
    Ray

    No, I want to make a new, unique symbol of an existing symbol instance. If I choose "break link" from the context menu or symbols palette, the artwork is no longer a symbol and after editing, must converted to a symbol using the symbols palette. This requires several, unnecessary steps. At the very least, I'd like to see "Make new symbol" added to the context menu. If you're a SketchUp user you'll know exactly what I'm talking about. Seems incidental, but AI's method is inefficient.

  • Precalculated data and context menu

    Hi all,
    Ever since I started using pre-calculated data in my WAD report, the basic context menu and enhanced context menu (with all standard sap options like 'export to excel') has disappeared.
    Any suggestions on how to bring it back?
    I am on BW3.5.
    Many Thanks in advance.

    Hi,
    One possibility could be the read mode on the web template.
    Check the setting "Read Mode For Data" on the Web Template in the WAD.
    If it set to "Precalculated Data - STORED" or "Precalculated Data, If it exists - Hybrid" you won't be able to see the context menus" as it reads from pre-calculated data.

  • Control overlapping and context menu

    hi guys,
         I have this layout with a Panel, a Tab Container and a Datagrid. Basically the Panel is the parent of the Tab Container, and Tab Container is the parent of the Datagrid. My Datagrid has a context menu on it. But what happened was I can't get the context menu to show up because if I do right-click on the grid, the context menu from the Panel is what I'm getting, not the context menu I setup on the grid, but If I move the grid outside the panel its working good. Anyone encountered same thing? How will I surpass this overlapping?
    Best Regards!

    Hey Flex, thanks a lot! I should have known this is a bug on Flex 4 Panel right? Thanks for the tip, got it by setting the mouseEnabled=true on the Panel and on the custom Panel Skin as well.
    Best Regards!

  • Flexibile UI and context menu questions

    I would like to give the user the possibility to change the “Look & Feel” of the KM through the flexible UI and also i need to change the context menu configuration? For example I would like the subscription to be open not from the “Details” context menu.
    is it possible?

    Hi Erez,
    this is possible. Start your investigations from the LayoutSet used by your KM iView (System Administration - System Configuration - Knowledge Management - Content Management - User Interface - Settings - Layout Set). From this you can navigate for example to the CollectionRenderer or ResourceRenderer, wherever you want to change something. From this you can drill down to the CommandGroup used. CommandGroups themselves contain other commandgroups or single commands. Drill down this composite pattern to the command(group) you would like to change and add or remove command where you like to.
    Some advice: Before changing the standard groups/renderer/layoutsets, create an "advanced copy" of a layout set, fill in this set within your KM iView and make the changes on this deep copy of the original object; by this, you won't kill any (working) standard implementations...
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Tree Control  and context menu

    Hello,
    I created a tree with a menu. But the menu is not displayed on right click of a node .... Well I can miss something...
    Anybody have an idea for help me ?
    Best regards

    Hi Aurélien,
    This feature is not yet supported. Nonetheless, starting with SP13 you will be able to connect context menus to any ui element in the same way as it is the case in 7.10 with the limitation that context menu inheritance between ui elements along the ui element hierarchy not supported in SP13.
    Best regards,
    Thomas

  • ACROBAT 9 Service packs and Context Menu hidden features

    Hello.
    My name is Sergio Bonfiglio. Some years ago I bought a CS4 WEB Premium suite with Acrobat 9 included.
    While I'm Italian, I decided to buy an English version of the suite (I'm bi-lingual) for compatibility problems with tutorials and so on.
    Recently I had to re-install the suite because of a RAID problem, onto a my newly re-formatted PC.
    I did it successfully, but I'm experiencing some problems.
    1. It seems impossible to install the standard Acrobat 9 service packs. They simply refuse to install. Acrobat 9 included in my CS4 is heavily bugged. The OCR recognition always crashes after few pages of work.
    2. Some voices in the Explorer right-click menus are blinded, there is no caption (text) appearing. The lines are blank, while if I click on these "empty" voices, some Acrobat features do start, like the aggregation of multiple PDFs and so on.
    Because part of my job is the transcription of documents - especially rare books - I badly need the OCR function working well.
    Please help me to resolve these problems.
    It is awful to have some "blnided" voices in the right-click menu, and it is severe problem not getting the OCR text of a document.
    I'm using Windows 7 PRO.
    Thanks for any help.
    Sergio Bonfiglio
    Italy

    The simple answer is that your Acrobat was never installed properly for whatever reason. Run the cleaner, reinstall:
    Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs
    Mylenium

  • Context Menu for 7.x iview with 0ANALYZER_PATTERN

    We created a custom template copying 0ANALYZER_PATTERN to ZANALYSIS_PATTERN in an attempt to add the export to .csv functionality along w/ other enhancements.  I noticed that in the context_menu web item the web parameter to "Export to .csv" is set ON..however the option does not show up in when executing the 7.x iview along w/ many others. 
    1. What impact does the context menu web parameter settings have on the 7.x or 2.x/3.x iviews? Having difficulty trying to predict the behavior.
    2. Can some please explain the connection between the Web Template and the iview version behavior?  You can create 2 seperate iviews one that uses the 7.x setting and another that uses the 2.x/3.x setting and both behave completely different. 
    The reason I am asking, is to manipulate our custom template that will use the 7.x iview to include some specific functionality that was there in the 2.x/3.x iveiw and no longer there in the 7.x iview...specifically the ability to export to .csv.
    thanks in advance for any input.
    best,
    -ravi
    Message was edited by: Ravi Patel

    QUESTION 1. What impact does the context menu web parameter settings have on the 7.x or 2.x/3.x iviews? Having difficulty trying to predict the behavior.
    ANSWER 1. The context menu web item allows you to turn off and on parameters within a 2004s BI Web Application. When you update this property, it should update the template. To test this, create a new web application from scratch and put a table and context menu web item in there. Check on the context menu parameters you want to see. Save the web application and run it. Since this is a new web application, you can ensure that you aren't using cached settings and are testing the functionality.
    QUESTION 2. Can some please explain the connection between the Web Template and the iview version behavior? You can create 2 seperate iviews one that uses the 7.x setting and another that uses the 2.x/3.x setting and both behave completely different
    ANSWER 2: The 2.x/3.x iViews are to launch BI Web Applications built with the old Web Application Designer. The 2004s iViews allow you to launch applications built with the new web application designer. Keep in mind the connection strings are different. Within 3.x, the format is TEMPLATE_ID=0ADHOC, whereas within 2004s, the format is TEMPLATE=0ANALYSIS_PATTERN, so the command has changed from TEMPLATE_ID to TEMPLATE.

  • New Bitmap missing from context menu after installing photoshop

    After installing photoshop CS6 from CD onto Windows 7x64; my context menu > New > bitmap is no longer available.  registry settings are intact and I've used Bridge ro reassociate .bmp with mspaint but the option still does not appear.  The installation of photoshop is the only change to the computer in several months.
    I can workaround by creating new txt files and changing the extension but this adds a step to a (non photoshop related) workflow that's been in place and worked well for years.

    I don't know why Photoshop would kill the system default entry for new bitmap - possibly because it has associated itself with that file type.
    First thing to look at - start Adobe Bridge CS6, go into the Edit - Preferences - File Type Associations dialog, and see if you can re-associate MSPAINT.EXE with the BMP format.  That may correct the issue, but I can't say for certain as I don't want to try it here and change my own setup.
    I don't use the New context menu functionality for making new bitmaps myself, but when I looked to see what shows up in my New context menu, I found this:
    Choosing the IrfanView BMP File entry led to this:
    If you can't recover the old functionality via the Bridge settings, it may be that you can install the freeware viewer IrfanView and have it associate itself with the BMP file type.
    -Noel

  • Creation of Custom context menu in CL_GUI_TEXTEDIT

    Hello all,
    I need to develop a custom context menu in the Text Editor.
    I am using the <b>CONTEXT_MENU</b> event of the class
    <b>CL_GUI_TEXTEDIT </b>for the same.
    It is giving a short dump with an exception 'empty_obj' in the method
    <b>CL_CTXMNU_MGR=>CREATE_PROXY</b>.
    Please help.

    Hello Tejas
    The following sample report ZUS_SDN_TEXTEDIT_CTXMENU shows how to trigger context menus in text editor. Please note that the editor must be set <b>enabled</b>.
    If you inactivate subroutine <b>SET_REGISTERED_EVENTS</b> the new context menu function will no be displayed. Thus you need to <b>register</b> the event for context menu handling.
    *& Report  ZUS_SDN_TEXTEDIT_CTXMENU
    *& Flow logic of screen 100.
    *      PROCESS BEFORE OUTPUT.
    *       MODULE STATUS_0100.
    *      PROCESS AFTER INPUT.
    *       MODULE USER_COMMAND_0100.
    REPORT  ZUS_SDN_TEXTEDIT_CTXMENU.
    TYPE-POOLS: cntl.  " Types for Controls
    DATA:
      gd_okcode      TYPE ui_func,
      go_docking     TYPE REF TO cl_gui_docking_container,
      go_textedit    TYPE REF TO cl_gui_textedit,
      gd_name        TYPE thead-tdname,
      gs_header      TYPE thead,
      gd_langu       TYPE thead-tdspras,
      gt_lines       TYPE STANDARD TABLE OF tline.
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS:
          handle_context_menu
            FOR EVENT context_menu OF cl_gui_textedit
              IMPORTING
                menu
                sender,
          handle_ctxmenu_selected
            FOR EVENT context_menu_selected OF cl_gui_textedit
              IMPORTING
                fcode
                sender.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_context_menu.
        CALL METHOD menu->add_function
          EXPORTING
            fcode       = 'MY_FUNC'
            text        = 'My Function'
    *        ICON        =
    *        FTYPE       =
    *        DISABLED    =
    *        HIDDEN      =
    *        CHECKED     =
    *        ACCELERATOR =
      ENDMETHOD.                    "handle_context_menu
      METHOD handle_ctxmenu_selected.
        CASE fcode.
          WHEN 'MY_FUNC'.
            MESSAGE 'My function selected from ctxmenu' TYPE 'I'.
          WHEN OTHERS.
        ENDCASE.
      ENDMETHOD.                    "handle_ctxmenu_selected
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    PARAMETERS:
      p_pspnr    TYPE prps-pspnr.
    START-OF-SELECTION.
    * Get the text object
      gs_header-tdid = 'LTXT'.  " long text
      gs_header-tdspras = syst-langu.
      CONCATENATE syst-langu p_pspnr
          INTO gs_header-tdname.
      gs_header-tdobject = 'PMS'.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
    *     CLIENT                        = SY-MANDT
          id                            = gs_header-tdid
          language                      = gs_header-tdspras
          name                          = gs_header-tdname
          object                        = gs_header-tdobject
    *     ARCHIVE_HANDLE                = 0
    *     LOCAL_CAT                     = ' '
    *   IMPORTING
    *     HEADER                        =
        TABLES
          lines                         = gt_lines
        EXCEPTIONS
          id                            = 1
          language                      = 2
          name                          = 3
          not_found                     = 4
          object                        = 5
          reference_check               = 6
          wrong_access_to_archive       = 7
          OTHERS                        = 8.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL SCREEN '0100'.
    END-OF-SELECTION.
    *&      Form  SET_REGISTERED_EVENTS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM
    set_registered_events .
    * define local data
      DATA:
        lt_events      TYPE cntl_simple_events,
        ls_event       TYPE cntl_simple_event.
      TYPES: BEGIN OF cntl_simple_event,
           eventid TYPE i,
           appl_event TYPE c,
         END OF cntl_simple_event.
      ls_event-eventid = cl_gui_textedit=>event_context_menu.
      APPEND ls_event TO lt_events.
      ls_event-eventid = cl_gui_textedit=>event_context_menu_selected.
      APPEND ls_event TO lt_events.
      CALL METHOD go_textedit->set_registered_events
        EXPORTING
          events                    = lt_events
        EXCEPTIONS
          cntl_error                = 1
          cntl_system_error         = 2
          illegal_event_combination = 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.
    ENDFORM.                    " SET_REGISTERED_EVENTS
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'MAIN_0100'.
    *  SET TITLEBAR 'xxx'.
      CLEAR: gd_okcode.
      IF ( go_textedit IS NOT BOUND ).
        CREATE OBJECT go_docking
           EXPORTING
             parent                      = cl_gui_container=>screen0
    *        REPID                       =
    *        DYNNR                       =
    *        SIDE                        = DOCK_AT_LEFT
    *        EXTENSION                   = 50
    *        STYLE                       =
    *        LIFETIME                    = lifetime_default
    *        CAPTION                     =
    *        METRIC                      = 0
            ratio                       = 90
    *        NO_AUTODEF_PROGID_DYNNR     =
    *        NAME                        =
          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 go_textedit
          EXPORTING
    *        MAX_NUMBER_CHARS       =
    *        STYLE                  = 0
            wordwrap_mode          =
                c_textedit_control=>wordwrap_at_windowborder
    *        WORDWRAP_POSITION      =
            wordwrap_to_linebreak_mode =
               c_textedit_control=>true
    *        FILEDROP_MODE          = DROPFILE_EVENT_OFF
            parent                 = go_docking
    *        LIFETIME               =
    *        NAME                   =
          EXCEPTIONS
            error_cntl_create      = 1
            error_cntl_init        = 2
            error_cntl_link        = 3
            error_dp_create        = 4
            gui_type_not_supported = 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.
        CALL METHOD go_textedit->set_text_as_r3table
          EXPORTING
            table           = gt_lines
          EXCEPTIONS
            error_dp        = 1
            error_dp_create = 2
            OTHERS          = 3.
        IF sy-subrc <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        CALL METHOD go_textedit->set_enable
          EXPORTING
            enable            = cl_gui_cfw=>true
          EXCEPTIONS
            cntl_error        = 1
            cntl_system_error = 2
            OTHERS            = 3.
        IF sy-subrc <> 0.
    *     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      PERFORM set_registered_events.
      SET HANDLER:
        lcl_eventhandler=>handle_context_menu     FOR go_textedit,
        lcl_eventhandler=>handle_ctxmenu_selected FOR go_textedit.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE gd_okcode.
        WHEN 'BACK'  OR
             'EXIT'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Regards
      Uwe

  • SAP Netweaver 2004  [and] I.E 7  CONTEXT Menu not working??

    Hello there,
    Installed: SAP NetWeaver 7.0 (2004s) SPS 15
    For some reason when I use Internet Explorer7 browsing the SAP Netweaver Portal. At the Content Administration>>RightClick on <Portal Content> is not working?
    Like I mean, I am unable to open up the tiny context menu where you get the options: [New, Open, Refresh, Change ID]
    But, when I use Firefox 3 everything is working fine. I can see the context menu opening up, but not in the case of I.E 7.
    I got the latest Java SDK installed:  j2sdk1.4.2.18
    Please note: I previously had j2sdk1.4.2.09 which didnt fix the above issue. So, I thought upgrading the Java SDK would fix my issue.. but, it did not.
    My O.S: Windows XP SP2.
    Any of you had this issue in the past ?  Found solution?
    Can you please let me know?
    Thanks
    Dino.
    Edited by: Dino R. on Jul 24, 2008 12:46 AM
    Edited by: Dino R. on Jul 24, 2008 12:46 AM
    Edited by: Dino R. on Jul 24, 2008 12:53 AM

    Hi Dino,
    The problem is not with the SAP NetWeaver 7.0 (2004s) SPS 15 but with the browser Internet Explorer7. We have also faced this problem then we installed IE 6. And it started giving the context menu.
    regards,
    Swati

Maybe you are looking for

  • Acrobat Pro 9.5 crashing with Multiple prints

    I have Acrobat 9.5 pro on multiple machines in my office, when trying to print to ANY printer, even to another PDF, if I select more than 200ish pages (8 1/2x11-simple prints), it crashes Adobe Acrobat. This happens wether its a binder or a portfolio

  • How to find all the tables by feild value in oracle

    Hi ... I have a requirement to find the tables in a particular schema(suppose DEMO) by Field value.. Ex: suppose in a  schema called DEMO  i have the tables.......T1,T2,T3,T4,T5.. all the above tables have the name column.. now i wan to know the tabl

  • Firefox wont show transparent images as transparent

    Firefox worked perfectly until a week or so ago it wouldnt open. So I switched to Google Chrome for awhile and missed firefox. haha. So I uninstalled and reinstalled the latest version. But now, Firefox will not display transparent images correctly,

  • New Java Programming Student Needs Help

    Hey everyone, I've just started taking a Java programming class at Penn State University, and I have had some prior experience with programming, i.e. C, C++, HTML, SQL. However, this will be my first attempt at Java. I know there are a lot of similar

  • Cannot connect to RemoteApp (VDI mode) but can connect to full VDI desktop

    Title says it all. I have a multiple server RDS farm. Gateway, license and broker are concentrated on one server. Several session hosts and they all work fine. They host full desktop sessions. The problem started when we started to move to VDI (poole