ALV: Context Menu: Standard Functions: Copy to clipboard: How to throw?

How can I throw the standard function "copy to clipboard"
CL_GUI_ALV_GRID=>MC_FC_LOC_COPY <&LOCAL&COPY>
If I try to throw it with the method
<ref to cl_gui_alv_grid>->set_user_command(
EXPORTING i_ucomm = cl_gui_alv_grid=>mc_fc_loc_copy )
, it doesn't work.
This standard function is a feature of every context menu of an ALV grid control.
It is possible to inactivate it via the method
<ref to cl_gui_alv_grid>->disable_functions
, so it must be the right function code.
I visited that the "application server is working"-logo
(the blue waving-water-picture in the upper right corner of
every SAP GUI window) doesn't move if I use this function via
context menu.
So possibly there is no server-turn-around between the
presentation server an the application server when using this
function. The application server only catches an event
cl_gui_alv_grid_base=>evt_copy_clipboard_failed <34>
on copy malfunction.

Hi,
there is a simple method to put something to the clipboad. I have done it a couple of times and it works fine.
Data Definitions:
DATA: BEGIN OF clippboard OCCURS 0,
        line(172) TYPE c,
      END OF clippboard.
cnt1 type i.
ABAP Example:
          refresh clippboard.
          append xx_outtab_pos-prodh to clippboard.
          CALL METHOD cl_gui_frontend_services=>clipboard_export
            IMPORTING
              data = clippboard[]
            CHANGING
              rc   = cnt1.
In this example the content of the field xx_outtab_pos-prodh has been put to the clipborad and can be inserted anywhere by pressing Ctrl/V.
If you want to restore it from the clipboard, there is a m
ethod called cl_gui_frontend_services=>clipboard_import. It works the same as the clipboard_export.
Best regards
Peter

