Raise event from 3:d party application in iView

Hi, I have two iViews that should communicate with each other, one is a Web Dynpro app, the other is a 3:d party application not at all related to SAP.
The 3:d party app is hosted on a different server within the same domain as the portal.
My question: Can I make the 3:d party app raise an event so that the portal can forward data to the Web Dynpro iView?
The portal has the url:
http://saputv02.company-out.local:51300/irj/portal
And the 3:d party app:
http://s5721.company-out.local:8080/
I included this in a JSP page on the 3:d party app:
<script src="http://saputv02.company-out.local:51300/irj/portalapps/com.sap.portal.epcf.loader/script/optimize/js13_epcf.js?6.45000804"></script>
<script type="text/javascript">
          EPCM.raiseEvent( "urn:com.sap:BWEvents","BWiViewevent", "Raise this text", null );
</script>
But I get the javascript error message: Access Denied.
Is this possible to achieve?
Regards
Emil Sandin
     </script>

In other words, the 3:d party app sends an event like this:
<script src="http://saputv02.company-out.local:51300/irj/portalapps/com.sap.portal.epcf.loader/script/optimize/js13_epcf.js?6.45000804"></script>
<script type="text/javascript">
          document.domain = "company-out.local";
          EPCM.raiseEvent( "company-out.local","myEventName", "a text");
     </script>

