Calling a transaction launcher from a button

Hi experts,
I'm trying to call a navigation launcher from a button.
So i created a button and the event. In the event i copied the code from class : CL_CRMCMP_N_MAINNAVIGATI0_IMPL / method do_handle_event. (see code below)
But when this is executed, the system doesn't navigate to the logical link.
Do you have any idea why ?
How can i do some troubleshooting ?
How can i call the transaction launcher ?
Thanks for your help.
Regards
DATA : lr_navigation    TYPE REF TO if_crm_ui_navigation_service,
         lr_entity        TYPE REF TO cl_crm_bol_entity,
         lr_clipboard     TYPE REF TO if_crm_ui_bol_clipboard.
  TRY.
      lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
      lr_navigation->navigate(
        EXPORTING
          iv_link_id         = 'ZMYLOGICAlLINK'
*          iv_data_collection =     " Business Object Collection Interface
    CATCH cx_root.
  ENDTRY.

Hi,
I had the same problem. As workaround I added the logical link to the navigation bar and now the transaction launcher call from the button also works.
It seems as the logical link has to be used in the navigation bar profile in order to allow for a call from a workspace. It does not really solve your problem if you don't want the call in the navigation bar, but maybe you can live with this.
Greets,
Kai Lienemann

Similar Messages

  • How to call external application (transaction launcher) from event method

    Hi all
    Can somebody tell me which program lines to put into an event handler method in a view controller to get an external application called. I intend to define the link to the external application in the Transaction Launcher. But I cannot find any instructions on how to call the Transaction Launcher from my event handler method. I do not want to launch the application from the navigation bar, ONLY via a link in a list of invoices in a table view, and I want to press the invoice number to get an external application called to display the invoice. My event handler method gets called fine enough, but I have no clue which program lines to put into the method to pass on the call to the Transaction Launcher
    Best regards
    Arne Thage / MarchIT / Denmark

    hi,
    check class CL_CRM_UI_LTX_NAVBAR_PARAM.
    call method : CREATE_PARAMETER_OBJECT with parameters
    IV_LINK_ID     Importing     Type     CRMT_UI_LOGICAL_LINK_ID                                                                                Logical Link ID
    IV_PARAMETER     Importing     Type     CRMT_UI_LINK_PARAMETER                                                                                Link Parameter
    RV_RESULT     Returning     Type Ref To     IF_BOL_BO_PROPERTY_ACCESS                                                                                BO Attribute
    I think it should work but have never done myself.
    Best Regards
    Pankaj Kumar

  • ICWC: Transaction Launcher from a Navigational link

    Hi All,
    I have successfully created a new navigational bar navigational link and able to call an R/3 Transaction via BOR..
    Now my question is:: <b>is it possible to call an R/3 Transaction via BOR from a simple navigational link ( not from navbar navigational link ).</b>
    note: while creating a transaction launcher for an R/3 Transaction by wizard it will ask for the navbar id, for which the transaction is to be called.
    Thank You,
    sudeep..

    Hello Sudeep,
    I am working on CRM 5.0 ( transaction launcher profile is attached to the navigation bar profile, unlike CRM 4.0 ). I want to launch a BOR transaction and have configured the transaction launcher accordingly. But still the understated error comes up: -
    404   Not Found
    SAP J2EE Engine/7.00
    The requested resource does not exist.
    Kindly throw some light on the matter. Also please do send across the steps you followed to successfully call an R/3 transaction via BOR.
    My email id is : [email protected]
    Your help would be greatly appreciated & rewarded.
    Kindly do help.
    Regards,
    Khushboo

  • Calling sign off coomand  from screen button

    hi ..i have developed a screen ...in that without using menu bars or status bar ..i need to create buttons and do all the required operations like save ,back,exit,lod off etc ..
    i have a scree and have kept a button for exit
    inside sy-ucomm i have written leave program..it works fine ..but i have 2nd  screen ...so  i have buttons to  go to second screen so after going to seodnf screen and coming back when i give lave program it goes to the second screen .....what

    no i have not done like that ..just see the code..
    MODULE USER_COMMAND_0100 INPUT.
      case sy-ucomm.
        when 'SALES' or 'S'.
          call transaction 'ZVA021'.
        when 'PURCHASE' or 'P'.
          call transaction 'ZME28'.
        when 'EXIT'.
    leave program.
    endcase.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    the first time exit works properly but when i go to secodn screen by calling the transactions only ..it is not working ...again it goes to the aclled transactions...

  • As I run or called the editor sqlplus from a button?

    Como llamar la ejecucion del editor de sqlplus desde un boton? Que el boton ejecute esto: c:\oracle\app\products\10.2.0\server\BIN\sqlplus.exe
    Message was edited by:
    user647378
    Message was edited by:
    user647378
    Message was edited by:
    user647378

    I used google translate to clarify the question (I hope at least) for the dummies like me (:, who don't speak any Spanish, and this is the result.
    Subject: As editor sqlplus run from a button?
    Message:
    Calling the execution of the editor sqlplus from a button? The button run this: c: \ oracle \ app \ products \ 10.2.0 \ server \ BIN \ sqlplus.exe

  • Problem with calling we02 transaction code from web dynpro

    Hello everyone,
    I want to skip the initial screen of we02 tcode for this i have created the URL, provided the idoc number and
    used the function code DYNP_CODE=ONLI for execute button.
    DATA : FINAL_URL TYPE STRING.
    CONCATENATE 'host' '.port' '/sap/bc/gui/sap/its/webgui?~transaction=we02 DOCNUM-LOW='
                ls_itab-docnum ';CREDAT-low=' ' ' ';DYNP_OKCODE=ONLI'
                 into FINAL_URL.
    I am trying to pass the idoc number internally and click on execute button...so that the end user can see the idoc display directly, rather than clicking the execute button manually. But, unfortunately the function code for execute buttong (ONLI) is not working. In WE02 tcode, provided input values are appeaing correctly but not triggering the execute button.
    Please help!
    Thanks in advance...

    Hi Rohit.,
    Did u tried my previous reply.,  Use., & ~OKCODE=ONLI .,
    http://host:8000/sap/bc/gui/sap/its/webgui?sap-system-login-basic_auth=X&sap-client=800&sap-language=EN&transaction=we02&okcode=ONLI
    tis will work.,
    Thanks & Regards
    Kiran

  • Call SAP Transaction Variant from Iview

    Hello,
    I know we can pass parameters into a SAP transaction via the 'Application Parameters', but this does not always work especially for complicated selection screen options.
    Can the actual transaction variant ID be passed instead?
    Regards
    Mr.T

    Hi,
    You may refer this
    Passing Variant's value to a transaction iview
    Thanks
    Prashant

  • Possible to call a transaction from a planning book using a macro button?

    Hi All,
    Is it somehow possible to call a transaction using a macro button in the planning book? Also, the current selection should be passed as input parameters to the transaction.
    In my example, I am trying to run the transaction /SAPAPO/MC90 - Release to Supply Network Planning from the Demand Planning  Planning Book/Data View. This way if planners need to change forecasts mid month for specific selections, they can easily transfer to SNP without having to go out of interactive planning.
    Thank you,
    Maria

    Hello Maria,
              It's possible to call a transaction from a planning book using a macro button.
    What you can do is ..... Create a function module and inside it use the command "Call Transaction Tcode"  (ABAPer can do this) to call ur specific transaction. And this module can in turn be called from your macro. Please find the below link which explanis how to call a function module from a macro. Do let me know if you need more information on this.
    Calling a function module from APO Macro
    Regards,
    Siva.

  • Using the transaction launcher to call a BOR method to display a PDF

    Hello gurus,
    I have created a PDF icon and an onclick action to open a pdf, that displays on every row of an assignment block in the actions column, but I do not know the technical process to determine how to get a PDF from the IXOS system from the line selected. (even if I know it depends on an ID attribute of that assignment block) I want to to call a transaction launcher with the url for the pdf in the IXOS that has an ID that identifies which line in the assignment block the user has clicked the pdf icon for (does that make sense?)
    In CRM 4, in the collection factsheet assignment block, the link was coded into an XSLT which is then displayed in the GUI and you would have a clickable link for a pdf file in a row in a table. That link would be as follows:
             <xsl:variable name="ev_key">SAPEVENT:?OBJTYPE=<xsl:value-of select="attributes/OBJTYPE"/>&amp;OBJKEY=<xsl:value-of select="@KEY"/>&amp;LOGSYS=<xsl:value-of select="attributes/LOGSYS"/></xsl:variable>
                 <a href="{$ev_key}"></a>
    This will get the file in IXOS and display it, in CRM 4. In CRM 7, the link is an icon in every line of an assignment block.
    Here are some questions I have now for the functional side in the meantime:
    1) Can we fetch the PDF in IXOS for each line of an assignment block and have it open? If so, how? Transaction launcher, function modules (like ARCHIVOBJECT_DISPLAY) in the OPTA package? (the package for all IXOS related function modules..)
    2) Which URL should I call with the transaction launcher? a URL link to the PDF on the IXOS system?? or sapevent:xxx?
    3) Do we have to configure a transaction in the IMG to be launched with the attributes listed there? Do we have to link it to any classes/ objects?
    4) Do we have to have the code to the logical link dynamically to call the right PDF for each table line? Is it right to put this code in my event handler?? Usually transaction launchers are just in the nav bar.....
    5) Are there any existing examples of this or a similar functionality/ logic that I could refer to, preferably in CRM 7 WebUI?
    6) Do you have any code to just display a PDF in a new window? Or prompt a download?
    One possible way I thought of would be for me to have a logical link defined in the IMG for the transaction launcher, and have the attributes defined for my BOR object that I would call, and pass it different attributes (eg. objtype, objkey, logsys...) and then return the PDF and display it in the UI in a new browser window by itself. (There is a BOR method for my BOR object named  'display_pdf'!!!!)
    What do you think would be the optimal solution here? Does my theory of calling a BOR object with a transaction launcher to display a PDF make ANY sense whatsoever???
    Please do not hesitate to propose any potential solution. Any partial answers/ links to wikis/ other threads, anything would be much appreciated.
    Thank you in advance.
    Best regards,
    Jonathan Laplante
    Edited by: Jonathan Laplante on Jul 2, 2011 4:50 AM

    Hi Any help on this....I am still awaiting the response.
    Requirement: My requirement is to launch the SE38 transaction on WEBUI using transaction luncher tool and set the parameter on the selection screen.
    Issue: The issue is that I am able to lunch the transaction but unable to set the parameter
    Steps Performed:
    I want to list down all the steps I performed to launch an SE38 transaction using transaction launcher on the WEBUI
    1) Defined logical system in tcode CRMS_IC_CROSS_SYS
    -The logical link looks like this
    http://<server>:<port>/sap/bc/gui/sap/its/webgui/!?transaction=IC_LTXE&okcode=ICEXECUTE ?sap-client=300
    2) Defined URL & paratemeter wherein the request method is "GET", opted for NON-BSP URL
    URL link here is
    http://<server>:<port>/sap/bc/gui/sap/its/webgui/!?transaction=SE38&okcode=ONLI
    -Note: My selection screen okcode os ONLI*
    -The logical system ref is provided here
    3) Defined the parameter by giving the screen name like for SE38 selection screen name is "RS38M-PROGRAMM"
    4) Configured the transaction launcher of type B - URL type and provided the reference of the URL ID, choose the relevant parameter from the drop down and have hardcoded the value, cheked the box "Save Data in Activity Clipboard
    5) Added this in the NAvlink/Bus Role etc
    6) Now in the handler class of the TL the code looks like this:
    IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW
    __gdc ?=
    cl_crm_ui_data_context_srv=>get_instance( gv_view_controller ).
    __value
    =
    'ZC_TEST'.
    add_parameter(
       iv_name =
    'RS38M-PROGRAMM'
    iv_value = __value ).
    However, after performing the above steps I am unable to set the parameter. Please suggest where am I missing out on. An early response would really be appreciated.

  • Transaction type called by ITS - Transaction Launcher

    Hello guys,
    In the ICWC in CRM 5.0 what transaction type could we call with ITS by Transaction Launcher?
    For example, I know that we can call transaction like ppoma_crm, bp, is01, but if we defined Z transaction type in the path SPRO » CRM » Transactions » Basic settings » Define Transaction Types,  could we call this transactions by ITS in Transaction Launcher?
    Could you take off me this doubt?
    Best Regards,
    Mary

    Hi
    The transaction launcher allows to connect to any remote CRM ERP or R/3 transaction as well as URLs to a navigation bar. Thus, the remote transactions can be maintained directly in IC WebClient.
    Any link entry of the navigation bar that is supposed to call the transaction launcher needs a navigation bar entry that points to a launch transaction ID. Here the details of the transaction to be launched are described: the launch transaction type, the type of object to be called the method (like create, display, change) and possibly parameters to be passed to the transactions. These settings can be configured using the transaction launcher wizard.
    Transaction launcher supports two types of transaction
    a.     Launching pages of People Centric CRM
    b.     Launching BOR transactions of CRM or any remote SAP system
    Path is IMG&#61664;CRM&#61664;Interaction Center WebClient&#61664;Basic Functions&#61664; Transaction Launcher&#61664; Configure Transaction Launcher (Wizard)
    Business Transaction Profile (Name should be in Capital)
    Three standard buttons in the navigation profile navigate to the views of the CRM business transactions
    a.     Interaction Record: - stores communication related data of communication channels.
    b.     Sales Document: - includes quotations and order status and stores all sales items the customer wants to order.
    c.     Service Document: - It represents the service aspect of a phone call.
    The business transaction profile is controlling which CRM business transaction type is linked to the navigation bar buttons.
    You can assign the interaction record and the sales or service transaction types in two different ways:
    a.     A sales and/or service document will only be created if the agent presses sales and/or service in the navigation bar and makes entries to these documents.
    b.     The sales and/or service documents will be saved as individual documents. Interaction record, sales, and service documents are stored by separate document IDs and are connected by the data flow.
    Path is IMG&#61664;CRM&#61664;Interaction Center WebClient&#61664;Business Transactions &#61664;Define Business Transaction Profiles
    Hope this helps
    Regards
    Rekha Dadwal

  • Calling from java buttons in an applet

    ok i made this program here and now i'am tryin to call certain certain classes from each button. i can't figure out how to do that.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class JDemoGridLayout extends JApplet
    JLabel greeting = new JLabel("SAMPLE", JLabel.CENTER);
    Font HeadlineFont = new Font("Helvetica",Font.BOLD, 24);
    private JButton b1 = new JButton ("Button 1");
    private JButton b2 = new JButton ("Button 2");
    private JButton b3 = new JButton ("Button 3");
    private JButton b4 = new JButton ("Button 4");
    private GridLayout layout = new GridLayout(6,6,6,6);
    JLabel personalGreeting = new JLabel("");
    Container con = getContentPane();
    public void init()
      greeting.setFont(HeadlineFont);
    personalGreeting.setFont(HeadlineFont);
    con.add(greeting);
    con.setLayout(new FlowLayout());
    setLayout(layout);
    add(b1);
    add(b2);
    add(b3);
    add(b4);
    }Edited by: javastudent101 on Mar 4, 2009 7:12 AM

    javastudent101 wrote:
    ok i made this program here and now i'am tryin to call certain certain classes from each button. i can't figure out how to do that.You don't call classes from buttons. What you can do is add a java.awt.event.ActionListener to each button. This ActionListener's actionPerformed() method will get called whenever the button is clicked. An example:
    MyActionListener listener = new MyActionListener();
    JButton button = new JButton("Do My Taxes");
    button.setActionCommand("DoTaxes");
    button.addActionListener(listener);
    JButton button2 = new JButton("Take a Shower");
    button2.setActionCommand("TakeShower");
    button2.addActionListener(listener);
    private class MyActionListener implements ActionListener {
       public void actionPerformed(ActionEvent e) {
          String command = e.getActionCommand();
          if ("DoTaxes".equals(command)) {
             // Whatever processing is necessary to do taxes
          else if ("TakeShower".equals(command)) {
             // Whatever it takes to take a shower.
    }See [How to use Buttons|http://java.sun.com/docs/books/tutorial/uiswing/components/button.html] for more information.
    Alternatively, you could use an Action specific to each JButton. Once you understand ActionListeners, it's pretty easy to understand Actions.

  • Calling Transaction Launcher in custom popup window

    Hello Experts,
    I am facing a issue. I have to call transaction launcher in custom popup window.
    It is working when i am calling transaction launcher in main window. but it is not working when i am trying to call transation launcher in popup window.
    I have written the code to call the transaction launcher in DO_PREPARE_OUTPUT method of popup view.
    Please let me know do i need to do anything extra? I am using CRM 6.0.
    Thanks in Advance
    Rajeev Singh.
    Edited by: Rajeev Singh on Feb 9, 2012 1:08 PM

    Hi Manas,
    I implemented a PopUp component some time ago for this task. There was a tutorial written for something similar here on SDN the link is: https://wiki.sdn.sap.com/wiki/display/CRM/OpeninganURLthroughpop-upfromWEBUIofCRM2007
    In the PopUp you do a followup navigation to the transaction you would like to call:
    data: lr_navigation       TYPE REF TO         if_crm_ui_navigation_service.
    lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
      lr_navigation->navigate( iv_link_id         = 'your_logical_link'
                               iv_data_collection = lr_col ).
    lr_col is a BOL collection of any kind of navigational data you need, can be kept empty as well.

  • ECC BSP page display from CRM through Transaction Launcher

    Hi Experts,
    We have a BSP application in ECC and want to launch the page from CRM using transaction launcher. The page is already launched from a different link. Is it possible to use the same transaction launcher from new link to navigate to the same page?
    Thanks,
    JC

    Hello JC,
    Yes, it is possible . You have to create new work center link or Direct Link for the existing transaction launcher.
    Transaction Launcher
    Regards,
    Ashik

  • Problems with transaction launcher

    Hi all,
    I need to launch a BOR object, using Transaction Launcher, from a custom button into account activities view on the CRM UI. These are the steps that I have done:
    - create a new Transaction Launcher object
    - associate this obiect to a Logical Link in transaction CRMC_UI_NBLINKS
    - add a new button, with EH code:
      op_todisporders( ).
    - add a new OP into the view, with code:
      CALL METHOD cl_crm_ui_descriptor_obj_srv=>create_bor_based
        EXPORTING
          iv_bor_object_type  = 'BUS2032'
          iv_bor_object_key   = '440000000003'
          iv_logical_system   = 'TECCLNT500'
          iv_ui_object_type   = 'ZWRAPPED_BUS2032'
          iv_ui_object_action = 'B'
        RECEIVING
          rr_result           = lv_descriptor_object.
      CREATE OBJECT lv_data_collection TYPE cl_crm_bol_bo_col.
      lv_data_collection->add( lv_descriptor_object ).
      lr_window ?= me->view_manager->get_window_controller( ).
      lr_window->call_outbound_plug(
      iv_outbound_plug = 'TODISPORDERS'
      iv_data_collection = lv_data_collection ).
    - add the outbound plug to the window, with code:
      fire_outbound_plug(
      iv_outbound_plug = 'TODISPORDERS'
      iv_data_collection = iv_data_collection ).
    - add the OP into the window runtime repository, and into the view component interface
    - add OP mapping into CRMC_UI_NBLINKS, calling the previously created logical link
    - add my component BP_BPBT into transaction CRMS_UI_TLINK (my new outbound plug does not appear, so I added it manually)
    When I click on the button, the following exception appear:
    CX_BSP_WD_INCORRECT_IMPLEMENT - Define NavigationalLink TODISPORDERS for source view BP_BPBT.AccountActivities
    For what I know, I don't have to define any logical link....
    Can you help me to solve this issue?
    Points will be awarded.
    Thanks, regards
    Fabio

    In the window's outbound plug, I called FIRE_OUTBOUND_PLUG instead of NAVIGATE. Then I got an exception, asking me to create a navigation link in BP_CONT_MAIN. I created. Now it is working.

  • How to call a business graphics from a SAPGUI program?

    Dear experts,
    I'm new to WebDynpro for ABAP. I was able to create a working WebDynpro application that shows a simple bar-chart. Nice. What I would like to realize is a bar chart as a pop-up when I click a button on an ALV table element. This ALV table is in the SAPGUI and not WebDynpro (and it shouldn't be). I searched a lot but only found people that talk of 100% WebDynpro applications. So I wonder if a hybrid is possible like embedding the graphics in a control container on a SAPGUI screen or such. I need to somehow submit the required data for the chart from the calling program.
    Is this feasible or do I need to go for the GFW that SAP has marked as obsolete?
    Thanks!

    Hi,
    You can create a transaction for WDA application and call that transaction on click of button ( but you cannot show it as popup) : You can check this for reference: How to pass data to Web Dynpro ABAP from ABAP - Part 2
    You can use CL_GFW classes to display graphs or cl_gui_chart_engine.. ref: Creating charts in Simple ABAP Programs - Code Gallery - SCN Wiki
    Hope this helps u,
    Regards,
    Kiran

Maybe you are looking for