cancel
Showing results for 
Search instead for 
Did you mean: 

CL_GUI_WDR_VIEWER

andy_dingfelder3
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

TomVanDoo
Active Contributor
0 Kudos

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