cancel
Showing results for 
Search instead for 
Did you mean: 

Determine/set agent from custom table in standard Sales Order Flexible workflow

mayurespatil11
Explorer
0 Kudos

Hi,

We are using standard flexible workflow WS02000006 for approving newly created Sales Order in system. Currently we have setup recipients in Manage Workflow app but in our new requirement, there are various conditions and based on those conditions there can be different approvers.

For this there is Z table, in which those conditions are saved and against those the userids of approvers are maintained. I tried to search BADI for defining agent at runtime, but not able to find any for sales order.

Can anyone please suggest how I can set approver maintained in custom table for standard sales order flexible workflow?

Thanks & Regards,

Mayuresh

Accepted Solutions (0)

Answers (1)

Answers (1)

SBach
Advisor
Advisor
0 Kudos

Hi Mayuresh,

depending on your system status (should be available for S4 2021 05/2022) you could define a custom responsibility rule and use a bady implementation therefor to define complex agent determination logic. An example for a custom rule plus BAdI (for procurement) you can find here: https://blogs.sap.com/?p=1474329?url_id=text-global-profile-inbox-mod.

Best regards

Sebastian

mayurespatil11
Explorer
0 Kudos

Hello Sebastian,

Our system is S4 2021 02/2022 as shown below.

For this version is there any other way to handle since I cannot use the above solution provided.

Thanks & Regards,

Mayuresh

SBach
Advisor
Advisor
0 Kudos

Hi Mayuresh,

could you check if the Apps https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F4637')/S24OP and https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F4636')/S24OP and the BADI RSM_BADI_STATIC_RULE are available? If you could enhance the Agent Determination with a extended context and BADI definition / Rule. Check the link from answer.

Please also check if you can make use of responsibility functions and responsibility definitions before. They are normally build to define rules for agent determination.

Regards

Sebastian