SAP Logo

1705217 - How to Assign Agents for a Step in a Workflow

  • Error: WO 590 - No agents found for this task
  • Notification sent to the incorrect agent(s)
  • No possible agents determined

Environment

  • Materials Management (MM)
  • SAP R/3 Enterprise 4.7
  • SAP ERP Core Component
  • SAP enhancement package for SAP ERP
  • SAP enhancement package for SAP ERP, version for SAP HANA

Agent determination, Dynamic rule assignment , workflow , assignment   , KBA , MM-PUR-GF-WOF , Workflow , MM-IV-INT-WF , Workflow , How To

About this page

Search for additional results.

Visit SAP Support Portal's SAP Notes and KBA Search .

Privacy | Terms of use | Legal Disclosure | Copyright | Trademark

SAP SPACES

  • February 27, 2023

Sara Sampaio

  • Technical Articles

With the aim of making workflow configuration simpler, SAP S/4HANA developed a brand-new concept called Flexible Workflow. It is advised that we make use of S/4HANA’s new Flexible Workflow feature.

The preset workflow scenarios and tasks form the foundation of the flexible workflow. This gives users the ability to specify condition-based workflow for various system activities.

SAP provides many such adaptable scenarios in procurement, Settlement Management, Sales etc. However, in many scenarios we don’t get many options when it comes to choosing an approver or agent and standard capabilities like Workflow Initiator or Manager based on HR Hierarchy don’t help with specific, dynamic business requirements.

In order to accomplish that, I have written this blog article to handle an Agent Determination scenario for Condition Contract Release Flexible Workflow which utilize a Custom Responsibility Rule.

Introduction

In the Condition Contract Flexible Workflow scenario, the Standard template provides only one option for setting up the Workflow Approver–the Workflow Initiator Rule. This option isn’t suitable because the Workflow Initiator and Approver can’t both be the same in any Implementation requirement.

workflow agent assignment in sap

In this blog, I will show you how to create and configure a custom responsibility rule to determine the workflow agent for a task.