Similar Messages

  • Trigger portal event from 3:d party application

    Hi,
    I have a Web Dynpro project with an iView containing a 3:d party application.
    This application posts data (a few MBytes) to an URL (the URL is configurable), and I want a Portal Event to be triggered whenever this data is posted. Is it possible? Or is there another way to do this?
    Regards
    Emil Sandin

    Hi, and thank you for your quick reply.
    Here is a more detailed desciption of the project:
    I have a Web Dynpro application which is supposed to use a 3:d party application to sign data.
    This 3:d party application isn't at all related to SAP. The 3:d party application uses a Java Applet.
    The 3:d party application works like this:
    1) Receive data
    2) Launch an applet
    3) The applet posts the data to some url. I can choose which url to post to by configuring the 3:d party application.
    The posted data can be a few MBytes.
    I don't know yet exactly how to implement this, but this is my plan:
    Include the Java Applet as an iView.
    The applet posts the signed data, and somehow this triggers a Portal/Client event that sends the signed data back to the portal.
    The portal handles saving the signed data.

  • How to call the RFC's from the third party applications or Non SAP applicat

    Hi,
    For calling RFC's from the wedynpro , SAP has provided the modeling concept.
    In the same way, if i want to access or call the RFC 's from the third applications or Non SAP applications what is the procedure and what is the methodoligy.
    As per my knowledge, we need to expose those RFC's as webservices . Then we must be able to acces in hetrogeous environment from any third party applications..
    Please revert back soon, It is very urgent.
    Regards
    Vijay

    Ayyappa Raj,
    Thanks for the reply.
    Please let me the detailed information for implementing.
    AS you said . I need expose the RFC's as webservice. This point is clear to me.
    2) Use tthe JCo to connect and create client proxy.
    Can u please elabrate the above point?
    If u have any steps created in the document or url to refer. Please forward it to me.
    Please forwar the document to this id "vijay00" in yahoo.
    AS the sdn is not allowing to give  the maill id i have given only the id details in yahoo.
    I am new to this procedure.
    Regards
    Vijay

  • Hey good day. i recently made a back up on my phone. then i took some pictures and videos. i accidentally restored the phone. some pictures and videos including pictures from my third party application were all gone. can i still have those back?

    hey good day. i recently made a back up on my phone. then i took some pictures and videos. i accidentally restored the phone. some pictures and videos including pictures from my third party application were all gone. can i still have those back?

    No. If you restored the device to an older backup, then the device was brought back to that date and time, which was before those photos were taken. When you restored the device, it deleted everything off the phone and replaced it with the earlier information.

  • Raise event from within process chain

    Is there some way to easily raise an event from within a process chain?  The only way I know to do this is to run an ABAP program that raises the event.

    Hi Shashank,
    sorry for the delay: I didn't notice your question. Try this way.
    1 - define ABAP Report Z_EVENT_RAISER (see sample code below)
    2 - define a variant for this Report (Event Name mandatory)
    3 - Call ABAP Report Z_EVENT_RAISER from within your Proces Chain.
    This should work
    Hope it helps
    GFV
    *====================================================
    *& Report  Z_EVENT_RAISER                                              *
    REPORT  Z_EVENT_RAISER                          .
    selection-screen begin of block parametri with frame.
    parameters:
      EVENT like BTCH1250-EVENTID obligatory,
      PARAM like BTCH1250-PARAMETER.
    selection-screen skip.
    selection-screen end of block parametri.
    CALL FUNCTION 'BP_EVENT_RAISE'
      EXPORTING
        eventid                      = EVENT
        EVENTPARM                    = PARAM
      TARGET_INSTANCE              = ' '
    EXCEPTIONS
      BAD_EVENTID                  = 1
      EVENTID_DOES_NOT_EXIST       = 2
      EVENTID_MISSING              = 3
      RAISE_FAILED                 = 4
      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.
    *====================================================

  • Raise event from a JPDK portlet

    Hi,
    I'm using iAS 10g, Release 10.1.2.0.2.
    I want to pass some parameters to a Discoverer portlet.
    Currently I've accomplished this through a Simple Parameter Form, but there are some limitations:
    -only 5 parameters
    -parameters cannot be dynamically loaded
    So the only solution I could think of is to create a JPDK portlet with a form where I enter the required parameters. The portlet has an event and some output parameters. Than map the event output to the page parameters.
    However, I don't know how to raise the event.
    Is there a way to accomplish that? Or can you point me in another direction than the JPDK portlet?
    Please advise.
    Thanks,
    Cristiana.

    i am not really sure but i remember that you cant interact with events in that version its available in 10.1.4 version
    how about creating page parameters on that page, then link it from anotherwhere by adding the parameters at the end of the url.

  • Invoke an awt event from outside the swing application

    Is it possible to invoke an awt event triggered from outside the swing app? I am trying to implement a use case where i have to open a new tab in an already running swing app when a user clicks on a browser link.

    I have a desktop application that was invoked via webstart. The java webstart process started when the user clicked on a link that downloaded the swing application and now it runs in the clients JVM. Each browser click downloades and launches the application that performs a certain function. Now lets say, the user clicks on another link, then i don't want another java application to be launched. I want the same application that executes the function in lets say a new tab.
    Its kind of like you click on a link that somebody sent you in an outlook email. When you click on it and if firefox is already running, the link opens up in a new tab on an already running firefox browser. If firefox was not running, it starts a new firefox process.
    Hope this makes sense

  • Transfer of data from a third party application to SAP R/3 using PI

    Hi experts,
    I have a scenario where am supposed to transfer data from an application already developed to SAP R/3
    Just wanted to confirm if the following approach is right
    SOAP>PI>SAP R/3
    we would have an RFC defined on SAP. this would be exposed as web service on PI which means i define the outbound interface to be exposed to as web service. Source system calls up the webservice.
    Issues
    1. Authentication mechanism to be used
    2. type of adapter to be used between source system and PI. Assume either of SOAP or WS adapters would work
    Valuable inputs are appreciated
    Regards,
    Kalyan

    1. Authentication mechanism to be used
    Check this help section to know about the authentication mechanism:
    http://help.sap.com/saphelp_nw70/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    Check the Inbound Security Checks and the Security Parameters section.
    2. type of adapter to be used between source system and PI. Assume either of SOAP or WS adapters would work
    SOAP adapter should suffice...WS may not be needed.
    Regards,
    Abhishek.

  • How can i raise events from a class?

    Hi all, i've a problem with events.. how can in java to raise an event and to catch him?
    For example i have ha class Counter like this:
    public class Counter
    int[] vettore = new int [10];
    int vetCnt = 0;
    void addNumber(int number)
    if (vetCnt < 10)
    vettore[vetCnt++] = number;
    for(int n=0;n<vetCnt;n++)
    System.out.print(vettore[n]);
    System.out.println();
    else
    System.out.println("Vector full!");
    The main class is like this:
    public class Main
    public static void main(String[] args)
    Counter cnt = new Counter();
    MyEventListener listener;
    cnt.addNumber(0);
    cnt.addNumber(1);
    cnt.addNumber(2);
    cnt.addNumber(3);
    cnt.addNumber(4);
    cnt.addNumber(5);
    cnt.addNumber(6);
    cnt.addNumber(7);
    cnt.addNumber(8);
    cnt.addNumber(9);
    cnt.addNumber(10);
    cnt.addNumber(11);
    cnt.addNumber(12);
    Now what i i want to raise an event that i can catch in the main class instead of print a message? I know how to do this in C#, but in Java is very different..
    Thank you

    newark wrote:
    ...to raise an event and to catch him?I'd also like it clarified how it was determined that an event is masculine.I've only ever heard of being manhandled.

  • Raise event from client side

    Dear Experts,
       I would like to raise a event to SAP server by using sapevt.exe.
    1. I have put sapevt.exe and DEFAULT.PFL in a special folder in the server and shared it.
    2. I have created a bat file with following commands and distributed it to client stations:
       net use z:
    sapserver\sapevt
       z:
       sapevt EVENT1 pf = DEFAULT.PFL
       net use z: /d
       exit
    3. When I run the bat file in client stations, event is not raised.
       Log in dev_evt:
       Trace File of External Event Raiser (Level = 0, Append = 1)
       EventID: EVENT1
       SAP message server host: sappserver
       SAP message server service (old): sapmsPRD
    ERROR ***: MsAttach (host=sappserver, serv=sapmsPRD), rc = -100
       But when I direct run sapevt.exe (sapevt EVENT1 pf = DEFAULT.PFL) in server side, event is raised successfully.
    Please advice how to fix it. Thanks.
    Edited by: Gundam Seed on Mar 9, 2009 4:10 PM

    Hi,
    Do you have the entry sapmsPRD in the services file on the client stations ?
    PS : Your technique is quite dangerous : Everybody will be able to trigger events...
    Regards,
    Olivier

  • Data ingest into Primavera from a 3rd Party application

    Dear Primavera community,
    Does any one know if a data ingest form a third party timekeeping application into Primavera 8.2.1.22 is possible.
    I was told that there might be a limitation and an upgrade to Primavera 8.3 is needed before being able to make any data ingests.
    Is that true?
    If not what capabilities in regards to data ingest exist for version 8.2.1.22
    Many Thanks
    chkl0003

    Hi,
    Bringing 3rd party data into P6 is certainly possible - they have exposed a few ways to do this. Primavera Web Services, Primavera Integration Programming Interface, Primavera Software Development Kit, Primavera Gateway or even just excel imports through the client.
    You can either code an integration interface yourself, get someone to code one for you or use an off the shelf tool such as Legare that takes the hard-work of coding away so you can just map the data.
    The one thing you can't do is just insert the data directly into the interface.
    Unfortunately I can't answer the one key question you might have which is can you insert the raw hour per activity per day - i'm not sure if this gets exposed through any of the interfaces, you can certainly add the data at an activity level but possibly not at the timesheet level like you would get if you were using the Primavera timesheet application (Progress Reporter).
    Regards
    Alex

  • BAPI for Sales Order Creation from Third-party Application

    Hi,
    I need to create a Sales order in a SAP system from a third-party applications. Please provide the list of BAPIs/Interfaces that are involved in creation of Sales Order.

    Hi,
    Check this link, explains step by step.
    http://abaplovers.blogspot.com/2008/02/bap-sales-order-create.html
    Thanks,
    Krishna

  • Import Suppliers from third party application

    I was wondering if anyone is aware if you can automatically import Suppliers from a third party application.

    HI,
    If you are planning to import customer from your legacy system or any other data base..there are some ways..
    do specify wht exactly u want to do..
    regds,
    tarak

  • Accessing SAP Transaction Screen from 3rd party Application

    Hi friends
    We have a requirement where we want to access a transaction screen in SAP from a 3rd party application.
    Can anybody guide us, as to how can this be done through ITS, if at all its possible??
    Kindly guide...
    Thanks in Advance

    what sort of 3rd party application, you wanted to show the sap gui screenin the 3rd party application?
    if its a web application, then you can just embedd the sap gui screen using frame/iframe with its url for that transaction.
    if its a windows based desktop application, you can use sapgui scripting to do the same.
    Raja

  • How to send a message(apple event) from mac os to our application

    on developer.apple.com i found a method which opens a given documetns through an apple event.
    my question is how to send open document event from mac to our application on xcode

    Assuming you're using Cocoa, the simplest solution is to call -[NSWorkspace openFile:withApplication:]. Example:
    NSWorkspace *ws = [NSWorkspace sharedWorkspace];
    NSString *appPath = [ws absolutePathForAppBundleWithIdentifier: @"com.apple.textedit"];
    [ws openFile: @"/path/to/file" withApplication: appPath];

Maybe you are looking for

  • The iChat Agent process has unexpectedly quit, disconnecting you from all..

    My iChat has been doing this all the time! I can't stay connected for more than an hour without iChat quitting on me and giving me this message: *"Disconnected from iChat Agent. The iChat Agent process has unexpectedly quit, disconnecting you from al

  • How can i use my purchased game in new apple id

    I purchased some apps by my apple id ,but unfotunately i have some problem that why i changed  another apple id in my device .after that i cant synchronise & run...how can i use those purchased apps in my different id?????

  • Issue with payment run

    hi guru's We have one vendor in two company code one is India and one is USA. The bank account number  is different in vendor master data but both accounts in the same country. When we make the payment run it has to split to different account based o

  • PCMCIA Network card for public network

    Hi All I am going to setup Oracle RAC on my laptops and would like to use PCMCIA netwrok card as public network, but I am wondering if it there would be any issue at all. Could anybody advise please. Thanks Soheil

  • General Scenario- Adding columns into a table with more than 100 million rows

    I was asked/given a scenario, what issues do you encounter when you try to add new columns to a table with more than 200 million rows? How do you overcome those? Thanks in advance. svk