Event triggers transaction launch

Hi All,
I had searched for launching of a transaction at the trigger of a event but of no avail. So i finally decided to post a new thread.
My requirement is,
I have a button in the UI on the click of which GUI(screen) related to the transaction of the CRM system to be displayed.e.g., Let us consider "CRMD_ORDER" is the transaction.
Other requirement is similar to the earlier one, except that the transaction is that of another system, for e.g. a transaction belonging to BI system at the trigger of another button.
I kindly request for a early reply on this.Do let me know if you need further details.
Regards,
Harish P M

Hi Gayathri,
Where and what code u used.is it like this.
METHOD EN_ONCONFIRM.
data: lr_navigation type ref to if_crm_ui_navigation_service.
standard SAP code
lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
CHECK lr_navigation IS BOUND.
lr_navigation->navigate( iv_link_id = 'Z_CRMD_ORDER' ).
ENDMETHOD.
check one more thing if in event handler any other outbound plugin has been called please comment it out.for example
*gr_window->call_outbound_plug( 'detailToEmpty' ).
it will navigate to DetailToEmpty outbound plugin. If somthing like this is there please comment that code also.
Regards
Gaurav

Similar Messages

  • Using iCal event triggers to launch application

    We've been trying to use iCal to autolaunch render clients for Cinema 4D. So we've set it up to trigger at the time of the event (6pm) and launch the C4D network render client. What is bizarre is that it works perfectly for about a week.... and then it stops launching the app at the event. We still get iCal alerts on our iPhones saying that the 6pm Render Client is launching. But it ceases to launch. If we delete the event (and future events) and recreate it... it works again for about a week. Then it goes back to the same problem of not launching. This issue exists on all our machines (dozen or so) and has been an issue in both 10.9.x and 10.10.x. We weren't using this method prior to Mavericks. It appears to be a bug in iCal. Anyone else seen this and possibly have a workaround?

    Maybe the following can help: http://www.javaworld.com/javaworld/javatips/jw-javatip127.html?

  • 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

  • Invoking Transaction Launcher in Event Handler

    Hi,
    My requirement is to invoke transaction launcher on click of a button. I am invoking transaction launcher using the following code in my event handler.
    DATA : lr_navigation TYPE REF TO if_crm_ui_navigation_service,
    lr_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
    CHECK lr_navigation IS BOUND.
    lr_navigation->navigate( iv_link_id = 'LOGICAL_LINK_ID' ).
    Now, the transaction launcher is invoked with click of a button. However, this requires me to assign logical link to navigation bar profile and make it visible to the business role I am using. Meaning that, this logical link will appear on the navigation bar which I dont want. If I make this invisible for the business role, then the above code does not work.
    Is there any solution for this ?
    Regards

    Hi,
    If you are trying to launch an URL based Transaction using Tx launcher on button click. This code will help. You can write it in the Event handler of the button.
    DATA: lr_data_collection   TYPE REF TO if_bol_bo_col,
            lr_ltx_val_node      TYPE REF TO cl_bsp_wd_value_node,  
            lr_ltx_data          TYPE REF TO crmt_ic_ltx_id_desc.                                        
        CREATE DATA lr_ltx_data.
        CREATE OBJECT lr_ltx_val_node
          EXPORTING
            iv_data_ref = lr_ltx_data.
        CREATE OBJECT lr_data_collection
            TYPE
              cl_crm_bol_bo_col.
        lr_data_collection->add( lr_ltx_val_node ).
        lr_ltx_val_node->if_bol_bo_property_access~set_property(
                  EXPORTING
                      iv_attr_name = 'LTX_ID'
                      iv_value  = 'xxxx' ).
        lr_ltx_val_node->if_bol_bo_property_access~set_property(
                  EXPORTING
                      iv_attr_name = 'DESCRIPTION'
                      iv_value  = 'xxxxxx' ).
        me->view_manager->navigate( source_rep_view = me->rep_view
                                data_collection = lr_data_collection
                                outbound_plug   = 'xxx' ).
    Before that you need to create a component usage of component UICMP_LTX and create a navigation link to be used to pass to the outbound plug.
    Regards,
    Masood Imrani S.

  • How do I create a new Work Center for the transaction launcher and links

    Hi
    The requirement here is for me to find out if I can create a new Work Center that will contain up to 6 assignment blocks and each block having either links to websites and BW reports, or triggers to R/3 applications via the transaction launcher.
    Can I do this purely through customising or do I need to create a new view using BSPs? If I can do it through customising please could I have a few pointers to what component I would need to use/copy?
    Regards
    Declan

    Hi Robert,
    Thanks again for taking the time to reply.
    Just so I understand, if I want to show a work center I need to link it to a component / view? I think this was the original query - do I need a developer to create the view that contains the 6 blocks with their links to reports, transactions and websites? I think when I talk about blocks I mean 1 viewset containing 6 views. There is no SAP standard view that would suit my requirements is there? Even if the work center had 8 views, I can always hide the two views in configuration.
    After the developer has created the view, I then reference that component in the target Id in the define logical links section of my work center.
    If my understanding is right, then it follows that it is not possible to create a user specific work center without some development.
    Is this correct?
    Cheers
    Declan

  • 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 launcher not working for custom business role in WEB UI

    Hi Experts,
    we have maintained a link for activity reports in web Ui which triggers a program Z_CRM_TIME_REPORT . we have maintained the logical links and assigned them to the custom business role. when we run the program in SE38 in GUI its working fine but we are facing the problem when we click the link in WEB UI we get a different screen related to BP and not the activity report.Kindly suggest what are the configuration need to be tested.
    Thanking you,
    Deepa

    My guess would be that the parameter stated in the logical link (navigation bar customizing) that you use is incorrect. This should be the name of the transaction launcher definition you have maintained.
    Otherwise, check the transaction launcher wizard to see that the report is maintained correctly.
    Hope this helps.
    Regards,
    Pieter Rijlaarsdam

  • Transaction launcher not working for custom business role

    Hi Experts,
    I am facing a very weird problem where the transaction laucher define for BOR transaction is working for one business role(Z business role Customized one) but its not working for other business role (Z business role).
    to emphasize further we have the code:-
    case ls_attributes-object_type.
        when lc_z23 or lc_z25.
          lv_logical_link = lc_ZITISU.
        when lc_BUS2000115.
          lv_logical_link = lc_ZITERP1.
        when others.
          lv_logical_link = lc_ZITERP2.
      endcase.
      l_if_navigation = cl_crm_ui_navigation_service=>get_instance( me ).
      IF l_if_navigation IS BOUND .
    Navigate to transaction launcher using link id
        l_if_navigation->navigate( iv_link_id = lv_logical_link ).
      ENDIF.
    in this the logical link is is lc_ZITISU whenever this BSP application is called from both the business roles but in  one the window opens up for BOR transaction whereas when we login again using different business role the code is the same as given above. I mean the sam logical link id is used and navigated to but window is not opening for transaction launcher as it happens for the previous business role.
    Request your help to resolve this issue.
    Thanks,
    Rajwin

    Hi,
    I tried by applying the PFCG role id of business role which was working to the business role id of the one for which it wasn't working and then try testing whether the transaction launcher is triggering. But the transaction launcher screen is still not opening even after doing this.
    Probably there's something else too which is causing the problem. Request your inputs on this,
    Thanks,
    Rajwin

  • Transaction launcher  - URL transaction and parameter

    Dear Experts,
        I need to pass the confirmed BP's address as a parameter to an URL transaction. How would I achieve this? My URL is http://maps.google.com
    Thanks & Regards,
    Kanthimathi

    Hi,
       We faced a similar situation. You can pass parameters to an external website in the query string. But you cannot do that with the classic transaction launcher config.
    You would need to write javascript code to achieve this on the 'confirm' button event handler code.
    Hope it helps!
    Thanks,
    Sudipta.

  • 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

  • Transaction Launcher - External URLs

    Hello,
    I've created a link to an external URL using transaction launcher and the actual link itself works fine, but I have a couple small issues that I'd like to fix if anyone has any advice:
    First, I have it set to launch the URL in a new window, and the window pops up behind the Webclient.  Is it possible to have it pop up on top?
    Second, once the user clicks this link, in the webclient itself, they're taken to a screen that says:
    The object you have selected is starting in a new browser window. You can continue working normally in the current application. However, you may have to navigate back to the page you were working on.
    ...and then they have to click the back button to return to the screen they were on before they clicked the link.  Does anyone know how to keep the web client on whatever screen the user was already on and just launch the link in a new window without having it navigate anywhere else?
    Thanks!

    Hi TOM,
    If your requirement is to open some URL say google.com etc in a now window, then there are only 2 ways
    1) Use Transaction Launcher
    2) Use PopUp Window.
    1) If you use transaction launcher, and created the link in your direct link group then on click of the link, the URL will open in new window but you cant avaoid the message that you get in the current window. Also, if users POPUP Blocker is ON, user will never come to know why the new window has not launch.
    2) This is very simple and straight forward approch for opening URL. However, POPUP windows in WEB UI are modal windows, so say on click on a button on Account Overview Screen, i open google.com in a popup then unless i close this popup , i can not work on the account overview screen .  However, you can see the account overview screen as it is and you can resume back when the popup is closed. Also you can define the even handler on close event of pop up so you can pass the data to & fro between the webclient view and the pop up.
    to open some extrenal URL in a PopUp , You will need to create a blank view and attach it to a window. In .htm file of the view, you can use  tag IFRAME and call your external URL here.
    I have done this to open a dotNet application through web ui and it works excellently !!
    Hope its helpful.
    Thanks & Rregards
    Suchita
    PS : the popup blocked problem will still be there however, it flashes a message like pop up blocker is ON in case of using popup window

  • Exit from transaction launcher

    Hello, Guru!
    With transaction launcher we open bsp-application. We want to create button for navigate from this bsp-application to other
    bsp-application that will run not in transaction launcher(for example account overview)
    How to create this button?
    Edited by: Vladimir Shilov on Oct 7, 2010 4:52 AM

    Hi,
    I believe you know how to create a button and assign an event to the button click.
    Now when the button is clicked, an event is raised and the eventhandler method would be called within the controller class.
    Inside this method you need to call the BSP application you intend to call. Here also I'd like to know whether these BSP Applications are created  by you and whether or not they are part of BSP WD Component Workbench.
    Regards
    Prasenjit

  • List events triggered

    Hi,
    How can i list all the events triggered in system during a transaction.
    Actually i want to know the event triggered during webui account creation in CRM server.
    I tried SWELS and SWEL, but was not able to get it.
    Regards
    Vikash.

    Hi,
    May be you can try with SWEC also..
    Regards,
    sirisha

  • How to find Event Triggering place in SAP.

    Hello,
    By looking at a developed Workflow. How do we find out the triggering point code written in SAP transaction. Is there something like WHERE USED LIST to find out the locatoin of Event triggering point?
    Please assist.
    Thanks,
    JM

    The other possibility(I Think) is that if the workflow is started by using a raising a event then I think you cna find the respective program name in the SWEL txn, by selecting the respective event name and BOR .
    1. Execute txn SWEL.
    2. Specify the create date and time and then Execute (F8).
    3. Select the BOR and event name and click display.
    4. On the new ascreen at the bottom you can find the program name, copy the program name and then navigate to Se38 txn and open the mainprogram  in display mode and try to search the program by using the keyword EVENT.
    It will display the point and location from where the event is raised...

  • Event triggering sources

    Hi Friends,
    Is there any way to check the sources of event triggering? event trace is not thr..
    Regards
    Dev

    hi,
    From your post what i understood is, you don't have a event being triggered or captured even though you ran the event trace during your transaction.
    If you are trying to initiate a work flow with respect to triggering of events and if you don't have any events you need to either of two ways.
    1) Message control--> whenever your transaction you can assign the work flow for every success or failure message
    2) Change pointers or change document objects:
    trigger the work flow whenever there's a update in the tables CDHDR and CDPOS.
    Regards
    Sharath

Maybe you are looking for