Pre-requisites

  • The Flexible workflow configuration has been done and is already working (not part of this blog.

Create Custom Responsibility Rule

1. badi implementation.

We should first implement the BADI RSM BADI STATIC RULE where we will write our code to obtain the Agent based on custom logic before moving forward with building Custom Responsibility Rule using the “Manage Responsibility Rule” App.

Please be aware that it is a Limited Filter Use BADI and that in order to correctly activate it, a Filter value must be provided in the BADI Implementation.

workflow agent assignment in sap

The exporting parameter ET AGENTS in this BADI Implementation Class allows us to enter the agent selected using custom logic. I’ve provided a sample example for your use.

workflow agent assignment in sap

2. Manage Responsibility Rules App

Be sure to complete the following prerequisites before moving on to this step:

You have assigned the  SAP_BR_ADMINISTRATOR  role to your user ID in the development system.

You have implemented the  RSM_BADI_STATIC_RULE  Badi with appropriate filter value.

Select the Custom tab from Manage Responsibility Rules Application on Fiori, then click Create.

workflow agent assignment in sap

The “Create” button will prompt you for the package and transport request where you want to lock this rule after you click it. Make sure the BADI filter value set in the previous step matches the Custom Rule name before entering the Custom rule name and its description otherwise you will not be able to save it.

workflow agent assignment in sap

Create a parameter using the “Create” button under the Parameter tab and provide the parameter’s name, description, type, and related CDS view. The CDS view and field must be entered if the parameter type is Element. A CDS view should be chosen if the parameter type is Table or Structure. Only whitelisted CDS views are permitted.

Please take a note that adding a CDS view here enables us to obtain information about Condition Contracts from the BADI Implementation Class and use it to create custom logic.

workflow agent assignment in sap

After saving it, we may finish creating the Custom Responsibility rule, but wait—this is where I had an A-ha! moment.

Although we have already put the BADI into use and developed the custom rule, we have not yet assigned it to our Standard workflow scenario and that’s where we are going to utilize the next app ‘Manage Responsibility Contexts’.

Configure Custom Responsibility Rule

With the  Manage Responsibility Contexts  app, you can use the list of standard responsibility contexts delivered by SAP application teams for agent determination.

You can also extend a standard responsibility context by adding your custom responsibility rule to determine agents that are responsible for your business process tasks, objects, and situation handling.

1. Extending Responsibility Contexts

You have assigned the  SAP_BR_ADMINISTRATOR  role to your user in the development system.

You have created a custom responsibility rule in the  Manage Responsibility Rules  app.

Choose Extend from this app’s menu after choosing the standard responsibility context and Standard Workflow Scenario ID. Please be aware that if a standard responsibility context has previously been extended, the Extend button will not be available.

workflow agent assignment in sap

The “Extend” button will prompt you for the package and transport request where you want to lock this rule after you click it. Once you provide these information, we get the next screen with the extended responsibility context.

workflow agent assignment in sap

2. Assigning the Agent Rule to Responsibility Context

We have the ability to link the Custom Responsibility rule to our workflow scenario by assigning it to the Extended Responsibility context under the Agent Rule tab. If you notice the Parent Context ID, it is the Standard Workflow scenario.

workflow agent assignment in sap

Here, you can give the agent decision rule a custom responsibility rule. Choose the right custom responsibility rule from the Responsibility Rule ID value help to reveal the parameters for the responsibility rule.

Once it is done, enter a constant value or pick a CDS field from the Data Source value help for each parameter.

workflow agent assignment in sap

Once you save it, it will start showing under Extended tab of Manage Responsibility Context app and also in SWDD_SCENARIO.

workflow agent assignment in sap

It will be visible in the Manage Workflows for Condition Contracts application in addition to the workflow scenario. This rule can be chosen in the step receiver option, and when choosing the step’s agent, it will apply.

workflow agent assignment in sap

I’ll end my blog article here. My focus is on including all necessary steps in this blog article so that it can be helpful to others as well.

I referred and followed the SAP Help Portal documentation to achieve this requirement and below are the direct links:

https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/8308e6d301d54584a33cd04a9861bc52/ec1b8c8f44394c959e02b41c51affd9d.html?q=BAdI%20for%20custom%20agent%20rules%20in%20Responsibility%20Management

If you’d like to ask questions, share feedback and thoughts, please use the comment section and/or post questions in the SAP S/4HANA Cloud community and follow me for further blogs.

Sara Sampaio

Sign In Now

Forgot password.

Registration logo

It's Free to Sign Up and Get Started.

I want to start as:.

I have read and understood the Terms and Conditions of SAPSPACES.com SAPSPACES will use any of the data provided hereunder in accordance with the Privacy Policy. Terms & Conditions

Notification detail

Vehicle Telematics Innovations from SAP and Partners on SAP Store

By Carsten Storm, Head of Marketplace, Digital Experiences, SAP | November 10,2023

If your business is involved in buying products, selling products, or both, your stakeholders have a vested interest in maximizing the efficiency of your transportation networks. Vehicle telematics systems are the way to go: combining technologies to collect vehicle data to derive insights on location, speed, maintenance, and more to improve safety, vehicle performance, and fuel consumption. Drivers can access travel-related dynamics in their vehicles, including weather and road conditions, while dispatchers can provide instructions on routes and daily tasks. Customer service agents can gain insights into delivery status and keep customers informed with real-time visibility. And you can meet sustainability goals by reducing carbon footprint.

SAP has long offered solutions that improve logistics services, global track and trace, and transportation, supply chain, and asset management. In fact, the  SAP Digital Vehicle Hub  application is a central repository containing vehicle data. It combines master data modeling and data transaction and telemetric capabilities, as well as vehicle lifecycle status, search, and monitoring functionality.

We continue to seek out innovative solutions from partners that incorporate vehicle telematics to integrate with our offerings. Our partners’ solutions are built on SAP Business Technology Platform, which brings together data and analytics, artificial intelligence (AI), application development, automation, and integration in a unified environment.

Here are some of the top solutions incorporating vehicle telematics available on SAP Store .

SAP Business Network Material Traceability.  With this solution, you can enhance safety, sustainability, and customer loyalty by capturing material provenance end to end, even for the most complex products across multitier supply chains. You can build trust and strengthen customer relationships through product genealogy from raw-material batch origin to finished products.

Last-mile Transport Management Software by VersaFleet.  This innovative solution allows you to digitalize your supply chains all the way to the last mile. You can boost routing efficiency, maximizing resources and saving transport and fuel costs. And keep customers notified of each fulfillment milestone throughout the delivery journey with automated email and text notifications.

Movement by project 44.  Shippers, carriers, and logistics professionals can better manage supply chains with this solution that delivers real-time supply chain visibility, workflow, and insights for goods in transit. It connects with SAP Business Network for Logistics to deliver real-time tracking and improved on-time performance. Visibility can be extended directly to customers to enable continuous monitoring.

ParcelLab Integration for SAP CX . This solution is all about post-purchase customer service – providing detailed information about the status of their parcel delivery instantly. Service agents can answer post-purchase inquiries quickly thanks to a 360-degree view of customer buying history, order and tracking details, and returns, with integration to SAP Customer Experience solutions.

Woocar by Woolabs.  With Woocar mobile telematics, you can reduce road accidents and carbon footprint by monitoring road transportation operations and sales fleets in real time. Dispatch and last-mile companies make sure drivers know their daily tasks, what to do and when thanks to intelligent routing and task assignment functionality. The solution works with SAP Business Network for Logistics.

Find the full list of cloud solutions incorporating vehicle telematics from SAP and partners on  SAP Store,  many available for a demo or free trial.

Solution(s) Discussed in this Post

  • SAP Digital Vehicle Hub
  • SAP Business Network Material Traceability
  • Last-mile Transport Management Software by VersaFleet
  • Movement by project 44
  • ParcelLab Integration for SAP CX
  • Woocar by Woolabs

workflow agent assignment in sap

Šī tīmekļa vietne lieto sīkfailus – mazus teksta failus, kas tiek saglabāti jūsu datorā vai ierīcē un kuros tiek reģistrēta informācija par jūsu apmeklējumu. Mēs paļaujamies uz sīkfailiem vairāku iemeslu dēļ, tostarp šādiem nolūkiem:

  • aktivizēt tērzēšanas pakalpojumus;
  • atcerēties jūsu pieteikšanās datus;
  • atcerēties, kas ir jūsu iepirkumu grozā;
  • ļaut jums kopīgot lapas, izmantojot sociālos tīklus;
  • ļaut jums publicēt jautājumus, komentārus un lūgumus palīdzēt;
  • parādīt tīmekļa vietnes aptaujas un lūgumus sniegt atsauksmes;
  • izsekot tīmekļa vietnes nepieejamības reizes un palīdzēt aizsargāt pret surogātpastu, krāpšanu un ļaunprātīgu rīcību;
  • mērīt tīmekļa vietnes trafiku, lai saprastu, kā mūsu vietne tiek lietota; pēc tam mēs izmantojam šos datus, lai uzturētu tīmekļa vietni un uzlabotu tās veiktspēju;
  • nodrošināt un izmērīt reklāmu efektivitāti;
  • rādīt personalizētu saturu (piemēram, informāciju par ar jūsu nozari saistītiem produktiem).

Jūs varat piekrist tam, ka mēs izmantojam sīkfailus, noklikšķinot uz “Piekrist”, vai arī varat pielāgot to, kurus sīkfailus ir atļauts lietot, noklikšķinot uz “Skatīt sīkfailu preferences”. Jūs varat jebkurā laikā mainīt savas preferences, jebkuras lapas apakšā noklikšķinot uz “Sīkfailu preferences”.

IMAGES

  1. Practical Guide to SAP Workflow Agent Determination

    workflow agent assignment in sap

  2. Sap workflow agent assignment expression

    workflow agent assignment in sap

  3. Create basic SAP Workflow

    workflow agent assignment in sap

  4. Create basic SAP Workflow

    workflow agent assignment in sap

  5. SAP workflow

    workflow agent assignment in sap

  6. SAP ABAP Central: S/4 Purchase Order Flexible Workflow: Agent

    workflow agent assignment in sap

VIDEO

  1. Workflow video

  2. SAP Workflow- Build and test the first workflow in 5 minutes

  3. Feature Friday

  4. Workflow

  5. How to do Workflow Administration in Private Cloud and On Premise

  6. Exchange: Assign a job

COMMENTS

  1. Maintenance of Agent Assignment

    The possible agents of a workflow are those users who are authorized to start the workflow manually. You can perform the assignment of possible agents in the basic data of a workflow definition or in the relevant multistep task. You only have to assign possible agents to a workflow if the workflow is to be started directly by users.

  2. 1705217

    Agent determination, Dynamic rule assignment , workflow , assignment , KBA , MM-PUR-GF-WOF , Workflow , MM-IV-INT-WF , Workflow , How To About this page This is a preview of a SAP Knowledge Base Article.

  3. Maintenance of Agent Assignment

    If the workflow is only to be started by events, do not assign any possible agents to the workflow. Task groups. If you assign possible agents to a task group, this assignment in passed on to all tasks, workflows and task groups contained in the task group. Check whether the assignment defined here really is to apply to all task groups, tasks ...

  4. Executing Workflows with Ad Hoc Agent Assignment

    Open the workflow outbox in your Business Workplace. Select the workflow for which you want to change the ad hoc agent assignment. Select to change the agent assignment. This displays the dialog box Ad hoc change of workflow agents.If a step has already been completed, the actual agent is displayed. For steps that have not yet been completed, the assigned recipients are displayed.

  5. Agent assignment procedure

    Agent assignment procedure. Dear Experts, I have made agent assignment in my workflow. But when I transport the workflow from development to quality server I see that I have to manually enable agent assignment by making tasks as general. Is this the right way to make tasks or general in each server or can it be handled via any transport request ...

  6. Workflow Agent

    This site uses cookies and related technologies, as described in our privacy statement, for purposes that may include site operation, analytics, enhanced user experience, or advertising.You may choose to manage your own preferences.

  7. Determining SAP Flexible Workflow Agents with Custom Responsibility

    You can also extend a standard responsibility context by adding your custom responsibility rule to determine agents that are responsible for your business process tasks, objects, and situation handling. 1. Extending Responsibility Contexts. Be sure to complete the following prerequisites before moving on to this step:

  8. Workflow

    To achieve this you need to define the task (or sub workflow) as a multiline element. his is done in task implementation in the workflow builder. Switch to the tab Other, in here you add your multiline container element containing. When you now go back to agent assignment, you will find two container elements for your multiline element ...

  9. Two ways for personalize agent assignment in a SAP Workflow PO

    In certain SAP implementations, we face the fact that the regular release strategy of purchase orders is not enough for an agent determination or creating custom workflows to perform certain tasks.

  10. Workflow

    Hi, Help me, How to assign agent id to workflow OR Table name of the workflow agent. Thanks . Subbu

  11. Workflow: Agent assignment

    SAP Community will be READ-ONLY from January 16 â January 23 for the technical migration. Hereâ s what you need to know to prepare. Home; ... Search Questions and Answers . 0. Former Member . Feb 07, 2015 at 11:12 AM Workflow: Agent assignment. 699 Views. Follow RSS Feed Dear All, The task has general agent assignment. Task is foreground task.

  12. Agent Assignment in Workflow

    I need to use this task for two purposes, one to show to the owner of the profile and second to the manager of the owner of the profile. I tried giving the rules 01200025 for Employee and 01200024 for the manager in agent assignment for the tasks, but the workflow hangs at these tasks. If I hardcode the agent to some user, it works fine.

  13. Workflow Agent Assignment

    The SAP Partner Groups will be INACCESSIBLE January 16-23 for a technical migration. ... Search Questions and Answers . 0. Former Member Jun 13, 2007 at 02:52 PM Workflow Agent Assignment. 1746 Views. Follow RSS Feed Hi, Can someone give me some direction on where in SPRO de we configure agent assignment. Thanks in advance. Ibou. Find us on ...

  14. Managing Workflow Assignments

    Using Assign To Me in Workflows. As an approver, you can assign workflows to yourself or to another individual so that other approvers know that this request is being worked on by someone else. You can now reserve workflows using Manage Workflow Assignment and flag your workflows, so other won't work on them when you're in charge.

  15. SAP Library

    Maintenance of Agent Assignment Use. This function assigns possible agents to a task. No possible agents are assigned initially to an SAP task or an SAP workflow. You can perform this assignment in Customizing. You can change and extend these assignments at a later date as well. Integration Establishing recipients at runtime

  16. Workflow Agent Assignment TCodes in SAP

    Workflow Agent Assignment Transaction Codes in SAP (25 TCodes) 6 : SWI1: Selection report for workflow s : Basis - SAP Business Workflow: 7 : SBWP SAP Business Workplace

  17. Vehicle Telematics Innovations from SAP and Partners on SAP Store

    Customer service agents can gain insights into delivery status and keep customers informed with real-time visibility. And you can meet sustainability goals by reducing carbon footprint. SAP has long offered solutions that improve logistics services, global track and trace, and transportation, supply chain, and asset management.