cancel
Showing results for 
Search instead for 
Did you mean: 

Teams and Responsibilities in classic workflow ?

0 Kudos

Dear all,

Is there any possibility to use the teams defined via the Manage Teams and Responsibilities app for the agent determination in a SAP Business Workflow (classic workflow)?

I am looking forward to receiving your comments.

Best regards,

Holger

Accepted Solutions (1)

Accepted Solutions (1)

Here's the solution that I implemented:

The first part is as 3a9e4ce873a94034b33dc62b0ce600ee is indicating (rf. below):

  • defining an agent determination rule with a function module

But then it's not necessary to call the API Responsibility Management Teams - Read (this should work, too) because all the information is in the CDS views which are in the package CA_RSM_TEAMS_DDIC (you can for example check the select statements that are used in the class CL_RSM_BADI_IMPL_TEAM). That's the way how the SAP standard retrieves the agents in the flexible workflow.

Answers (3)

Answers (3)

0 Kudos

Dear Dominik,

Thanks a lot for your comment. I really appreciate your efforts.

But regarding the SAP help the Teams and Responsibilities app can only be used for the flexible workflow WS78500050 :

"Using teams and functions to define approvers: This option applies only to workflow template WS74300050." (https://help.sap.com/viewer/ac319d8fa4ea4624b40a58d23e3c4627/1909.002/en-US/27cc6156bcb6d154e10000000a441470.html)

Best regards,

Holger

DominikTylczyn
Active Contributor
0 Kudos

Hello holger.roth

I've done some digging around your challenge. It looks like you can consume teams and responsibilities with R type agent determination rules.

As an example have a look at standard Approval Processes for Bank Account Management scenario. It's using workflow templates WS78500050 and WS74300043. The scenario allows to define agents with teams and responsibilities Using Teams and Functions to Define Approvers. When you investigate the templates and their steps you'll see that agent determination is through R type rules.

I've not had a chance to test that in practice. Those are my conclusions of the SAP Help documentation and the templates overview.

HTH, BR

Dominik Tylczynski

DominikTylczyn
Active Contributor
0 Kudos

Hello holger.roth

I'm not sure if settings in app Manage Teams and Responsibilities can be used directly in classic workflow scenarios. However you can implement your own agent determination rule in classic workflow. The rule can call a custom function module where you can read teams and responsibilities settings and use them any way you want.

See SAP Help on defining an agent determination rule with a function module: Defining Rules Using Function to Be Executed

SAP API Hub lists two APIs to read teams and responsibilities that might help you implementing own agent determination rule:

Best regards

Dominik Tylczynski

Hi Dominik,

Thanks a lot for your answer. I agree that your suggestion would lead to the correct result.

But regarding Alan's blog (https://blogs.sap.com/2019/07/03/migrating-from-sap-business-workflow-to-flexible-workflow/) I got the impression that there should be a solution which is closer to the SAP standard (perhaps I am wrong) :

"There is a new app in S/4HANA to maintain the grouping and hierarchy assignments of users to logical objects such as plants or regions. This maintenance is performed using the Fiori Teams and Responsibilities App, which is a simpler way of maintaining small organizational responsibilities in the Fiori UI. Both classic workflows and flexible workflows can consume whatever is maintained in this app."

Best regards,

Holger