Fireing a SAPEVENT in a WebDynpro

Hi experts!
I'm trying to integrate a Webdynpro-application in a classical SAPGui environment via the class CL_GUI_WDR_VIEWER (subclass of CL_GUI_HTML_VIEWER) and SAPEVENTs.
So the basic idea is the following: I developed an ordinary SAPGui-application (my custom made Z-program) containing a CL_GUI_WDR_VIEWER which loads my webdynpro-application. This application then contains some "sapevent:"-links which, when navigated to, raise a sapevent that is handled by my Z-program which does "CALL TRANSACTION <whatever>", depending on the SAPEVENT and its parameters.
I tried to insert an ordinary LinkToUrl with the reference-property set to "sapevent:test_event". Unfortunately this sapevent was not handled by the class CL_GUI_WDR_VIEWER, but instead the link was opened in a web-browser.
Regrettably I was not able to find a working example of what I need - could someone please provide me one or tell me how SAPEVENTS can be fired from a WebDynpro ?
I'm thankful for any pointers and - to some extend - for suggestions of different strategies.
Regards,
Patrick Seidelmann (Developer, DSC Unternehmensberatung und Software Gmbh)

Check my reply to another topic
http://scn.sap.com/message/14214273#14214273
It should solve your question as well (however late)

Similar Messages

  • Can't pass event from WebDynPro to JspDynPage - why?

    I Created JSP project and embedded in main page script (in its title),
    which subscribes to event by EPCM API,
    EPCM.subscribeEvent("urn:ru.intertech.common.wd.component", "save",   go);
    and created WebDynPro page that fires event using, when pressing on some bution:
    WDPortalEventing.fire("urn:ru.intertech.common.wd.component", "save", navUrl);
    but first code newer receives that event...
    why so ?
    for test reason I tested firing EPCM event on same JSP page,
    and it was received,
    also
    I tested receiving Portal event  "urn:com.sapportals:navigation", "Navigate"
    it was received on same JSP page.
    both iViews is not URL isolated according their properties.
    WebDynPro package is:
    package ru.intertech.common.wd.component;
    note from else people expirence:
    Does it important that receiving and firing side must be in same package? as written there:
    https://www.sdn.sap.com/irj/scn/thread?messageID=462647
    "The problem was that I created the Sender Application in package "com.sender" and the Receiver Application in "com.receiver".
    I created them in the same package and it works."
    What means domain for JSP page or WspDynPro component?
    Does it important?
    =================
    JSP code is (changed script formattin to be able to post here, and removed else business content):
    [hbj_content  ]
      [hbj_page_title"]
      [script_type="text/javascript__"]
      //alert["title started"];
      //EPCM.subscribeEvent["urn:com.sapportals:navigation", "Navigate", eventHandlingFunctionName]; 
      //EPCM.subscribeEvent["urn:ru.intertech.navigation:epcm", "Navigate", eventHandlingFunctionName]; 
      //EPCM.subscribeEvent["urn:ru.intertech.navigation:epcm", "Navigate",   pop];   
      //EPCMP.subscribeEvent[ "urn:ru.intertech.navigation:epcm", "Navigate", window,"eventHandlingFunctionName"];
        EPCM.subscribeEvent["urn:ru.intertech.common.wd.component", "save",   go];
         EPCM.subscribeEvent["urn:com.sapportals:navigation", "Navigate", eventHandlingFunctionName]; 
         EPCMPROXY.subscribeEvent["urn:ru.intertech.common.wd.component", "save"  , window,   go];
      function eventHandlingFunctionName[ eventObj ]
         alert["title started=" + eventObj.sourceId + ": " + eventObj.dataObject  ];
      function go[ evt ]
         alert["go started=" ];
      </script>
       <hbj:form id="myFormId" >

    your reply is worth.
    what is the domains for views on one page?
    where to see it?
    Also, standard SAP MDM controls which we are using not working under any other browser except IE,
    I tested on FF and Google Chrome, they do not erform dynamic part of the controls.
    Despite this, debugging of scripts is important thing, so every piece is worth.
    One more detail:
    Also, two such a controls do not receive events from each other,
    but ony within self..
    why so ?
    Edited by: Vladimir Grigoryev on Jan 27, 2009 10:00 AM

  • We cannot type Polish (non-latin) characters in WebDynpro applications

    We cannot type Polish (non-latin) characters in WebDynpro application (in runtime) because 'Browser Help Shortcuts' are fired.
    To type a polish character in polish keyboard you need to press AltGr + letter (ie. AltGr + a/c/e/s/o/l/z/x/n). To type an uppercase polish character you need to press AltGr + Shift + letter. This comination is in fact the same as pressing Alt + Ctrl + Shift + letter (because AltGr produces Alt + Ctrl) and it fires some of 'Browser Help Shortcuts'. For example AltGr + Shift + O should produce a letter O with a dash on it's top but instead it fires 'Show nesting of HTML containers'.
    We tried to turn off sap-wd-lightspeed, but then other key combinations are reserved for u2018Browser Help Shortcutsu2019.
    We need to be able to use AltGr + Shift + a/c/e/s/o/l/z/x/n in runtime.
    Product: SAP NW 7.11 SP04
    WebDynpro for Java
    I hope there is a somewhere a hidden parameter that solves our problem Maybe we're in some kind of debug mode?
    Thanks for your help!!

    The funny thing is that bold font [when message unread in message list] shows OK, ie in greek, but when i click on unread message, it is assumed to have been read, so it changes over to medium [non bold] and the encoding changes as well into the one that is not greek and thus unreadable.  In ~/.sylpheed/sylpheedrc the fonts are:
    widget_font=
    message_font=-microsoft-sylfaenarm-medium-r-normal-*-*-160-*-*-p-*-iso8859-7
    normal_font=-monotype-arial-medium-r-normal-*-12-*-*-*-*-*-iso8859-7
    bold_font=-monotype-arial-bold-r-normal-*-12-*-*-*-*-*-iso8859-7
    small_font=-monotype-arial-medium-r-normal-*-12-*-*-*-*-*-iso8859-7
    In /etc/gtk, for gtk1.2 apps the file refering to greek encoding [el] seems to be fine [exactly the same as in slackware 9.1].

  • Webdynpro and eventing from team viewer

    Hi.
    We are trying to add new fields to the MSS "General Data" iView (com.sap.pct.hcm.eeprofilegeneraldata.par) and are considering the following approaches:
    1.) Write additional java code to retrieve the data we need and display it on the iview.
    2.) Create a new iview from scratch using webdynpro.
    At the moment we are leaning towards option 2 as we do not have much java experience and have found webdynpro relatively easy to use. But my question is....how difficult would it be for a webdynpro iview to pick up the eventing from the standard Team Viewer iview? I would want to make sure that when a user clicks an employee on the Team Viewer, his/her data would show up in the new webdynpro iview. Any details on how to go about this would be appreciated.
    Thanks in advance,
    Chris

    Hi Chris
    If you are creating a new  iview from the scratch to display the details you had to have the epcf subscribe function. Here you get the parameter passed from the first iview. For this the raise event have to be fired from the MSS iview. So in the Msssiview You write the code for Raiseevent ON click of the button.
    <b>Event Sending from par</b>
    EPCM.raiseEvent("urn:com.sap.tc.webdynpro.example.reponamespace","linkclickevent",variable);
    <b>
    Event Receving on Webdynpro</b>
    WDPortalEventing.subscribe("urn:com.sap.tc.webdynpro.example.reponamespace","linkclickevent",wdThis.wdGetEpcflistenAction());
    public void onActionepcflisten(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject )
        //@@begin onActionepcflisten(ServerEvent)
    //    wdContext.currentContextElement().setName(dataObject);
    //      wdComponentAPI.getMessageManager().reportSuccess("listen eventfired......");
         wdComponentAPI.getMessageManager().reportSuccess("dataobj is....."+dataObject);
        //@@end
    (The variable dataObject cannot be changed to other name)
    Regards
    Geogi

  • Problems between Xcelsius and WebDynpro for Java

    How should I do to show Xcelsius in WebDynpro for Java?
    How should I transport data between Xcelsius and WebDynpro?
    How should I control WebDynpro with Xcelsius?For example,firing plugs in Xcelsius like in WebDynpro to change one view to another.
    How should I do to execute a Java method in Xcelsius?For example,scheduling a job on clicking a button in Xcelsius.
    Besides these,I also want to know the same problems between other BOE contents and WebDynpro for Java.
    Regards,
    Abe

    Hi Pradeep:
    Well that purely depends on the business application (project) your client is proposing. Following are very few factors which will drive for creating web-based applications:
    VC: it's a UI modeling tool (non-programming) for creating rapid creation of web-based applications.
    WD: its a powered by Java and ABAP with which you can create robust business applications.
    If your client is very choosy about rapid application development, reporting, rich user interface, to reduce TCO then VC is the choice. Or if the project contains typical integration with SAP and non-SAP systems, complex business logic development, integration with WCM systems...etc then WDJ is the option.
    If you’ve some sort of custom development with facilitating the Development Infrastructure (NWDI) then WDJ is the only option I could say.
    We hope with NW CE 7.1.1(referred by Priyanka Singh) tighter integration between these TWO tools may over come the ambiguity of using them.
    Tnx,
    MS

  • Webdynpro ABAP exit plug browser auto popup.

    Hi Experts,
    We are using the exit plug to close a webdynpro ABAP application.When this plug gets fired a auto popup from browser comes up with option yes and cnacel.When we are clicking on cancel the application is getting hanged instead of getting blank.
    Is there any way to skip that browser auto popup using close window method or by some other means.
    Thanks In Advance
    Pradeep

    Can check this article for hints.
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d0018077-f0c9-2b10-87af-eb9bb40776d4&overridelayout=true
    Also check this thread had a similar requirement.
    Exit button for web dynpro within portal
    Thanks
    Avik
    Edited by: AVIK SANYAL on Aug 20, 2009 12:00 PM

  • Outbound plug Firing

    Hi Friends,
    I am New to WebDynpro  programming. In My component I am using Select-options Component,My Component also has out bound plug TO_V1.
    after the selection-screen is created, the out bound plug is fired.( WD_THIS->FIRE_TO_V1_PLG( ).)
    in window, it is not configured to any inbound plug.
    When I checked in Debugger, it is calling the view WND_SELECTION_SCREEN.
    But i am confused where it could be configured?
    Could,you please provide me your Valuble Inputs?
    Regards,
    Xavier.P

    i xavier,
    For example:
    In the main view their selection screen and search button when you enter the made the selection for
    this selection-screen and enterd the search button..it should go to the next view i.e(view1) displaying
    data in table format..
    for the main view it is outbound plug and for view1 it is inbound plug
    main to view1( OB_main)...outbound plug.
    view1 to main(ib1_view1)...inbound plug.
    Incase after this you want to get back to the main view then from view1 it would the outbound plug and
    for the main view you should create the inbound plug.
    View1 to main(ob1_view1)...outbound plug.
    Regards,
    Sravanthi

  • Eventing from a PDK appln to a Webdynpro appln ! :(

    Hi,
    I would like to trigger an event in webdynpro and catch subscribe for it from a PDK application..
    (And passing data b/w WD appln and a PDK appln ...)
    How can i acheive the same..
    WDPortalEventing will work only across WD applns !
    Is their any API that suits my requirement !
    Any help is appreciated !
    Regards
    Bharathwaj

    Hi Bharath,
    You can trigger in WD and catch it in the PDK application.
    The following code is for firing an event from webdynpro.
    WDPortalEventing.fire ("urn:com.sap.tc.webdynpro.test.portal", 
                           "TestEvent", 
                           "AParameter");
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/1d584289e59041e10000000a1550b0/frameset.htm
    It can be captured in portal using EPCF
    EPCM.subscribeEvent( "urn:com.sap.tc.webdynpro.test.portal",
             "TestEvent",Function_name);
    http://help.sap.com/saphelp_nw04/helpdata/en/f6/aebf40b87e0366e10000000a1550b0/frameset.htm
    Regards
    gEorgE

  • Navigating Between 2 views in webdynpro application

    Hi All,
    I am creating a webdynpro application with 2 views. when i click the next the first view an action would be triggering the next view. Component controller context is being used.
    Component Controller - 2 value attributes are there. These are mapped to view 1 and view2.
    view1 - has these 2 value attributes
    view 2 - has these 2 value attributes and 1 node with some attributes.
    But in view 2 , i am using only that node. When i deploy the application, when i click the button on the first view, another window popups, saying "500 internal error". But the view1 and view2, code is completely free of error. if so, why it is not displaying data of view2?
    Regards,
    Divya

    Divya,
    Go through <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d5c09c90-0201-0010-17a8-c473134632df">link</a> link. This may be very useful as it gives step by step process for navigation from one view to another on firing of an event.
    Let me know if you have any concerns.
    Regards,
    Ankit

  • How to pass a run time value as a parameter to a webdynpro iview

    Hi,
    we have a webdynpro which we can call with passing a run time value in this form:
    https://xxx.yyy.zzz/sap/bc/webdynpro/sap/zfkq_inv_1?WI_ID=000000004332&sap-client=700&sap-language=EN&sap-wd-sapgui=X
    This link will be sent to many users but the WI_ID will change every time.
    It works fine but now we want to implement this webdynpro in our portal. The user shall get a link like this
    https://xxx.yyy.zzz/irj/portal/webdynpro-test?wi_id=000000004332. With this link he will navigate directly to the webdnypro (quicklink-function).
    The problem is that i don't know how to transfer the parameter WI_ID in the url to the webdynpro.
    It's no problem to fix the WI_ID in the application parameter properties but this is not what we want.
    Is it possible to transfer the url parameter to the application parameters of the webdynpro iview ?
    Thanks in advance.
    Best Regards
    Mirko Berscheidt

    Hi Mirko,
    The first thought I had is if your scenario makes sense at all. Because you might send out the links, but probably the iView will also be accessible via navigation, and in that case this additional parameter won't be there!?! (And if the iView is not accessible by navigation, then why going the way via the portal and not the direct way to the application like with your first link given?!).
    Anyhow, I think this should be possible by using the AppIntegrator, see The customer exit of the Application Integrator
    For an example about how to add individual values to users which you then can add to the URL see this discussion: App Integrator, and custom URL parameters using Customer Exits - this might be a possibility that each user can call the "same" iView but in fact the app integrator then would be fired with different URL parameters (per user).
    Hope it helps
    Detlev

  • Java Portal Event not received correctly by ABAP Webdynpro

    We have a page that contains 2 iviews. 
    iView 1 contains the MSS Employee Search that raises portal event:
    Namespace: "urn:com.sap.mss.employeesearch"
    Name: "selection_changed"
    The second iview contains an ABAP Webdynpro program that subscribes to the Portal event. 
    The issue is that the event in the ABAP webdynpro is not being triggered.  It does get triggered if we first fire the event from the Java program, unsubscribe the event in the ABAP program them subscribe to the event in the ABAP program.  The event gets triggered at this time and the parameter can be retrieved. 
    If the event is fired a second time, nothing happens in the ABAP program. 
    The abap program works fine when another abap program triggers the same portal event.
    Also, the portal event is being picked up correctly by other SAP delivered JAVA programs.  I just cannot get a custom ABAP Webdynpro program to work...
    Any ideas, comments?
    Glenn

    Hi Glenn,
    Are you using https? Is your j2ee stack and abap stack in the same domain? In the past I have found that https can cause issues in the event communication between different applications.
    Cheers,
    Dion

  • Calling transaction through webdynpro abap applicatoin

    hi,
    Is it possible to call an EWT transaction or an transaction from a webdynpro abap application.
    Regards,
    Divya

    The example demo listed works under special circumstance ONLY.
    Logon to SAP.
    At main menu add a favourite of type WDA.
    Choose application wdr_sapgui_demo1  .
    Now run demo.
    The WDA app appears inside an SAP GUI screen.
    Now the when the runtime API call the sapgui manager, a handle to the GUI is available.
    The new transaction can now be fired. EG navigate away to new transation.
    If the GUI is not already active you have another issue.
    I suggest you search the forum for the use of SAPGUI shortcuts and other
    such tricks . There has been a few topics and solutions discussed.
    Cheers
    Phil.

  • WebDynpro ABAP + Team viewer integration

    Hi All,
    I have webDynPro ABAP application and a Enterprise Portal 6.0 SP2 with MSS package 6.0 installed on it. As you know there is a teamviewer iview on the left frame of portal and when you click on one person in the team viewer list and event is triggered and the program on the right frame get this trigger and changes its content accordingly. My question is how can the webdynpro abap application get the pernr clicked in the team viewer iview.
    Thanks for replies

    Hi, I have the same issue.
    I need to capture the personal number selected in Team Viewer. Probably a Portal Eventing might be fired, but I need to know if someone knows whats the namespace and the name of that event. Or where can I find these information?
    Thanks

  • WebDynpro in HTMLControl of SAP-GUI?

    Hi,
    I want to call my WebDynpro Application from the SAP-GUI in a HTML-Control. Displaying is not the problem, but I also want to notice in SAP-GUI application (which called the WebDynpro) which button was pressed by the user in WebDynpro. Is this possible???
    In HTML and BSP there is the possibility to fire the event "sapevent".
    Best Regards
    Katharina

    Hi
      It seems something new :). But what you can do is try to capture the id of the button and set it in a context variable. Say for example if the id of the button is "Close" then you can fire a exit plug in the Window interface view of the component.
    To create a exit plug to the component
    Open your Window Interface View.
    Create a Outbound plug and define it of type "exit plug"
    Define a url parameter "Url" (It has to be exactly the way i have mentioned (Url)"). Now this url could be some empty page or something.
    This is just an idea. Let me know if that helps you in the situation. I have done it from WebDynpro to SAPGUi, but not the other way around :).
    Let me know if that helped you.
    regards
    ravi

  • Blank Table in Webdynpro

    Hello,
    I have developed a simple Webdynpro for java application which gets the Employee data based on the Employee Id but when I enter an id and click on the search button nothing displays in the table I have included on the screen.
    I have placed relevant code in all the places and did the binding too.
    Any help would be highly appreciated.

    Hi
    Your table may be coming blank due to improper binding of node or because your backed is not returning values properly. First check whether The BAPI or the DB Query that you are firing is returning any values.
    Also post the code you have written.
    cheers
    Deepu

Maybe you are looking for

  • Question about calling a procedure from a URL

    Hi In an Apex 3.0 application (which is not public) I use a procedure call in a URL to download the person's photo, if any. The call looks like this: {img src=#OWNER#.download_photo?p_id=&P10_ID.} This works fine. However, I found out that I can run

  • I can't receive my gmail messages anymore but I can send them.I have an IPad mini

    Ii

  • Highlight updated line in send email

    hi, is there anyway that i can highlight the changed value in when a record is updated and it sends the email? currently when a record is updated an email is sent with the every change in the recordset but i would like it to be able to highlight the

  • Microsoft word for Mac 2004

    I have created a document with newspaper columns. Its uses headers and footers. When viewed in page layout mode it looks great. However, if I do a print preview the headers and footers have disappeared and some of the text is missing. I have tried se

  • Problem with ESB instances:

    Hi Gurus, I am facing a problem with ESB Console, wherein it doesn't show esb instances. When I checked the log file, I've got the following error:      Activity monitor manager received an unexpected exception while processing the activity messages.