Tuesday, August 7, 2012

BRF Configuration Part - 1

BRF (Business Rule Framework)

 In this Article we will see the basic config settings required for the BRF.
BRF Stands for Business Rule Framework. Here we will see the configuration required for BRF.
If we see the config the BRF is categorized into 3
Technical Configuration
BRF Configuration
Business Process Configuration





Technical Configuration:





Customize SAP Business Workflow Automatically

( Tcode ACWF (or) Program BBP_AUTO_CUST)
Here we can do the automatic customizing of the workflow, This must be done on client-specific and it does not cover task specific  customizing, that is assignment between  taks and possible agents.
These are the following steps we need to follow
1. Choose Perform Automatic Workflow Customizing.
2. See whether the check results listed are all correct.
                3. Choose RFC Destination Info
             4. Choose Start Verification Workflow.

Check Event Trigger  Configuration

Tcode SWDD
 In this task we can check whether Main workflow “WS 40000014” can be started  with an event. We need to follow the below steps
1. Enter the main workflow name WS40000014 into the Workflow field.
2. Choose Goto -> Basic Data.
3. Choose Start Events and check whether a new event has been created.

Check  Event Type Linkage


Here we check the Event type linkage , The following entry should have maintained with “Type Linkage =  Type equation here.
 Generalize Tasks
In this activity  we will set all tasks  of task groups TG 40000003, 40000005, and TG 40000007 as “General”. So that these tasks can be processed by all users

 Check Task Generation
In this Customizing activity, you check whether all tasks are delivered as general tasks

This activity is used to check whether the Task is consistent or no
Program : BRF_TRANSPORT_SIMPLE
Tcode : /SAPSRM/BRFTRANSPORT
This is a report when executed  the BRF objects specific to SRM will be transported to a sandbox system.
 

 Process flow
1. Define events
2. Define expressions
3. Define groups

 



If you  don’t have authorization then go to table TSTC and input the Tcode you will get the program name “BRF_SCREEN_START”
Define Events
Once you click on “Define Events” the following screen comes up, Events are used to execute process levels and to define how a workflow runs.
Each process level is assigned to an event.
This event connects a level in the level table “SAPSRM/VC_WF_P” with rule evaluation.
Which is used to determine whether this level is required for a document.
An event contains expressions that  access fields of a document for example, the product category of an item. In this way, document data can be used to determine whether an approval step needs to be activated.
The event provides the value 'true' (the level is not required) or 'false' (the level is required).


Created one Application Class and Events

Define Events


Right click on “events “ and click on “Create Events”



Select from the F4 Help(Impl Class), Under Event Enter the Event Name and event gets created


So when you create a Event then there are two classes gets assigned to your event
CL_DET_ASSIGNMNT_RL_BRF
CL_DET_ASSIGNMNT_RS_BRF
You can define your own class for the event




Define Expression

To create Expression Right click on “Expressions” and click on “Create Expression”
When we create Expression then  we need to input the Impl Class which you can select from the F4 Help
Once you select the Impl class click on “Enter”
So we have defined  a Constant Event


                                     
In the above screen shot we have created an event and an expression

Define Groups

Here we create groups to group together  Business Rule Framework Objects of the same area


In the Next Post we will see "Business Process Configuration".

No comments:

Post a Comment