CL_GUI_WDR_VIEWER

Hello all,
we´re using the class CL_GUI_WDR_VIEWER to embed a WebDynpro ABAP
application into our classical SAPGUI application. Now we´ve the
requirement to send an event from the SAPGUI appl. to the WebDynro App.
Therefore we tried to use the methode FIRE_EVENT of the class
CL_GUI_WDR_VIEWER. At the WD4A side we´ve tried several things to capture
this event:
- creating an event at the component controller and a corresponding event
handler method at comp. controller
- creating an event at the component controller and a corresponding event
handler method at view controller
- creating an action at view controller and a corresponding action
handler method at view controller
None of the above mentioned methods works.
Do you know whether this is a bug?
Regards,
Andy

It's a bit late, but: here goes:
on you WD view, you need to define an action and implement your handler logic there.
in the on_init of the component controller, you have to permit SAPGUI event handling.
wd_this->wd_get_api( )->get_sapgui_manager( )->SUBSCRIBE_EVENTS( abap_true ).
in your SAPGUI application, you can then fire an event to WDA:
     go_wdr->fire_event( WDR_ACTION = 'SET_DATA'
                         parameters = lt_param ).
I also answered here:
http://scn.sap.com/message/14214273#14214273

Similar Messages

  • Is this class available CL_GUI_WDR_VIEWER? Urgent Solution Needed.

    Hi Experts,
    Please check the blog below.
    /people/david.fernandespietroniro/blog/2008/06/19/web-dynpro-running-web-dynpro-applications-over-sapgui
    In this blog he used CL_GUI_WDR_VIEWER to declare lr_viewer.
    But when i tried this blog, i'm not able to locate this class.
    I checked SE24. there is no class in this name.
    My question is : Is there any other class available like CL_GUI_WDR_VIEWER.(To do the same blog).
    Expecting Reply ASAP
    Thanks & Regards
    SM Nizamudeen

    Hello Nizamudeen,
    This class was released with the version 700 of SAP_BASIS component. I'm writing a new blog that shows how to call web dynpros in later versions, but for while take a look at the program RSDEMO_HTML_VIEWER.
    Regards.

  • Sap Gui Events to WD4A - Consecuences of note 1409237

    Hi Guys!
    This is mi first post here, I hope I can solve with my question many same problems.
    I've got a problem applying this note in my WDA application. I've got an ABAP application with one CL_GUI_WDR_VIEWER control and within a WD4A component.
    In this note, you can see that the way of subscribing events from SAP GUI to WD4A have changed and now, SAP guides you to do it using the class IF_WD_PORTAL_INTEGRATION->SUBSCRIBE_EVENT, in the WD4A Component and firing the event using CL_GUI_WDR_VIEWER->fire_event.
    My code for subscribing the event is the following:
      CALL METHOD lo_portal_manager->SUBSCRIBE_EVENT
        EXPORTING
          PORTAL_EVENT_NAMESPACE = ''
          PORTAL_EVENT_NAME      = ''
          VIEW                   = LO_API_CONTROLLER
          ACTION                 = 'SHOW'
    My question is:
    Is it necessary to fill the PORTAL_EVENT* parameters ? I'm doing something wrong?
    Thanks a lot!

    Hi,
    finally I read that SAP is not allowing eventing from SAP GUI to WD embed applications no more, so I had to make my way to reach my objectives.  As I read, bad news from SAP..
    Thanks anyway.

  • Catch event in WDA and process in SAPGUI

    Hi all,
    class CL_GUI_WDR_VIEWER provides the ability to embed a web dynpro ABAP application in a SAPGUI screen custom control. Using class CL_WDR_SAPGUI_INTEGRATION2 can be used to fire an event in the web dynpro logic that is processed by the SAPGUI screen PAI logic.
    On our SAP discovery server, an example report DEMO_GUI_WDR_VIEWER1 has been delivered, this works fine.
    Now I've copied the report and the embedded web dynpro application to our CRM system, however, for whatever reason it doesn't work there.
    Basis release of discovery server: SAP_BASIS 700 Patch 0014
    Basis release of CRM server: SAP_BASIS 701 Patch 0003
    The following notes have been considered/implemented: 993464, 1409234, 1409237.
    Any ideas?
    Thanks & regards
    Wolfgang

    >Now I've copied the report and the embedded web dynpro application to our CRM system, however, for whatever reason it doesn't work there.
    It likely doesn't work for the same reason that the demo application wasn't there in the first place.  SAP no longer supports this SAPGUI integration approach and has removed the demo applications in later release and support package levels.

  • 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)

  • Get HTTPS URL for Web dynpro application

    We are using SSL. By default the URL generated for the Web dynpro application is HTTP.
    We went to SICF, and deactivated the HTTP service. That made the URL point to HTTPS.
    But few problems started coming because of it:
    - Our Content server became inaccessible.
    - Every time server is re-started, we need to manually go and de-activate HTTP Service.
    We even tried to set the parameter icm/icm/HTTP/redirect_0. But problem is not solved.
    I know this question is asked before, but every time the answer is to read the help document on ICM.
    What's the correct way for any webdynpro application to point to HTTPS? I don't think de-activating HTTP service is the right way.
    Any suggestions please?
    Thanks in adv.

    Thanks a lot Thomas. I'd ask the Portal Admin to try it out.
    There is another similar problem we are facing: I have embedded Webdynpro in R/3 screen. Then used the cl_gui_wdr_viewer class's load_application method passing HTTPS protocol.
    It returns HTTPS URL only, but is not showing up on users' laptops.
    Earlier we were not passing HTTPS protocol, so generated URL was HTTP, and it was not showing on users' screen (can show in ours). Reason we found out is that users' site has HTTP port blocked. They cannot show any HTTP url.
    So we changed to get HTTPS URL, but that also gives the same problem. It is still trying to get HTTP url.
    Here is the URL that the users got: (when they right click to see the URL generated)
    res://ieframe.dll/dnserrordiagoff_webOC.htm#http://abc.def.jil:8000/sap/public/myssocntl?sap-client=220
    Can give any clues on why this is going wrong? Cannot raise OSS as I know embedding Webdynpro in R/3 is not supported
    Thanks in adv.

  • WDA and SAP-GUI-Integration

    Hello,
    I am testing the integration of an WDA in the SAP-GUI via cl_gui_wdr_viewer and events. it works fine but now i have new challange where i have some problems.
    I the new case, the WDA should run on another Server. I call the WDA with the cl_gui_wdr_viewer->show_url( ), thats works fine but in this case there is no cl_wdr_sapgui_integration-instance in the WD available ?!?
    Does anybody know the condition for the availability of this instance ?!?
    Thx
    Thomas

    Some seperate Installation requirements are need to Install SAP GUI.........
    Windows:
    CPU: Pentium III or equivalent 300 MHz or higher
    Memory: 128 MB or higher
    Monitor: 17" recommended
    Resolution: 1024x768 / 32,000 colors
    MACintosh:
    CPU: G3 or higher
    Memory: 128 MB or higher
    Monitor: 17" recommended
    Resolution: 1024x768
    Kanagaraja L

Maybe you are looking for