Workflow : Find Business Object/Event/Workflow linked to a standard transaction
Whenever we start development on any workflow object, few questions that comes to our mind are:
- Is there any standard workflow exist for this transaction?
- What are the events which are triggered ?
- Which business object is linked to this transaction ?
When i first started developing my workflow objects, i faced the similar questions. So i thought to go with the basics. Any workflow is triggered based on some event only. At least this is the case with standard transactions. Though we can trigger workflows directly through FMs but that is not a good approach.
So i searched for the FMs which are used to trigger any event, few FMs which i got are :
(I will update the list of FMs, if i come across something new)
So we have to create a breakpoint on these FMs while running our transaction. So if there is any BO/Event is linked to this transaction it will stop here and from the FM parameters you can see the BO type, key and the event container contents.
And the best part is you can see the actual point of event trigger by looking into the ABAP trace.
Once you know the business object, you can go to SWETYPV/ SWE2 to find/link the workflow to this event. 🙂
Here is another option. The generic object services button exists in a lot of the ECC transactions, simply go to the workflow -> archived workflows and you will see the object in the selection screen.