on 01-29-2010 12:59 PM
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
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.