Similar Messages

  • I can't use the right-click function on websites (i.e. Yahoo! Mail) because Firefox's context menu is in the way. How can I fix this?

    I can't use the right-click function on websites (i.e. Yahoo! Mail) because Firefox's context menu is in the way.

    Tools > Options > Content : JavaScript > Advanced > Allow Scripts to: [X] "Disable or replace context menus"

  • CL_SALV_WD_UIE_TEXT_VIEW- set_menu( ) : ALV CONTEXT MENU

    Hi,
    can you please tell / guide me how the method set_menu of the ALV api classes works. I am try to create a context menu for a cell editor in ALV.
    This method accepts string as importing parameter. I have tried supplying a string as parameter but nothing happens.
    Have anyone solved this problem ? any work around also welcome.
    Kind regards
    Senthivel

    hi..
    FYI
    Whenever you create the object , you should also pass its properties. In below statement text is the property for textview.
    lo_text_view->set_text_fieldname( 'your desired text ').
    //ly  for progress indicator elements -
    set_percent_value_fieldname( 'attibute name")
    //ly for buttons----
    set_text_fieldname('buttonname')
    Here bolded texts are properties name of their corresponding elements.
    Okay...
    Regards
    Srinivas

  • 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

  • Why does the drag and drop context menu always popup when dragging files between windows explorer instances ?

    I have fusion 7.1.1 on an iMac 27 inch retina. 32GB ram of which 6GB assigned to Fusion and 2 cores. Windows 7 Home Premium installed. Mostly working fine but a few funnies. First and foremost: Whenever I drag and drop between instances of windows explorer, I get the little pop-up context menu offering me Copy Here / Move Here etc.  etc. I have never known Windows to ask me what I want to do when I drag stuff - why is this happening ? I have scoured the net for info on this and found nothing. Please note that this is NOT associated with the Start Menu (For which I found a zillion solutions to whatever that problem is). Also, It is NOT to do with stopping drag & drop and Context menus: yes, I know how to do that but that is NOT what I'm asking to get rid of. This may not be related but I have also had to set my Internet Properties / Explorer settings / Launching-applications-and-unsafe-files to "Enable" to prevent every shortcut I create causing a "Do you want to run this ... ?" message every time I click on them. Doing this has caused WIndows 7 to turn into a finger-wagging safety-nanny glaring at me over its demi-lune spectacles.

    Ok ... fixed
    Here is the way http://forums.creativecow.net/thread/3/944828
    In your sequence, on the left most column you should see a V1 (left of the Lock Track button). Click that to make sure its highlighted, it allows you to drop video to the sequence.

  • Full screen in strobe player context menu

      hi,
         i want to add some extra features into strobe media player context menu like scale mode and full screen..
    var customContextMenu:ContextMenu;
                customContextMenu = new ContextMenu();
                 var videoFullMode:ContextMenuItem = new ContextMenuItem("FullScreen");
                customContextMenu.hideBuiltInItems();
                customContextMenu.customItems = [videoFullMode];
                videoScaleMode.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, onItemSelectmode);
                target.contextMenu = customContextMenu;
    i got fullscreen item in my context menu.. but i dont know how add code for it.. hw can i call fullscreen function from videoinfooverlay.as
    thank u

    sorry for not mention properly.
    I have installed real player.. and it is showing in ther browser swf file context menu [Download This Video To RealPlayer"]
    if any flv file, it is asking download video as popup. i would like to remove both.
    suggest me..
    Thanks,
    raja

  • Windows Context Menu

    Since installing CS3 the option to select Fireworks from the
    windows context menu has disappeared. Anyone suggest how to fix
    this one? It would have been good if there wa sa function in CS3 to
    claim the file extensions as Fireworks files.

    Bad news. You can't do that in pure Java. You will have to write a ContextMenuHandler dll, which is, by the way, a real pain in the a**, and integrate it with the windows explorer. Which means you will need to use Visual c++ / .net. Take a look at www.codeproject.com and search for the 'Total idiots guide to writing shell extensions' by Michael Dunn, it contains a great article on how to do it. The communication with java will be pretty annoing, too, you will most likely have to run your Java tool as a service and communicate via ports.
    As i said, it's a pain...

  • A code sample on context menu

    Context menu but I do not know how I can make it worked ...
    FORM on_context_menu_request USING i_object TYPE REF TO cl_ctmenu .
    *--Here you can add some logic to retrive what was clicked and
    *--decide what to add to the context menu
    CALL METHOD i_object->add_function
    EXPORTING
    fcode = 'UPDT'(200)
    text = 'Update Record'(204) .
    ENDFORM .
    How will I use this fcode?
    and where?
    Thanks.

    You can set the context menu fcode for a field in the screen painter. Look for property 'Context Menu form' in the properties.
    In your example below, the fcode set was request, and hence the form is called on_context_menu_request.
    As for the call_object function, a double click on the method name should take you to the method itself so you can figure out what is happening there?
    Sudha
    Message was edited by:
            Sudha Mohan

  • How to change default application in file context menu

    I know you can change the application that opens a file in the file;s info window (command i) and then double clicking the file opens it in that application. However the context menu still shows the same original default application. How to change what is shown as default in context menu?

    You can't. You can change the default app in Get Info which will change the first listed app in the context menu to that default app. How the context menu is built is not under user control.

  • How to avoid the dialogue when converting from context menu

    This is a follow-up to http://forums.adobe.com/message/2016146#443364 which was locked due to a bug.
    i would like to know how i can avoid the 'save as' dialogue when using the context menu to convert a word file to pdf using windows XP/acrobat 8/word 2007.
    so far, it always prompts me for the filename, which is annoying as it does not allow me to batch-convert several files and let the thing run its course.
    the solution provided by Steve in the other thread does not work - even if the plugin from word does not propt for a filename, it still does when triggered from explorer/context menu.
    so back to square one: how to avoid that dialogue when not opening word at all?
    cheers, thanks for any help. michael

    For a permanent change, START>PRINTERS>right click on Adobe PDF printer and select properties>General>Printing Preferences>Adobe PDF Settings. Under the settings tab, uncheck the box related to asking for a name. Pretty sure that is the location, but it may vary with version.

  • Your current internet security settings do not allow data copying to clipboard

    i get a message when i try to hit the Copy button at the end of the chat to try to copy the chat
    your current internet security settings do not allow data copying to clipboard
    how can i fix this

    thanks for the reply but i was wondering how do i edit javascript then and all and i was wondering if any of the steps require a restart for firefox

  • NW 2004s BI: performance issue on context menu in web application

    Hi BI-Gurus,
    Currently I am looking for a possibility to speed up the context menu within a web application.
    Therefore, queries have been created that should be accessible via BEx Analyzer and Enterprise Portal. In BEx Analyzer context menu of measures and characteristics appears quickly after right-clicking. However, it takes up to 12 sec to display the context menu in the corresponding web application for the initial call. The 2nd, 3rd,... call of the context menu is about two or three times quicker .
    Is there anybody out there who knows which parameters affect the call of the context menu in a web app and how to speed up in this case? Please note that I am working on a NW 2004s BI system with SPS12 installed.
    Thanks for your feedback.
    Regards
    Sascha

    NW04s Web Context Menu is slower than the 3.X, but it does not take 12 secs for me, more like 2-3 secs. Try deleting your browser cache and running the template again and see whether that makes any difference.
    The rendering is done on the front end side when the template is loaded all the required JS files are also downloaded (around 12 different JS files), depending on what other applications you have open that also will affect the time taken for this.
    Thanks.

  • Add to Adobe Bridge CC Context Menu

    How do I add DxO to the Adobe Bridge CC context menu?
    Thanks,
    Drew

    I figured out how to change the default program (which is good enough for me):
    From within Adobe Bridge CC
    Edit > Preferences {ctrl}{k}
    File Type Associations
    Canon Camera Raw (.crw, .cr2) (or Nikon, etc.)
    Click on the down arrow next to Adobe Photoshop CC
    Browse to and select:
    C:\Program Files\DxO Labs\DxO Optics Pro v8\DXOOpticsPro.exe
    The same instructions work for Adobe Bridge CS5.
    Message was edited by: DrewF

  • How do I create a context menu in the new ALV object model (cl_salv_table)?

    Hi,
    Does anyone know how to create a context menu (right click on line or field) in the new ALV object model (class CL_SALV_TABLE)?
    Thanks in advance
    Keld Gregersen
    PS: In the past we could use event CONTEXT_MENU_REQUEST in class CL_GUI_ALV_GRID, so it must be possible

    I don't think there's "any such animal" in the new class. I'm not 100% certain however but the new class is only useful for fairly simple display only type grids.
    There's no edit capability either.
    I'd stick with cl_gui_alv_grid until there's some decent extra functionality in the cl_salv_table class.
    It's fine for quick "bog standard" displays as it doesn't need a field catalog or any screens to be created by the user or developer  - but you pay a price for that in limited fnctionality.
    Cheers
    jimbo

  • Define F-Code for ALV Button & context menu for ALV table

    Hi,
    I have some Buttons in ALV Toolbar like for example 'copy row'. Is it in browser environment possible to assign f-code to the button? Like by pushing e.g. F4 the method for 'copy row' action is fired?
    Or additionaly, is it possible to define a custom context menu in alv table?
    Thanks in advance,
    Tan

    Hi Tan,
    This Functionality is working on..Pelase check this...
    Re: How to improve Web accessibility with Function keys
    Re: Hot key(Ctrl+F1) for More field help not working
    Re: GUI Status?
    For help..
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b951297a6d2d65e10000000a42189c/content.htm
    Cheers,
    Kris.
    Edited by: kissnas on Jun 21, 2011 11:46 AM

Maybe you are looking for

  • Re: Specifics for Interaction Center: Toolbar - Interaction Center WebClient - SAP Library

    Hi Sigrid, i have a problem with the 'Clear Interaction' button, In the account identification screen i confirm an account and there is a custom view which is used to confirm the appliance, After this process i am creating a service order through dir

  • SDO_BATCH_SIZE=1 returns more than 1 row??

    I've had so many problems w/ spatial queries that I have to rewrite into iterative programming. Even w/ that, I have problems: If I don't use the rownum <2 in the where clause, Ora returns back err# -1422 "exact fetch returns too many rows". Same pro

  • CRM Interfaces with R/3 programming

    Hello Experts, I am new to CRM programming in ABAP. Can anyone send me some example programs for interfaces, BADIs and BDOCs in CRM which can be used as a reference for integrating CRM with R/3 interface developments. Thanks Ricky

  • Original Receipt of online purchase will be emailed or mailed?

    Hi, I recently purchased a unlocked Phone from Apple online store and provided the shipping details. Will the receipt for the purchase will be emailed or delivered by postal mail to my billing address. Currently I am out of my city. If they send the

  • Windows 8.1 override for windows display language registry location

    Hi, I need to programmatically set the windows display language (control panel>language>advanced Settings) so that English (United States) is selected. Is there a registry key that I can set this to? I think it would be located here but not sure what