cancel
Showing results for 
Search instead for 
Did you mean: 

Purchase Group as a condition in Purchase requisition workflow

SAPSupport
Employee
Employee
0 Kudos
128

Hi Team,

We are configuring flexible workflow for Purchase requisition and unalbe to find the Purchase group as a Start condition. We have requirement to have the PR release based on Purchase groups but the same is not available in the Flexible workflow for PR in application 'Manage Workflows for Purchase Requisition'.

Could you please check and help us on how to configure the Flexible workflow based on the Purchase groups for PR's.

Regards.


------------------------------------------------------------------------------------------------------------------------------------------------
Learn more about the SAP Support user and program here.

Accepted Solutions (1)

Accepted Solutions (1)

SAPSupport
Employee
Employee

There are 2 BADIs to incorporate new conditions ,

You can find  the BADIS in the Flexible Workflow Framework:

BADi - SWF_WORKFLOW_CONDITION_DEF,  Method  : GET_CONDITIONS

Use : to define additional conditions for scenarios

BADi - SWF_WORKFLOW_CONDITION_EVAL,  Method  : EVALUATE_CONDITION

Use : to evaluate the additional conditions defined

you can find sample code in the following blogs and KBAS :

 

https://blogs.sap.com/2019/12/03/sap-s-4hana-cloud-flexible-workflow-with-new-custom-pre-condition-f...

https://community.sap.com/t5/enterprise-resource-planning-blogs-by-sap/sap-s-4hana-cloud-flexible-wo...

https://me.sap.com/notes/3331439/E

https://me.sap.com/notes/2841783/E

https://me.sap.com/notes/2767845/E

 

Thanks 

SAP Tehcnical Support 

Answers (0)