Context Menu Creation
Hello,
I have a to create a context menu, but the problem I have is that it has 150 tcodes to put in, I want to write a program in order to do it, does anybody knows how can I do it?,
Thanks!!!
Gabriel
Hi Rich,
Thanks again for answering,
I need to create the menu as it is created in tcode se43, dou you have any idea if I it can be done from an abap program?
I have the list of tcodes and the group of each tcode. For example:
On plain file I have the following:
ZGP1 ZTCODE11 DESCR11
ZGP1 ZTCODE12 DESCR12
ZGP1 ZTCODE13 DESCR13
ZGP2 ZTCODE21 DESCR21
ZGP2 ZTCODE22 DESCR22
ZGP2 ZTCODE23 DESCR23
The fist column is the group, the second is the tcode,
I wolud like to put this on a context menu...
Any idea?
Thanks,
Gabriel P.
Similar Messages
-
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 -
Problems with new start button right-click context menu
I have been unable to come up with a rhyme or reason to this problem.
For some reason the Windows 8.1 start button will no longer respond to a right-click. The context menu will not come up. You can see that the active window is no longer active because the border color changes. The start button works as
expected when left-clicking it.
I first noticed this on a brand new Windows 8 machine that I upgraded to Windows 8.1. The problem occurred while I was messing with trying to customize the default user profile. The next time I logged in with a new user account the start button
was broke. The system I was using was stripped down. It had NO additional software on it except the drivers and necessary associated applications, and all available Windows updates were installed. I chaulked it up to something I messed up.
Next, I reformatted 20 lab computers with Windows 8.1 Pro and joined them to a Server 2003 domain. Users have roaming profiles and folder redirection policies. The folder redirection policies redirect AppData, Documents, and Desktop to a folder
on the server and the contents of these folders are shared between Windows XP and Windows 8.1. The roaming profiles are unique and new. Thus far all users have only logged on to Windows XP so they have the version 1 profile and when they logon
to the Windows 8.1 box a new .v2 profile folder is created.
Today, we logged about 12 users into these individual machines for the first time and about 3 or 4 of them could not right-click their start button. Once the problem occurs, it never goes away regardless of what machine they log into. The only
way to solve the problem is to default the profile off the computer and delete the roaming profile folder off the server. The problem has reoccurred after this but I'm not sure what triggers it.
In addition, I have tried renaming the user's redirected application data folder and letting Windows 8.1 create a new one in case there was a conflict with a Windows XP setting. This did not resolve the issue.In my environment we had a network "Default User.V2" profile that we used with Win7 clients. Now, with Win8 and Win8.1 we've configured the clients to use V3 and V4 profiles (http://support.microsoft.com/kb/2887239/en-us).
That link is for the Win8 hotfix, which changes the roaming profile of users to .V3, but there's also one for 8.1 and it changes the profile folder to .V4.
Anyway, we have since deleted the Default User.V2 from our network. In testing the creation of .V4 roaming profiles with Win8.1, I've figured out a little more about the WinX folder. If I have a roaming profile and log into a Win8.1 computer
for the first time, the WinX folder is created as part of my profile during the "Hi, we're setting things up, many bright colors" spiel before you get to the Metro screen. However, when I log out, because the WinX folder is in the Local AppData, it doesn't
get uploaded to my roaming profile location. If I then log back into the same computer, everything is fine because that computer still has a local copy of my profile with WinX in the Local AppData. However, if I log into any other computer, the
WinX folder doesn't get created and I can no longer right click on the Start menu (until I copy it to my Local AppData on that computer).
So, it seems that when I first log in to a Win8.1 computer and go through the "Hi....etc etc....many different colors" startup, the WinX folder is created and will work on that computer, but if I log into another computer, it isn't downloaded as part of
my roaming profile or re-created. Also, if you have the GPO set to delete copies of roaming profiles off of the computer when a user logs out, I would guess that the WinX folder would then get deleted and when you log back in you'd have the same issue. -
How To Create Context Menu In Module Pool
Moderator message: do not offer points
hello guru's
Please help me regarding creation of context menu in MODULE POOL Programming.
pleaase send me link or procedure to create it.
<<text removed>>
waiting for reply
Edited by: Matt on Feb 20, 2009 3:13 PMDo a search first:
[link1|context menus;
[link2|http://help.sap.com/saphelp_nw04/helpdata/en/e2/5d3bb2e06411d295a900a0c94260a5/frameset.htm]
etc. etc. -
Keyboard shortcut for context menu
Hello all. I recently got a MacBook and it's the first Mac I've ever had. I'm a keyboard shortcut guy when I can be and one thing that's stumped me is using the keyboard to open up the context menu.
Does anybody know a keyboard shortcut for opening the context menu (ie Ctrl + mouse Click)?
If there isn't one, I would be happy to add a custom keyboard shortcut for it in the System Preferences. I've tried to do so but I'm doing something wrong because it isn't working. Here's what I've tried specifically:
1. For "All Applications" add Ctrl+Space for the Menu Title "Show Context Menu"
2. For "All Applications" add Ctrl+Space for the Menu Title "Open Context Menu"
Does anybody know the exact Menu Title for the context menu?
Help is much appreciated!The Keyboard Shortcuts are for menu items, not macro creation. What you want to do requires a third-party utility for programming keyboard macros such as iKey, QuickSilver, etc. You'll find these at VersionTracker or MacUpdate.
-
Web Services - UDDI Context Menu
Hi
I have been following the documentation on the creation of a web service and all was well until I wanted to pubish it. The documentation tells me to right click on the UDDI icon in the variants tab of the Virtual Interface and select publish.
However, I do not get a context menu appear.
Any ideas anyone? I'm on ECC6.
Cheers
IanHi,
you may want to try the wsdl4j api, provided by ibm. You can download it from ibm's site. This api provides the tools you need to get everything out of a wsdl file, like methods, in-parameters, out-parameters etc. Now, to completely create the remote call at runtime, you need to create the request and response datatypes at runtime, in case they are not primitive (could be java beans for example). If you know the way to do this, please make a post because this is as far as i have gone implementing a trully dynamic client. i don't know how to create and use new classes at runtime.
i hope i gave you some help -
NWDS New DC - Grey on Context Menu
Greetings:
Can someone please be of assistance with an issue I have run into as follows?
1) I imported a development configuration into NWDS.
2) when i right click on the custom SWCV to create a new DC.
3) the context menu is greyed and this was not the case initially when I setup the track.
I read several posts and notes that talks about the technology component not being available and the track under JSPM control, but I am not sure if either is my case. I am attaching screenshots of his this problem looks in NWDS.
DC creation is grey:
Modification is set to: No
Thanks,
TravisHi,
in NWDS, in the Component Browser there is a dropdown that is perhaps set to "All" in your case.
Could you please change it to Inactive ?
The SCs on which you can create DCs should be yellow coloured and not blue.
I hope this helps.
Cheers,
Ervin -
How to remove or hide toolbar context menu in visual studio IDE
Hi All,
Currently we are extending Visual studio and it's functionality.
As we know, we can have different categories of tool bars like standard, build, debug etc shown in pic -
or we can access the categories via - View Main Menu -> Toolbars
Basically My requirement is that, I don't want to show these options (Build, Debug, Debug Location, Layout, customize , Text Editor, Standard etc) shown in context menu or shown in submenu.
How can I achieve it ? Please advice.AFAIK, you can only customize it manually, but can't hide the builtin menus:
http://msdn.microsoft.com/en-us/library/vstudio/wdee4yb6(v=vs.100).aspx
or maybe you can try vsct:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/f3acc18c-b176-4f06-a8d1-cccff3d4bf7f/how-to-disable-and-enable-menu-commands-in-vspackage?forum=vsx -
Playlists missing but still in context menu
Macbook Pro 13" 2013 running Mavericks and latest versions of both Mavericks and iTunes.
This is a bit of a weird issue. At some point in the last few weeks iTunes decided to update itself from 7.0 despite the fact that I said NO every time the opportunity popped up. Then lo and behold, I open it one day and it's a newer version - fricking gremlins.
Anyway, after this update my library and playlists had disappeared. I figured I would just open a previous library, but for some reason the newest previous library was several months old and didn't have some playlists.
While it's not a major issue to remake those missing playlists, what's irritating me is that they're in the context menu when I right click. I can even add music to them. But I can't see the playlist. And when I add a song to one of these missing playlists, the "Show in Playlist" menu item doesn't list these missing playlists. The major problem is an overlap in names - an old playlist and a new replacement playlist with the same name and I'm accidentally adding to the old, not new.
Anyone have ANY idea what the heck is going on here?
As an addition, I have the old playlists on my phone (iPhone 4) still. I haven't synced the phone since this problem came up because it wants to erase everything on my phone.
Any help would be greatly appreciated, thanks!
bradYou aren't the only one. I did NOT upgrade to the latest Itunes version recently but upon entering Itunes today my playlists were all gone (and I spend a lot of time organizing playlists). Found a previous .itl (Itunes library file) and was able to save a lot of playlists but the .itl file was 6 months old so all updates made to playlists since then are gone. I may have lost more and am still determining loss but I really hate it when work is lost - I've been an Itunes user since it first came out and this is a regular experience.
Suggested update for Apple would be to create more historical .itl files (could be daily with user choices as to how many and naming conventions). .itl files can be big so there would have to be file reuse or some means to not overwhelm the user's computer with unused files. -
I have several dropdown lists in my bookmarks toolbar and would like to access the properties for some of the the items. This used to work fine. However, now, when I go to the list and place the cursor on a particular item, the context menu that is usually available on a right click disappears when I try to access one of the options. This is the menu that begins with Open. What can I do to regain this functionality? I really need the information in the Properties section. I'm using Firefox 3.6.8
Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
Also check the Mouse driver settings in the Control Panel. -
Right click on the mail list doesn't open the context menu any more.
Hi everybody,
Thunderbird stoped to show the context menu on the mail list recently. Right click just prints the crossing line. What the problem could it be?
Thanks anyone for any help.
Win 8.1 64
Thun 31.3.0''Nick532 [[#question-1037921|said]]''
<blockquote>
Hi everybody,
Thunderbird stoped to show the context menu on the mail list recently. Right click just prints the crossing line. What the problem could it be?
Thanks anyone for any help.
Win 8.1 64
Thun 31.3.0
</blockquote>
''Toad-Hall [[#answer-668503|said]]''
<blockquote>
Very odd.
Right click on email in list should open a drop down selection.
Usually a crossed line through something denotes that it is marked as deleted in an imap mail account.
* http://kb.mozillazine.org/Deleting_messages_in_IMAP_accounts
See if there is a conflict with an addon.
Restart Thunderbird in safe mode.
Help > Restart with addons disabled.
then perform the same test; right click on email in list.
Do you get the drop down, if yes, then one of your addons is causing the conflict.
You would have to disbale each in turn to locate which one is the problem.
Maybe the addon needs updating.
Report back on results.
</blockquote>
I have the same problem too. When i restarted with addons disablem problem dissapeared but when i switch to normal mode and disable all off the plugins and addons the problem still remains.
Please help. -
Cannot see context menu for XML messages with Safari and Google Chrome
Hi All,
I am unable to see Context menu with the option of Create, Edit, Delete etc. for KM messages. This problem persists with Safari, Chrome and IE9 browsers. This thing works fine on IE7 and IE8 browesrs.
On clicking History and Options buttondoesn't perform any action i.e. we cannot see the list of options when clicking on those. This problem also persists with the above mentioned browsers.
Also, with IE9 , I am unable to create New message when clicking on New button. The XML form doesnt open on the button click.
The portal version I am using is EP 7.0.
Can someone help me out with this?
Thanks a lot in advance.
Regards,
ArchanaHello Archana,
You should check the PAM to see if your browser is supported with your current EP verison.
http://service.sap.com/pam
Regards,
Lorcan. -
Enhance context menu in WAD 7.0
I need to enhance the context menu in a WAD 7.0 template. There a different approaches to do this in 3.5, but none of these work with 7.0.
The javascript function SAPBWAddToMenu is no more available rsp. visible and there is no command/parameter in the web item "context menu".
Any ideas how to implement it with 7.0?
Edited by: Wulf-Diether Betz on Feb 2, 2009 1:08 PMHi,
I am sorry but I think it is not possible in BI 7.0 at the moment.
Regards
Erwin -
Context menu's in Alv Report (Grid)
hello,
what i have done- i have created a ALV report by using the function modlue REUSE_ALV_GRID_DISPLAY.
what i want- When user clicks with Right mouse button on some cell.
context menu should get displayed. a list of menu should appear then user can select one of these options and eventually i'll on user command.
however i know the concept of context menu's and i have created context menu on screen elements in module pool.
but i have no idea whether these menu's can be created on ALV Grid.(simple ALv Grid----not ABAP OOPS)check the program BCALV_GRID_06, it gives a demo of context menu functionalty,
but it uses cl_gui_alv_grid -
Context Menu in BW Report Iview not opening after upgrade to Portal 7.3
Hi All,
We have a unusual problem that, the Context menu of the BW reports for options like filtering is not opening post Upgrade to Portal 7.3 for End users.
However, with Super Admin role, the Context menu opens for the BW report Iview.
I have tried giving the same permission that the Super Admin Role has on the BW Report Iview to the End users, still no success.
Any idea? Anybody faced same kind of problem?
Please revert for any more info.
BR,
UdayHi Uday,
This is really a shot in the dark since I have not done much with 7.3. Have you checked for UME actions that are assigned to the administrator but not the end user?
Best regards,
Duncan
Maybe you are looking for
-
Why Won't Mail Icon Stay in Dock Where I Place It?
on Mac G5 Power PC 10.5.8. My Mail icon keeps moving to the right most position on my dock (dock is at bottom of screen) and will only stay in dock while the Mail application is open. When I close Mail, the icon completely disappears. I want my Mail
-
Convert Native 16:9 SD to HD
Hello all, I have a production that was shot a while ago in SD, but it was shot in native 16:9 SD (non anamorphic). The client now needs the footage from this same production in HD because they are going to be running it on television. The TV Station
-
Interface mapping is not visible in receiver determination
Hi, I could not see interface mapping in my receiver determination in ID. I can see the message interface and receiver agreement in receiver determination my scenario is idoc to soap (SAP R3 to webservice) Thanks Ruban
-
3.1EA1: Split Document - IGNORE: OK.
In 3.1EA1 the "Split Document" feature isn't present. Normally if you right click on the tab at the top of the screen there's an option to split the document. Martin http://www.ClariFit.com http://www.TalkApex.com Edited by: Martin Giffy D'Souza on O
-
Ipad mini keeps showing apple symbol
My mothers ipad mini keeps going black and showing the apple symbol, no loading bar, repeatedly. We have tried resetting and rebooting, but it still keeps happening. Any advice please