I need to trigger a Workflow to send a work item to an approving office to release a PO. But before triggering...
the event I need to check the PO doc type to see if it fulfills certain conditions. Where can I do this check? Is any coding required?
There are two places to do this:
1. In transaction SWETYPV, you can enter a Check Function Module that decides whether to kick off the Workflow. The check function module is executed after the event is raised but before the workflow is executed. In that Check Function Module you can check the document type and if it does not need approval then all you need to do is raise an exception (any exception is fine). If an exception is raised then the Workflow is not triggered. Please note that the Check Function Module must adhere to a standard interface. Please see the Function Module SWE_TEMPLATE_CHECK_FB for more information.
2. The other alternative is to use Start Conditions (only available in recent versions of Workflow). Start Conditions allow you to specify logical conditions that must be satisfied before the Workflow is kicked off. This is approach is identical to approach 1 but does not require any coding. Start Conditions are specified in the Workflow Builder for each event specified as a triggering event.
Dig Deeper on SAP Java and J2EE
Related Q&A from Alon Raskin
Find out how to configure clients so that the same version of an SAP workflow item is used when the workflow is triggered in separate clients. Continue Reading
An SAP user has created a user decision step in an SAP workflow item and wants to know how an end user can send an attachment to other users. Continue Reading
A SearchSAP.com reader wants to know how to hide the forward button in an SAP Business Workplace toolbar. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.