Agenda
• BRF Plus
• Difference Between BRF & BRF Plus
• Elements of BRF+
• Storage and Operation Mode
• Elements of Workflow
• Integration of BRF+ with Workflow
• MDG Workflow
BRF Plus- Business Rule Framework
What is BRF Plus ?
BRF Plus- Business Rule Framework
What is BRF?
BRF Plus- Business Rule Framework
What is Business Rule?
BRF - Business Rule Framework
▪ Business Rule
▪ Business rules are logical statements that determine and control the business functions of an organization.
▪ They enable an organization to achieve its goals by describing the operations, definitions and usages
▪ Include everything that runs a business, for instance, business habits, manuals, policies, lines of computer code.
▪ SAP Examples
➢ HR Module - To calculate the Employee Salary
➢ MM Module - To derive the Material Expiry date
➢ FI – To assign a credit limit of a customer and So on
▪ These are subjective with respective to Time and Situation and demands a frequent Changes
▪ Rules inside Database – Rules are often maintained as Routines, Procedures and Access sequence.
▪ Rules inside Code – Rules are often incorporated in the code logic by using IF ENDIF or CASE statements.
▪ Rules in Documents – Rules are often stored in excel sheet, or word document; however this option requires special attention to ensure
versioning, archiving and compliance.
BRF - Business Rule Framework
Solution ?
BRF - Business Rule Framework
Hiring a superman
BRF - Business Rule Framework
Smart Configurable Tool
BRF - Business Rule Framework
Formula & Derivation Tool
BRF - Business Rule Framework
Formula & Derivation Tool
• Developed in SAP GUI Interface
• Initially Developed for Insurance Application
• Improved with generic nature
• Reuse the SAP data types
• Client Dependent
• Interpretation Rules
• Later on FDT is renamed as BRF - Business Rule Frame Work
• Identified the improvements
• Introduced with BRF Plus Application
BRF VS BRF Plus
Context
BRF BRF Plus
User Interface SAP GUI (2005-2007) Webdynpro
Rule Execution Interpretation Code generation and interpretation
Context and Result No Context but only Function Modules Context as input and result as output
Persistence Layer Only Delivery Class E Class A, Class C, Class S are supported
Data Client Specific Cross Client and Specific
Transport Manual Automatic
Data Types Elementary Elementary, Complex (Structures &
Tables)
API’s UI + ABAP are encapsulated UI & ABAP (basically decoupled)
BRF - Business Rule Framework
Pre-requisites
• SICF services
• /sap/bc/webdynpro/sap/fdt_wd_workbench (FDT Workbench)
• /sap/bc/webdynpro/sap/fdt_wd_object_manager (FDT Object manager)
• /sap/bc/webdynpro/sap/fdt_wd_catalog_browser (FDT Catalog browser)
• Roles
• SAP_BC_FDT_ADMINISTRATOR
BRF Plus - Elements
Application Stands as top level container for all kinds of different BRF plus objects
Data Object To define fields and structures that can be used to configure rules & filters
Expression Type Defines the computational power
Expression An expression can be considered to be an instance of an expression type. (Logic Kind)
Boolean, Case, Constant, Data base Lookup, Decision Table, Decision Tress, Formula, Loops etc
Action Actions are special expression types for definition of interactive parts
Rules The rule is able to perform the following operations
1. Trigger an event
2. Derive the result
BRF Plus – Storage Types
Storage Type Client Transport Cross-Application Usage
System client-independent transportable or local Can use system objects.
Customizing client-dependent transportable or local Can use system and
customizing objects.
Master Data client-dependent local Can use system,
customizing, and master data
objects.
BRF Plus- Mode of Operations
• Functional Mode
• In functional mode, function execution starts with the assigned top expression. From this top expression, the
processing may run through any number of nested subexpressions until a result is returned.
• Event Mode
• In event mode, the function is associated with a list of rulesets that are executed according to their
execution priority and their position in the list.
• Functional and Event Mode
• This mode is a combination of the modes mentioned above. At runtime, the function starts
processing the assigned top expression. Once the expression evaluation is finished, function
execution continuous with the associated rulesets.
BRF Plus- Workflow Integration
• Two Approach's
• 1) BRF+ is triggered from workflow through an activity
• Create Workflow Step as (Include BRF Plus function)
• Assign the Function ID
• Map the Workflow and BRF+ Container
2) Workflow is integrated with BRF+ through Ruleset
• Create the workflow step as BRF+ Task
• Assign Function & Rules Set
• Bind the Workflow and BRF+ Containers