Workflow Part 3: Agent Determination and Rule-Based Assignment
Preview · a free account unlocks the full lesson
Understand how SAP Workflow decides who receives a work item: possible agents (task), responsible agents (step: org objects, expressions, rules), excluded agents, general tasks, rules in PFAC (responsibility and function-module rules), organizational management in PPOME, rule resolution errors, and substitutes.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Part 2 built the steps of a workflow template; now each dialog step needs to reach the right people, which is what agent determination is about.
The actual recipients of a work item are the intersection of the responsible agents, defined per step, and the possible agents, assigned to the task itself, with any explicitly excluded agents removed — for example, a requester who must not be allowed to approve their own request.
Responsible agents can come from organizational objects such as an org unit, position, or job; from expressions, where a container element like the requester's manager supplies the agent; or from rules configured in PFAC, either responsibility rules or function-module rules.
A task marked as a "general task" allows all users as possible agents, which is convenient but offers much less control.
One important danger: if no agent can be found, and the rule isn't set to terminate on error, the work item goes out to every possible agent — for a general task, that can mean literally everyone in the company.
There are three agent sets worth keeping straight: possible agents, assigned to the task through PFTC's agent assignment, representing who may ever execute it (or simply "general task" for everyone); responsible agents, defined per step, representing who should execute it in this particular case; and excluded agents, such as the rule that a requester can't approve their own request. The actual recipients are the responsible agents intersected with the possible agents, minus the excluded ones.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Related SAP topics
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.