I inherited a workflow that was created by a consultant using a custom business object ZBS1001006 which is delegated to BUS1001006. The workflow is started by the BUS1001006.CREATED event. There is no entry in SWEC for MATERIAL for this business object. There is, however, an entry in SWED for MATERIAL on the MARA table for change and create. I am trying to find the underlying logic that causes this event to fire. I don't entirely understand the SWED entries and can only wonder if this is how the CREATED event is accomplished. I've already looked through any possible enhancement spots for the event creation and I only find logic for VIEWCREATED. Hopefully I've supplied enough information for this to make sense what I am asking. The reason I need to know is my company is now asking for the same workflow to fire when a material is extended. I added the VIEWCREATED event to the same workflow under Start Event and now the workflow is firing multiple times for the VIEWCREATED event and one time for the CREATED event. I tried using a function module to check the instance for existence before it fires VIEWCREATED but it did not work. In SWEL, VIEWCREATED is being fired first so at this point an instance does not exist. I do not want to create another custom workflow to fire the VIEWCREATED event because they want to use the same steps as the workflow for when a material is first created. I would like to use the same workflow for both events. So my questions are:
1. How can I find out where the logic is that causes the CREATED event to fire or is it possible that the SWED entry does that?
2. How can I use one workflow for both events without having it fire multiple times? Please forgive if I have not supplied enough information. If you need me to clarify anything please ask. I am still new to this.
Thank you,
D.