Event not triggering for SWEC entry (MM_SERVICE) on create
I have been trying to trigger a customised event for BUS2009 based on creation of the Change Object MM_SERVICE. I have created an entry in SWEC as follows:
- Change Doc Object: MM_SERVICE
- Object Cat : BOR
- Object Type: BUS2009
- Event: RELEASEDREQCHANGED
- On Create
(no field conditions)
However, the event does not seem to publish upon an insert of ESUH-SUMLIMIT (Overall Limit on the Purchase Req - a field in Change Object MM_SERVICE), as I am not seeing the event in SWEL. Please note I have also tried to do this with field conditions in SWEC, but to no avail.
Alternatively, I have tried to setting the Change Doc config via SWU_EWCD, however, it comes back with an error message saying "No change document object for business object type BUS2009" - I believe this might have to do with the incompatibility of the key structures between MM_SERVICE and BUS2009. We have written a function module to overcome this problem and placed same in SWEC, which is why the (BUS2009) event is currently publishing for "on change" of MM_SERVICE - is there any way around this?
On the other hand, the event will publish OK if the SWEC entry is amended to "ON CHANGE" (with field conditions) - upon changing the value of ESUH-SUMLIMIT, not insert/create.
Would anyone be able to kindly advise how I can get the event to publish upon "ON CREATE" as well?
Thanks in advance.