I created my custom business object in copy from a standard business object (BUS2078).
Now, when I run transaction QM01 I can see in in SWEL the event for BUS2078 but not for my custom business object.
I filled table SWEC with my custom business object and after that I can see the event in SWEL also for custom business object.
My question is: it's necessary to fill SWEC with my custom business object given that standard business object tehere isn't in SWEC?
Why for a custom business object I need to fill SWEC and for a standard business object not?
Is there another way/table to activate event without filling SWEC?
Thanks in advance
Pernilla
Answer:
Hi Pernilla
The flow should be slightly different:
- First, you create the subtype (successor) of the standard BO (BUS2078) by adding custom attributes/methods/events (in SWO1). Do not copy, just make a subtype
- Then, you set your custom object as a delegate of the standard object, after that all new methods, attributes, and events will be accessable via old object name. And when the system will create an instance of BUS2078 actually it will be an instance of your custom object.
- Finnaly you create a WF template and tasks with references to the standard object (BUS2078). Also, you should use standard BO events as triggering for WF templates
_________________
Best regards, Sergey Korolev