Professional Documents
Culture Documents
0 (Using BRF)
Applies to:
SAP SRM 7.0 For more information, visit the Supplier Relationship Management homepage.
Summary
This document helps user to create workflows using BRF (Business Rule Framework) is called Process Controlled workflow. This document explains the procedure for SC workflow. Author: Bhanu P R Gattu
Author Bio
Bhanu P R Gattu is working as an ABAP/WORLFOW consultant in ACS Systech Integrators in Bangalore from past 4 years.
Table of Contents
Process Controlled workflow Step by Step Procedure ....................................................................................... 3 Dynamic Process Levels (To Increase Process Levels Dynamically) .......................................................... 15 Related Content ................................................................................................................................................ 16 Disclaimer and Liability Notice .......................................................................................................................... 17
Need to create the evaluation id as event in BRF (Business Rule Framework). To do so, go to transaction BRF
Assign the implementation class 0EVENT. This event will help you to identify or select the Process Schema. This can be achieved by Rules of that particular event by assigning Expression as shown in below screens.
There are many types of Expressions: We need to use function module Expression type if we want to choose process schema based on conditions. Or we can use constant type if we have single Process Schema. We have multiple process Schemas assigned to SC.
Assign standard function module /SAPSRM/WF_BRF_0EXP000 as access FM. Assign a class and method as parameters to this FM. There 2 parameters are constant type Expressions. One parameters represents Class Name and another parameter represents Method Name.
To create Class name and Method name parameters, Class name Expression needs to be created with following naming convention. Class Name: ZC_C1_C_CON_* Method Name: ZC_C2_C_CON_*
Create your own method to select the Process Schema. Assign the parameters as shown in below screen.
Exceptions, if any.
Now under each Process Schema we have to create Process Levels. Each process Level will work as one step in workflow. Each process level will have 1. 2. 3. 4. Level Type Evaluation ID ( BRF Event) Responsibility resolver Name Type of decision.
And final process level should be Automatic (system user) level type, 0EV999 as evaluation id and task number 40007988.
Consider at present we have 7 custom process levels and one system process levels.
First Process Level: Level Type: Approval with completion. Evaluation ID: ZEV_SC_CATEGORY ( BRF event).
In this case we will validate the Process level by using formulas, If all formulas are successful, then process level is true else it is false. Here we have two formulas
Formulas Expression can be any type of expression, in this case we have Function module Expression, in that Expression we can assign EV_VALUE as X or others based on conditions.
Procedure to create Responsible Resolver Name: In this procedure we will assign the approvers for the work item ( RT_APPROVERS internal table will have the approvers) SPRO SAP Supplier Relationship Management SRM Server Cross-Application Basic Settings Business workflow Process-Controlled Workflow Business Process Configuration Define filter values for BADI Define Agents.
SPRO SAP Supplier Relationship Management SRM Server Business Add-Inns workflow Process-Controlled Workflow Define Agents.
Business
If you want to group the items Use the below mentioned Method. We can use this method to create Area Class for group of items or SC by passing the Approver id or any value to find the approver. We can copy the standard implementing class of BADI /SAPSRM/BD_WF_RESP_RESOLVER.
Sample code:
Copy SAP standard Method /SAPSRM/CL_WF_AREA_MANAGER and use method GET_RESPONSIBLE_APPROVERS to assign responsible approvers. Use this method in GET_APPROVERS_BY_AREA_GUID method.
Sample Code:
GET_RESPONSIBLE_APPROVERS:
Dynamic Process Levels (To Increase Process Levels Dynamically) Implement the BADI /SAPSRM/BD_WF_PROCESS_CONFIG. (Read the documentation of the BADI) Before that please apply OSS note -1372031 (Up to SRM 7.0 Only).
Related Content
Process Controlled Workflow Configuration Guides for SRM 7.0 Business Rule Frame Work