Question:
Version 46C. In the test system, which is a recent copy of production.
There's a custom event, Zblabla being created via FM BP_EVENT_RAISE in the userexit_save_document of VA01 etc.
However the expected background job that drives off this isn't happening.
I traced through in debug & The FM (and the calls it makes inside) don't seem to throw any exception. I can't find where the Z event is defined. I don't see it in SWETYPV. Maybe I'm looking in the wrong place - I'd expect it to grumble if the event wasn't defined.
I've switched the trace on but I'm not seeing it in SWEL - I see the standard BUS2032 ones though - but these don't have a reciever attached.
Just to add even more confusion, the system has been hacked seven ways to sunday by some evil genius, and I don't know enough of workflow to know how it should work in the standard. Oh joy.
So, can anybody give me any pointers where to look?
Answer:
BP_EVENT_RAISE has nothing common with business object events. This is so called Background event which you can view and maintain via SM62. You can hook up some background job to such an event (as a scheduling condition). So you won't see those events in SWETYPV and SWEL.
_________________
Best regards, Sergey Korolev
Answer:
Ah, it's the events like the one you can set a job to start after.
I didn't know they were different things - I was telling the truth when I said I'm a newbie at workflow.
I was puzzled that the documentation referred to functions beginning SWF_ rather than the BP_ one EG used, but I forgot to mention it in my question. But you answered it anyway!
The problem isn't solved but thanks for saving me a long false detour.
Answer:
Hi,
Try creating the event using SWUE as an intial test to see if the Workflow is triggered.
_________________
Kind Regards,
Ron Johns
Answer:
Hi Sark,
Apologies in advance if you already know this and I am off the mark here.
You can create a Subtype of Object BUS2032 (ZBUS2032) in SWO1.
Add an event to ZBUS2032.
Then...
Follow menu path: Business Workflow >> Development >> Definition tools >> Events >> Event Creation.
You can set up your events for change documents and Status's here.
_________________
Kind Regards,
Ron Johns