cancel
Showing results for 
Search instead for 
Did you mean: 

SWE_EVENT_GET_RECEIVERS

0 Kudos

Hi All,

I am using abap oops class instead of business object. In the same case I cannot use the FM "SWE_EVENT_GET_RECEIVERS". Please tell me what is the function module/class I can use for the same functionality.

Regards,

Guru

Accepted Solutions (0)

Answers (1)

Answers (1)

bpawanchand
Active Contributor
0 Kudos

This message was moderated.

0 Kudos

Hi,

Please let me know the right class name for substituting SWE_EVENT_GET_RECEIVERS.

Regards,

Guru

Former Member
0 Kudos

Hi Guru Dutt,

that's possibly the coding spot you were looking for. The function module was replaced by a new class for the event manager:


CL_SWF_EVT_EVENT_MANAGER.get_event_handlers( )
   ...
   *-----------------------------------------------------------------------
   *- select the linkages
   *-----------------------------------------------------------------------
     CALL METHOD me->select_linkages
       EXPORTING
         ...
       RECEIVING
         re_linkages   = lt_linkages.
   ...

So either you go for the get_event_handler method or the select_linkages.

If you would like to restrict your injection pretty much to a single coding spot, you could use the class method


CL_SWF_EVT_EVENT_MANAGER.singleton( )

in order to return an instance of a subtype of that class, instead an instance of the class itself. This way you can replace any methods w/o modifying further.

Best wishes,

Florin

Edited by: Florin Wach on Feb 2, 2010 10:47 AM

Removed additional comment