Post on 18-Dec-2014
description
CD106
Business Rules Framework plus for ABAPEmpowering Business Users
Carsten Ziegler, DA Agile DevelopmentOctober 14, 2009
© SAP AG 2009. All rights reserved. / Page 2
Disclaimer
This presentation outlines our general product direction and should not be relied on in making a purchase decision. This presentation is not subject to your license agreement or any other agreement with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or to develop or release any functionality mentioned in this presentation. This presentation and SAP's strategy and possible future developments are subject to change and may be changed by SAP at any time for any reason without notice. This document is provided without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this document, except if such damages were caused by SAP intentionally or grossly negligent.
© SAP AG 2009. All rights reserved. / Page 3
Agenda
1. About Business Rules
2. Business Rule Framework plus Business User Empowerment Components and Features Deployment Options Important Artifacts
3. BRFplus in SAP Applications
4. Outlook
5. Summary
© SAP AG 2009. All rights reserved. / Page 4
Agenda
1. About Business Rules
2. Business Rule Framework plus Business User Empowerment Components and Features Deployment Options Important Artifacts
3. BRFplus in SAP Applications
4. Outlook
5. Summary
© SAP AG 2009. All rights reserved. / Page 5
What are Business Rules?
ProcurementPlanning and
Analysis
Procurement
Purchase OrderProcessing
Goods Receipt and Service Entry
Invoice Processing
Payment
Demand / Request Creation
Creation
RFx can be created manually or by a predecessor document. RFx specific information (e.g. submission deadline, suppliers) is maintained.
Send to Supplier
RFx is sent to the selected suppliers to obtain a bid.
Receive and Evaluate Bid
Bids are received and can be evaluated according to different criteria (e.g. best price).
Awarding
Best source of supply is selected and notification of acceptance is sent to the supplier. Rejection is send to other suppliers.
Business Rules
A set of decisions / calculation mechanisms applied to a business process: Optimized process output Adherence to regulations/policies Process automation
RFxProcessing
Purchase RequestProcessing
© SAP AG 2009. All rights reserved. / Page 6
Problems with Conventional Methods
Rules inside Code
Business User
Rules
Roles
UI
Workflow& Task
Event
Data
Process Context
Rules
Roles
UI
Workflow& Task
Event
Data
Process Context
Out of
stock
Product
15 min
Reple-nish-mentorder
Out of
stock
Product
15 min
Reple-nish-mentorder
Business Expert
Rules
Roles
UI
Workflow& Task
Event
Data
Process Context
Rules
Roles
UI
Workflow& Task
Event
Data
Process Context
Out of
stock
Product
15 min
Reple-nish-mentorder
Out of
stock
Product
15 min
Reple-nish-mentorder
Business Analyst
Rules
Roles
UI
Workflow& Task
Event
Data
Process Context
Rules
Roles
UI
Workflow& Task
Event
Data
Process Context
Out of
stock
Product
15 min
Reple-nish-mentorder
Out of
stock
Product
15 min
Reple-nish-mentorder
Rules as Tacit Knowledge
No/Semi AutomationAutomated Enforcement
Rules in Documents
Rules inside Database
Sales CommissionsPremium Calculations…
TriggersStored
Procedures
Costs, archiving, backups, compliance?Agility, visibility for business, changes?
© SAP AG 2009. All rights reserved. / Page 7
Business Rules Management Flexible & agile business systems Precise & informed decision making
Faster turnaround times for changes Improved visibility for the business
Reduced cost for changes
Benefits of Using Business Rules ManagementRules
Roles
UI
Workflow& Task
Event
Data
Process Context
Rules
Roles
UI
Workflow& Task
Event
Data
Process Context
Out of
stock
Product
15 min
Reple-nish-mentorder
Out of
stock
Product
15 min
Reple-nish-mentorder
Model
Refine
Automate
Manage
Business Rules Management Benefit
Separation of business rules and code
Agile and maintainable systems
Modeling of complex business logic
Automation of key business decisions
Central management of business rules
Consistent application of corporate policy and government regulations
Business Experts can find, change and test critical business rules
Visibility, accountability and error-free business
© SAP AG 2009. All rights reserved. / Page 8
Example: Insurance Pricing Scenario
Ruleset for data validation and premium calculation
Application for insurance pricing
Error message because of invalid or incomplete data
Success message with calculated
insurance premium
DEMO
© SAP AG 2009. All rights reserved. / Page 10
Ubiquitous Business Rules
Banking: Relationship based Pricing, Scorecards, Credit Decisioning
Education: Fee Calculations, Course
Selections
Healthcare: Claims, Patient Monitoring, Fraud Detection
Logistics and Shipping: Parts Management, Duties Calculations,
Pricing Calculations
Public Sector: Tax Calculations, Customs Duties, Land Regulations,
License Fee Calculations
Insurance: New Products, Claims Settlement, Agent Commissions
© SAP AG 2009. All rights reserved. / Page 11
PWC Technology Forecast 2008
PriceWaterhouseCoopers, Technology Forecast 2008 “Business processes, in whatever form they take, depend heavily on business rules. Rules drive the activities, coordinate data movement and workflow, and provide decision automation in complex situations.”
„For enterprises, BRMSs provide great agility not only because they automate decisioning but also because they enable organizations to modify policies or implement new programs quickly.”
“The quality of rules engines in BPM solutions will likely emerge as a competitive differentiator”
“Enterprises that create value through rapid process changes are beginning to define a market opportunity for a preintegrated suite of tools that supports intelligent business performance management.”
Businessprocessmanagement
Businessintelligence
Businessrulesmanagement
Intelligent business performance platform
IT infrastructure
© SAP AG 2009. All rights reserved. / Page 12
Agenda
1. About Business Rules
2. Business Rule Framework plus Business User Empowerment Components and Features Deployment Options Important Artifacts
3. BRFplus in SAP Applications
4. Outlook
5. Summary
© SAP AG 2009. All rights reserved. / Page 13
Business User Empowerment
Change
Test
Manage
Explor
e
FindFacilitates cooperation
of Business and IT
© SAP AG 2009. All rights reserved. / Page 14
BRFplus Components in SAP NetWeaver
ABAPData Dictionary
Rules RepositoryArtifacts (Rulesets, Data Objects…) & Tools
API
Rules Engine
ABAP Application
Workbench
Rules Composition
User
BRFplus Components
Rule Composition and Testing WebDynpro ABAP transaction
Rules Engine ABAP Objects API
Rules Repository Based on ABAP and Data Dictionary
© SAP AG 2009. All rights reserved. / Page 15
Rules Composition
Rules CompositionBrowser based, configurable workbench (business user and expert mode)
Multiple rule visualizations: decision tables, trees, ‘if-then’, formulas…
Logs and views for change and execution tracking (audit and regulatory compliance)
Tools: simulation, consistency checks, dependency analysis, xml data exchange …
ABAPData Dictionary
Rules RepositoryArtifacts (Rulesets, Data Objects…) & Tools
API
Rules Engine
ABAP Application
Workbench
Rules Composition
User
© SAP AG 2009. All rights reserved. / Page 16
Rules Engine
Rules EngineConvenient API for ABAP applications
On demand code generation for unmatched performance
Runtime traces/logs
WebService and RFC generator
ABAPData Dictionary
Rules RepositoryArtifacts (Rulesets, Data Objects…) & Tools
API
Rules Engine
ABAP Application
Workbench
Rules Composition
User
© SAP AG 2009. All rights reserved. / Page 17
ABAPData Dictionary
Rules RepositoryArtifacts (Rulesets, Data Objects…) & Tools
Rules Repository
Rules RepositoryFull ABAP Server supportChange and Transport System
Access control
Client concept
Fully versioned repository
XML data exchange
Catalogs and filters
Quality tools
Data Dictionary
Various tables types for system customizing or local rules
API
Rules Engine
ABAP Application
Workbench
Rules Composition
User
© SAP AG 2009. All rights reserved. / Page 18
CentralizedRules management on central instance
Distribution to connected instances or
remote calls
Deployment Options
Distributed
Rules management on all instances
Distribution peer-to-peer
SAP ERP FinancialsApplications
Database
Deployment High deployment flexibility: distributed,
centralized or a combination of both
Local scenarios (access of memory + DB) and remote scenarios (RFC, WebService)
Tight integration of rules into applications
Easy reuse of rules
Local rules for unmatched performance
Very low TCO
Transport/XML Exchange
© SAP AG 2009. All rights reserved. / Page 19
Mode of Operation
Function
Application Code
Ruleset
Application Code calls BRFplus Function
Only 6 lines of code needed
Context input dataResult output data
BRFplus Function processes rules from assigned ruleset(s)
Rules can evaluate conditions, change data and perform actions
© SAP AG 2009. All rights reserved. / Page 20
Ruleset
Name, text, documentation, version overview, change tracking, release information, technical ID
Variables for intermediate values,initializations (code, DB, values, rules)
Ruleset precondition, priority, function assignment
Rule validity information and description
Rules to change data by value assignment, variable assignment and expressions (decision tables, formulas, …)
Rules to trigger actions (email, workflow, message log)
© SAP AG 2009. All rights reserved. / Page 21
Selected Action and Expression Types
Decision/Search Tree
Traverses a binary/non-binary tree with nodes being conditions and leafs being results
Decision Table
Sequentially processes a table of value ranges and returns the first row/all rows for which all ranges returned true
Database Lookup
Performs a database select to retrieve values for processing
Formula Allows the definition of complex formulas to be evaluated at run-time
Loop Process the array of data in the loop and performs operation based on the rules
Table Operations
Operates on entire tables to carry out aggregations, existence checks, line counts…
Routine Call Calls an ABAP routine (method or function module)
Email Sends Email
Message Log
Writes message into message log
Workflow Triggers Business Workflow
Expression Types Expression types define a
self-contained computational unit with a well-defined logic
Expressions use context data or nest other expressions to calculate, determine or derive result
Action Types Instead of returning a
result value, action types trigger an action in response to incoming data
© SAP AG 2009. All rights reserved. / Page 22
Decision Table
Decision Tables Powerful visualization - compact and structured Completeness and consistency – error prevention made easier Modular knowledge organization - rules grouped into a single table
Column definition: condition, result or action, comparison options, mandatory columns
Table definition: any number of condition or result columns, return of first or all matches
Rows: Checks for overlaps or gaps
Cells: include/exclude, enumerations, many options (equals, greater, less or equals, pattern matching, between, …)
Powerful cell options reduce amount of data compared to DB table
DEMO
© SAP AG 2009. All rights reserved. / Page 24
Tailor BRFplus to Your Needs
Extending Scope and Power of Expressions Custom Action and Expression Types
From scratch or inherit from existing types Provide best matching UIs and features
Custom Formula Functions Example: Income * CUSTOM_FUNCTION( Rate, Deduction ) Logic for formula function implemented in ABAP method Parameter definition and documentation derived from ABAP method
Extending Backend Application Exits
Authorization checks Change and save notifications Checks and activation vetos Dynamic value helps
BRFplus Extensions
BRFplus allows extension of capabilities both in the backend and the UI for best possible user experience and integration into applications. Handbooks with detailed instructions are available.
© SAP AG 2009. All rights reserved. / Page 25
Agenda
1. About Business Rules
2. Business Rule Framework plus Business User Empowerment Components and Features Deployment Options Important Artifacts
3. BRFplus in SAP Applications
4. Outlook
5. Summary
© SAP AG 2009. All rights reserved. / Page 26
BRFplus in SAP Applications
CRM
Loyalty Management
Territory ManagementReal-Time Offer Management
Business ByDesign
Field Control (dynamic UI attributes)
Automated Incident Dispatching
Human Capital Management (standard working time)
Expense Report (determination of provision variant)
Service Request & Order Management (service level objectives)
Transportation Management
Freight unit filtering
Loading/Unloading duration determination of freight units
Printer determination
Freight Costs Calculation
Social Sector (migration from BRF to BRFplus)
Benefit Decision Making Process Entitlement Calculation
Other
Advanced Metering Infrastructure (rule based event management)
Business Context Viewer
Incentives and Commission Management
Tax and Revenue Management (migration from BRF to BRFplus)
Master Data Governance
Risk Management
© SAP AG 2009. All rights reserved. / Page 27
Customization and Configuration
FoBuBRF
VSR
Derivation Tool Code Exits
BADIsCustomizing Tables
Simple configuration Limited scope Too many tables
Sophisticated configuration Inappropriate for simple cases Locks out Business Experts,
Developer needed
From simple to complex configuration Addresses business and IT requirements, models logic instead of
coding Multiple visualizations (decision tables, trees, formulas, text rules..) Tools for versioning, simulation, consistency checks, …
Migration
Consolidation of tools and engines towards BRFplus for next generation business rules management in ABAP applications with better user experience and performance at lower TCO.
© SAP AG 2009. All rights reserved. / Page 28
Agenda
1. About Business Rules
2. Business Rule Framework plus Business User Empowerment Components and Features Deployment Options Important Artifacts
3. BRFplus in SAP Applications
4. Outlook
5. Summary
© SAP AG 2009. All rights reserved. / Page 29
BRFplus (R)Evolution
2006 2008 2010 2012
Architecture verification
First customer and SAP pilots
Web UI More customer and SAP
usages Restricted release Applicable for simple use cases
Mass adoption Unrestricted release Applicable also for
complex use cases
Migration from various tools/engines to BRFplus
Competitive differentiator Community with
extensions and best practices
NW 7
00 E
HP1
NW 700 EHP2
© SAP AG 2009. All rights reserved. / Page 30
Agenda
1. About Business Rules
2. Business Rule Framework plus Business User Empowerment Components and Features Deployment Options Important Artifacts
3. BRFplus in SAP Applications
4. Outlook
5. Summary
© SAP AG 2009. All rights reserved. / Page 31
Summary
Business User EmpowermentGraphical approach for intuitive rule composition and management (modeling rather than programming)
Transparency of rule execution and tracing for audit
Personalization and segmentation of rules (object catalogs, filters, personal configuration, etc.)
Zero Administration Seamless integration with ABAP applications and ABAP server (ABAP, DDIC, Change and Transport System, Web Service and RFC Generator)
High performance and nearly no footprint (<100 kB)
Zero setup effort before rule modeling (no installations, no plug-ins, no business vocabulary setup, no additional sizing, browser-based UI)
Rapid Time-to-ValueRapid prototyping with feedback-based build cycle (build, simulate, optimize) leading to lower project cycle times (up to 60% reduction)
Business users can work with the rules in business semantics while IT experts can technically modify the rules.
Both business and IT can work in the same environment.
© SAP AG 2009. All rights reserved. / Page 32
Virtual SAP TechEd :Extend your SAP TechEd Year Round
Best of SAP TechEd at Your fingertips View sessions that you missed Replay and review sessions that you
attended Quality SAP TechEd Training
Best Practices Product Roadmaps
Learn at your own pace Gain Access to sessions recorded in
2006, 2007, 2008 and 2009* (*available December 2009)
24/7 Access online/offline Flexible Course Syllabus
Volume Licensing Special Pricing for multiple subscribers
http://www.sdn.sap.com/irj/scn/virtualteched-allsessions
© SAP AG 2009. All rights reserved. / Page 33
Further Information
è
è SAP Public Web:Business Rules in SDN
http://www.sdn.sap.com/irj/sdn/nw-rules-management
BRFplus in SDN
https://www.sdn.sap.com/irj/sdn/nw-rules-management?rid=/webcontent/uuid/d00df7db-c783-2b10-aa97-ccfeacc19fcb
BRFplus Knowledge Center in SDN https://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/90754865-f283-2b10-6d9f-b10f3c28c3a0
Related Workshops/Lectures at SAP TechEd 2009BPM101 Overview of Business Rules Management in SAP
NetWeaver Composition Environment , Lecture
BPM300 Architecture Guidelines for Composite Applications
BPM261 Accelerating SAP NetWeaver BPM with BRM
Thank You!
Carsten Ziegler
Development Manager
BS Ext Agile Development Progr
SAP AG
Dietmar-Hopp-Allee 16
69190 Walldorf
T +49 6227 7-62733
F +49 6227 78-34314
M +49 151 16810210
E c.ziegler@sap.com
www.sap.com
ContactFeedback
Please complete your session evaluation.
Be courteous — deposit your trash, and do not take the handouts for the following session.
THANK YOU !
© SAP AG 2009. All rights reserved. / Page 36
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.
Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries.
Oracle is a registered trademark of Oracle Corporation.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc.
HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology.
Java is a registered trademark of Sun Microsystems, Inc.
JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape.
SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.
Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company.
All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warrant.
Copyright 2009 SAP AGAll Rights Reserved