Workflow Channel
A business workflow is an executable process embedded in SAP applications that you use to automate business processes. These processes may be simple release or approval procedures, or more complex business processes such as creating a material master and the associated coordination of the departments involved. SAP Business Workflow is particularly suitable for situations in which processes have to be run through repeatedly, or situations in which the business process requires the involvement of a large number of users in a specific sequence. You can also use SAP Business Workflow to respond to errors and exceptions in other, existing business processes. It considers SAP data as business objects (e.g. a material or a sales order can be an object in a workflow).
A workflow can be started when predefined events occur, for example an event triggered if particular errors are found during an automatic check. Each workflow is made up of steps that control the workflow or refer to tasks to be executed. Tasks describe elementary business activities and always refer to a method of a (business) object type. These methods can be automatically executable methods (background tasks) or can require a user to execute them (dialog tasks). For each task possible agents (i.e. persons who start workflows and processes work items) are defined.
A task within a workflow can either be a single-step task or a multistep task. At the technical level, the main difference between single-step tasks and multistep tasks is that while each single-step task references an object method, each multistep task references a workflow definition comprising a sequence of different steps. The prefix for SAP standard tasks (single step task) always starts with TS<8 digit number>, while the prefix for a Workflow (multi step task) always starts with WS<8 digit number>.
As core business processes can be realized using SAP Business Workflow, the successful execution of workflows can be crucial for the smooth and reliable processing of the business processes. Thus, monitoring of workflows is essential for ensuring the uninterrupted processing of these processes. Typical error scenarios are:
- Events which start a workflow may run into an error or backlog situation. Such situations can be found in transaction SWEQADM.
- The processing of the workflow itself may stop due to various reasons. These include problems with the system (system crashes, short dumps etc.) and errors in the logic of the workflow (steps configured incorrectly, dialog user not existent etc.). Workflows in such an erroneous state can be found (and restarted) in transactions SWPC and SWPR.
The processing of a workflow or task can be delayed or stopped due to other reasons like unavailable agents or a task being in status “WAIT”. Such situations can be detected in transaction SWI1.