cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Flexible Workflow for PR

EricXue
Explorer
0 Kudos

Hi, Experts

I maintained a PR Flexible workflow settings and set agent determination as Manager of Workflow Initiator,
but after save PR document, the following message appeared. Appreciate for any advice:
 - Recipient role with id 'superiorOfWorkflowInitiator' cannot be resolved

What I have done in system(S/4HANA 2022 ON PREMISE  FPS(02/2023)  
1. create Flexible workflow, set agent determination as Manager of Workflow Initiator.(Reference  *1.)
2. maintain employee and approver's Organizational Structure(Reference  *2.)
3. maintain manager' role
4. Create PR through Tr-code:ME51N

*1 https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/af9ef57f504840d2b81be8667206d485/91ab576eaf58475f893...
*2 https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/4cef93946a0b48ec89533b3c34443b85/017b7d3ea4c04710ba8... 

Screenshot_ErrorMessage.pngScreenshot_Employee.pngScreenshot_Manager.pngScreenshot_ManagerRole.png

View Entire Topic
StephaneBailleu
Active Contributor
0 Kudos

Hi 

The set up of the manager seems all right in the PPOME

Do you have a user linked to the employee infotyp 0105 OOO1 (PA30) ?

If yes have you check the task linked to your workflow is it a general task (PFTC) or directly in SWDD_SCENARIO

Cause if the determined agent is not part of the possible agent then it is excluded and the workflow finds no one 

StephaneBailleu_0-1716537991923.png

To do so go to the workflow template in SWDD_SCENARIO on the activity tab

StephaneBailleu_1-1716538211959.png

Check the dialog task (click on the TS something)

If the Process in background is green then do nothing (like in the image below)

StephaneBailleu_2-1716538330043.png

If the assigned agent is green like in the image below the assignment has been done (so most of the time general task) you can check by clicking on the yellow symbol StephaneBailleu_4-1716538498180.png

 

StephaneBailleu_3-1716538411266.png

if it is not a general task then click on caracteristic

StephaneBailleu_5-1716538535702.png

Do not forget the assignment does not get transported automatically you can do it by using transaction RE_RHMOVE30

 

 

 

EricXue
Explorer
0 Kudos

Thanks StephaneBailleu.

The user(manager, Workflow Initiator) have linked to the employee infotyp 0105/0001.

Follow your advice, I checked workflow template by t-code: SWDD.
I am not sure if it is right, if there are anything I should do, please let me know.
Screenshot 2024-05-24 171955.png

StephaneBailleu
Active Contributor
0 Kudos
Eric the task displayed in your reply is a background task,