Event linkage to instance method (ABAP-OO workflow)

Florin Wach florin.wach at gmx.net
Mon Nov 23 08:03:57 EST 2009


Hi again,

I've found out, that the Instance-handler interface is used for wait-steps or completion-events for work items only.

So I have programmed a generic static ON_EVENT-method that calls the instance ON_EVENT-methods.

Best wishes,
Florin

-------- Original-Nachricht --------
Datum: Wed, 18 Nov 2009 15:49:55 +0100
Von: "Florin Wach" <florin.wach at gmx.net>
An: sap-wug at mit.edu
Betreff: Event linkage to instance method (ABAP-OO workflow)

Hello wuggies,

I'd like to link an event to a method call instead of a function module (creating a workflow instance or something else).

I have found out, that if you implemented the interface BI_EVENT_HANDLER_STATIC there's a method ON_EVENT coming up, basically offering the parameters of the receiver function module but as static method's importing paramater.

This is already somewhat workable.

However I also found the interface BI_EVENT_HANDLER that brings on instance ON_EVENT method with it, and the database table SWFDEVTYP can be set to an instance method: There's a field RECMETYP, which could be set to 'I' = Generic Instance Method.
However, I haven't found a possibility to maintain that field with transaction SWETYPV.

Has anyone of you used the event linkage to INSTANCE methods already?


With the very best wishes,
Florin
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug



More information about the SAP-WUG mailing list