cancel
Showing results for 
Search instead for 
Did you mean: 

Flexible Workflow for PR

Neha_s
Explorer
0 Kudos

Hi,

I have configured flexible workflow in S4 Hana 2022 private cloud system however while creating the PR I'm getting error as 'Recipient role with id '/RULE/MMPUR_PR_BD_AGNT' cannot be resolved', I have implemented the BAdi 'MMPUR_WORKFLOW_AGENTS_V2' with custom logic of adding users to approver list in BAdi implementation. In Manage workflow app in recipient I have maintained role as BAdi agent determination. The standard workflow triggered is 'WS02000458' I have tried adding rule under agents with rule id '00800021' but still i'm getting the same error.

Could anyone please help me understand if i need to change any other settings in this workflow to enable BAdi determination logic.

 

Thanks.

 

 

Accepted Solutions (0)

Answers (2)

Answers (2)

paul_bakker2
Active Contributor

Hi,

 That error message might mean that your BADI is simply not returning any agents. Can you confirm that a manual test (like the one attached) is working? You can execute it by drilling down to the implementing class of the BADI:

paul_bakker2_0-1713404777796.png

Also check that the ApproverList has sensible values. Good luck!

Paul B, Hanabi Technology

 

Neha_s
Explorer
0 Kudos
Hi, Thank you its working now.
ssrikanthh
Discoverer
0 Kudos

Hi @Neha_s : You can try this option...

Please make sure the respective dialog task is a general task with the below settings.

Generalize tasks and activate event type linkages for flexible workflow: 
In Customizing for SAP NetWeaver under Application Server -> Business Management -> SAP Business Workflow -> Perform task-specific Customizing.

ssrikanthh_0-1713329264335.png

 

Neha_s
Explorer
0 Kudos

Hi @ssrikanthh ,

Thank you for the response.

Event type linkage is already active but still facing the same issue.