comp 208

38
COMP208 BRFplus for ABAP The Framework for Business Rules Carsten Ziegler, Application Platform SAP AG Sudhir Sangani Rao, NW BPEM BRMS SAP AG

Upload: koizak

Post on 18-Oct-2015

13 views

Category:

Documents


2 download

TRANSCRIPT

  • COMP208 BRFplus for ABAPThe Framework for Business RulesCarsten Ziegler, Application Platform SAP AGSudhir Sangani Rao, NW BPEM BRMS SAP AG

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *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 2008 / SAP TechEd 08 / COMP208 Page *About Business Rules Quick Demo of BRFplusBRFplus Features and ComponentsScenario: Insurance Eligibility and PricingConnectivityFurther InformationAgenda

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *A little bit about Business Rules...Business rules or business rule sets describe the operations, definitions and constraints that apply to an organization in achieving its goals. (Wikipedia)Business rules represent the policies, guidelines that drive operational business decisionsBusiness rules are owned by Business, not by IT

    Examples for Business RulesBusiness Rules are expressed intext rules (if then else )decision tables/treesformulas

  • Examples from across IndustriesRules are Ubiquitous. Rules are Everywhere !! SAP 2008 / SAP TechEd 08 / COMP208 Page *

    TelecomContent Based Customizable BillingInsuranceNew Products, Claims Settlement, Agent CommissionsMortgageEligibility, Pricing, UnderwritingLogistics & ShippingParts Management, Duties Calculations, Pricing CalculationsPublic SectorTax Calculations, Customs Duties, Land Regulations, License Fee CalculationsStock ExchangesAlert EnginesEducationFee Calculations, Course SelectionsCRMQuotations, Campaigns, Discounts, Recommendations, Pricing, Cross Sell HealthCareClaims, Patient Monitoring, Fraud DetectionBankingRelationship based Pricing, Scorecards, Credit Decisioning

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *Enforcing Business Rules Conventional MethodsRules as Tacit KnowledgeNo/Semi AutomationAutomated EnforcementRules In DocumentsRules in CodeRules inside Databases

  • Typical Customer ChallengesZero visibility into business decisions Critical business rules are locked in code or databasesBusiness has no visibility into how systems take decisions

    Change resistant IT systemsBusiness rules can be very volatileHardwired business rules make change difficult for ITUnacceptably long testing and change cycle timesHigh costs of correction and rework

    Inefficient and Costly Human ExpertsNeed to maintain a pool of trained expertsContinuous training and hiring costsVery complex rules and error prone & time consuming human decision making

    Scattered knowledgeBusiness rules not centrally managedScattered across code, manuals and as tacit knowledgeInadequate, ambiguous and inconsistent business rules across the EnterpriseHigh risk of compliance violation

    SAP 2008 / SAP TechEd 08 / COMP208 Page *

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *How is it achieved?Can't we just have faster application development lifecycles?What to change?Where to change?Test the applicationPerform unit tests, functional tests, integration testsWith Business Rules FrameworksProvide a constrained environment for changeEnable Business Users to changeProvide integrated testing; impact of change is clearClear inputs and clear outputsRules are versioned and are auditable and are self documenting"Empower" users to feel comfortable about making the change

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *How do you "Empower" business users..?Empowerment of business usersProvide a lifecycle management for rule changes.Provide integrated testing and simulation capabilities.Provide easy to use user interfaces and "Not Code.Provide expressive concepts such as decision tables, decision trees and if-then rules for modeling business rules.

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *Examples of Business Rules..Decision TableDecision TreeIF-THEN Rule

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *The key benefits of Business RulesHigher degree of transparencyExplicit documentation of business practice decisions instead of secrets kept in code or some peoples headsBetter understanding and predictability of application behaviorDecreased maintenance and testing costs because business rules are decoupled from application codebusiness users can modify, test and simulatereduction in modification cycle timequicker response to changing conditionsno downtime, no code change neededImproved administration of business practice decisions because of change history and clear ownership of rulesFaster development by modeling approachSAP applicationsPartners and customers in composite scenarioConvenient graphical representationRules can be displayed in the most practical and natural wayDecision TablesDecision TreesFlow ModelsScorecardsText Rules

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *About Business Rules Quick Demo of BRFplusBRFplus Features and ComponentsScenario: Insurance Eligibility and PricingConnectivityFurther InformationAgenda

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *Quick Demo of BRFplus

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *About Business Rules Quick Demo of BRFplusBRFplus Features and ComponentsScenario: Insurance Eligibility and PricingConnectivityFurther InformationAgenda

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *BRFplus OverviewBRFplusDecision TableDecision TreeFormula(Quantity * 1.19) + ServCharge/*-+7894561230+/-,CustomerGroupOpenItemsOpenItemsAB,C< 1000$>= 1000$Customizing TablesSystem TablesRules ProcessorRules Repositoryfront-endback-endToolsServicesWorkbenchObject CatalogsWebService GenerationXML Export/ImportQueryTrace and SimulationTransportVersioning and HistorizationCode GenerationExtensibilityDDIC BindingUnit/Currency conversionMaster Data Tables

    AmountTransactionCheckType0$..100$None> 100$InternalNone> 100$External4-Eye

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *Functional Mode of Operation

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *Event Mode of Operation

  • Some Expression TypesBRFplus allows to define new expression types, most features and services can be reused SAP 2008 / SAP TechEd 08 / COMP208 Page *

    BooleanBoolean arithmetic supporting any number of operands, parenthesis, AND, OR, NOTBRMS ConnectorConnects BRFplus with SAP NW BRM or partner productsCaseMapping of cases with results; when then , when then Database LookupPerforms a database select to retrieve values for processingDecision TableSequentially processes a table of value ranges and returns the first row/all rows for which all rangesreturned trueDecision Tree/Search TreeTraverses a binary/non-binary tree with nodes being conditions and leafs being results FormulaAllows the definition of complex formulas to be evaluated at run-timeRandom NumberGets a random number ordetermines whether a certain probability is metStatic ABAP MethodCalls a static ABAP method of a class that implements a specific interfaceStep SequenceSequentially processes a number of expressions/functions keeping all available values (context / results)in a central work area Value RangeChecks whether a certain valuelies within a value range

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *Some FactsInitial Shipments NW 700 Enhancement Package 1 NW 710 Enhancement Package 1integrated into many SAP applicationsDevelopment LanguageBackend: ABAP Objectscomprehensive API to define and evaluate Business RulesUser Interface: WebDynpro for ABAPstandalone and reuse UIsCustomer/Partner EnhancementsUser interface is based on Model-View-Controller paradigm Backend and user interface are modularBackend: usage of customer defined expression types easily possibleUser Interface: configuration of screens, development and replacement of screens possibleUser Interface: stand alone usage or embedding into another application possible

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *About Business Rules Quick Demo of BRFplusBRFplus Features and ComponentsScenario: Insurance Eligibility and PricingConnectivityFurther InformationAgenda

  • Insurance Eligibility and PricingEligibility Determination of the eligibility status of the insurer from his demographic detailsCheck for completeness of required mandatory detailsValidation of given inputs and provide error messagesPricingCalculation of the premium quote for the insurer for the chosen insurance product and the face amountRisk class categorization based on the health status of the insurerCalculation of premiums

    ObjectiveTo ascertain eligibility and obtain a premium quote for the selected insurance product, given his/her basic demographic details. SAP 2008 / SAP TechEd 08 / COMP208 Page *

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *Scenario

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *About Business Rules Quick Demo of BRFplusBRFplus Features and ComponentsScenario: Insurance Eligibility and PricingConnectivityFurther InformationAgenda

  • BRMS ConnectorBenefitsConnection with NW BRM or any other BRMS possibleenables usage of existing BRMS enables use of very specialized BRMSConnection between ABAP and Java stack

    FeaturesConnects external rules engines and NW BRM with BRFplusCommunication based on RFC/JCO and Web ServicesAllows you to export the BRFplus design time information (XML Schema)Provides runtime data exchange (XML)Built-in integration with NW BRM for Java

    SAP 2008 / SAP TechEd 08 / COMP208 Page *

  • Connectivity Architecture BRFplus - BRM SAP 2008 / SAP TechEd 08 / COMP208 Page *

  • Modeling Steps SAP 2008 / SAP TechEd 08 / COMP208 Page *

  • How does the modeling of rules happen? SAP 2008 / SAP TechEd 08 / COMP208 Page *

  • How does the modeling of rules happen? SAP 2008 / SAP TechEd 08 / COMP208 Page *

  • How does the modeling of rules happen? SAP 2008 / SAP TechEd 08 / COMP208 Page *

  • Execution Steps SAP 2008 / SAP TechEd 08 / COMP208 Page *

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *Demo of BRFplus- NW BRM Connector

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *About Business Rules Quick Demo of BRFplusBRFplus Features and ComponentsScenario: Insurance Eligibility and PricingConnectivityFurther InformationAgenda

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *Planned ImprovementsExpressivenessExpression and Action Type improvements (e.g. BRMS Connector, DB Lookup)New Expression and Action Types (e.g. Email Action, BPM Connector, Loop Expression)Better integration of Decision Tables/Trees into the Rule setDeep ContextWorkbenchMerge of Catalog and RepositorySimplifications/Usability improvementsNew and improved Tools (e.g. for versioning)Excel import and export (for decision table data or test data)UI ConfigurationMiscellaneousRule Debugger for non-developersMigration tools for migration to BRFplusRuntime Trace improvementsOptimization of generated code

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *Further Information

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *Thank you!

  • Fuel your Career with SAP CertificationTake advantage of the enhanced, expanded and multi tier certifications from SAP today!What the industry is saying Teams with certified architects and developers deliver projects on specification, on time, and on budget more often than other teams.2008 IDC Certification Analysis

    82% of hiring managers use certification as a hiring criteria.2008 SAP Client Survey

    SAP Certified Application Professional status is proof of quality, and thats what matters most to customers.*Conny Dahlgren, SAP Certified Professional SAP 2008 / SAP TechEd 08 / Page *

  • SAP 2008 / SAP TechEd 08 / Page *SDN Subscriptions offers developers and consultants like you, an annual license to the complete SAP NetWeaver platform software, related services, and educational content, to keep you at the top of your profession. SDN Software Subscriptions: (currently available in U.S. and Germany) A one year low cost, development, test, and commercialization license to the complete SAP NetWeaver software platform Automatic notification for patches and updatesContinuous learning presentations and demos to build expertise in each of the SAP NetWeaver platform componentsA personal SAP namespace SAP NetWeaver Content Subscription: (available globally) An online library of continuous learning content to help build skills. Building Your Business with SDN SubscriptionsTo learn more or to get your own SDN Subscription, visit us at the Community Clubhouse or at www.sdn.sap.com/irj/sdn/subscriptions

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *Please complete your session evaluation.Be courteous deposit your trash, and do not take the handouts for the following session. Thank You !Feedback

  • SAP 2008 / SAP TechEd 08 / COMP208 Page *Copyright 2008 SAP AGAll Rights ReservedNo 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.SAP, R/3, xApps, xApp, SAP NetWeaver, Duet, SAP Business ByDesign, ByDesign, PartnerEdge 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 in several other countries all over the world. All other product and service names mentioned and associated logos displayed are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.The information in this document is proprietary to SAP. No part of this document may be reproduced, copied, or transmitted in any form or for any purpose without the express prior written permission of SAP AG. This document is a preliminary version and not subject to your license agreement or any other agreement with SAP. This document contains only intended strategies, developments, and functionalities of the SAP product and is not intended to be binding upon SAP to any particular course of business, product strategy, and/or development. Please note that this document is subject to change and may be changed by SAP at any time without notice. SAP assumes no responsibility for errors or omissions in this document. SAP does not warrant the accuracy or completeness of the information, text, graphics, links, or other items contained within this material. 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 shall have no liability for damages of any kind including without limitation direct, special, indirect, or consequential damages that may result from the use of these materials. This limitation shall not apply in cases of intent or gross negligence.The statutory liability for personal injury and defective products is not affected. SAP has no control over the information that you may access through the use of hot links contained in these materials and does not endorse your use of third-party Web pages nor provide any warranty whatsoever relating to third-party Web pages.

    Weitergabe und Vervielfltigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher Form auch immer, ohne die ausdrckliche schriftliche Genehmigung durch SAP AG nicht gestattet. In dieser Publikation enthaltene Informationen knnen ohne vorherige Ankndigung gendert werden.Einige von der SAP AG und deren Vertriebspartnern vertriebene Softwareprodukte knnen Softwarekomponenten umfassen, die Eigentum anderer Softwarehersteller sind.SAP, R/3, xApps, xApp, SAP NetWeaver, Duet, SAP Business ByDesign, ByDesign, PartnerEdge und andere in diesem Dokument erwhnte SAP-Produkte und Services sowie die dazugehrigen Logos sind Marken oder eingetragene Marken der SAP AG in Deutschland und in mehreren anderen Lndern weltweit. Alle anderen in diesem Dokument erwhnten Namen von Produkten und Services sowie die damit verbundenen Firmenlogos sind Marken der jeweiligen Unternehmen. Die Angaben im Text sind unverbindlich und dienen lediglich zu Informationszwecken. Produkte knnen lnderspezifische Unterschiede aufweisen.Die in dieser Publikation enthaltene Information ist Eigentum der SAP. Weitergabe und Vervielfltigung dieser Publikation oder von Teilen daraus sind, zu welchem Zweck und in welcher Form auch immer, nur mit ausdrcklicher schriftlicher Genehmigung durch SAP AG gestattet. Bei dieser Publikation handelt es sich um eine vorlufige Version, die nicht Ihrem gltigen Lizenzvertrag oder anderen Vereinbarungen mit SAP unterliegt. Diese Publikation enthlt nur vorgesehene Strategien, Entwicklungen und Funktionen des SAP-Produkts. SAP entsteht aus dieser Publikation keine Verpflichtung zu einer bestimmten Geschfts- oder Produktstrategie und/oder bestimmten Entwicklungen. Diese Publikation kann von SAP jederzeit ohne vorherige Ankndigung gendert werden.SAP bernimmt keine Haftung fr Fehler oder Auslassungen in dieser Publikation. Des Weiteren bernimmt SAP keine Garantie fr die Exaktheit oder Vollstndigkeit der Informationen, Texte, Grafiken, Links und sonstigen in dieser Publikation enthaltenen Elementen. Diese Publikation wird ohne jegliche Gewhr, weder ausdrcklich noch stillschweigend, bereitgestellt. Dies gilt u. a., aber nicht ausschlielich, hinsichtlich der Gewhrleistung der Marktgngigkeit und der Eignung fr einen bestimmten Zweck sowie fr die Gewhrleistung der Nichtverletzung geltenden Rechts. SAP haftet nicht fr entstandene Schden. Dies gilt u.a. und uneingeschrnkt fr konkrete, besondere und mittelbare Schden oder Folgeschden, die aus der Nutzung dieser Materialien entstehen knnen. Diese Einschrnkung gilt nicht bei Vorsatz oder grober Fahrlssigkeit.Die gesetzliche Haftung bei Personenschden oder Produkthaftung bleibt unberhrt. Die Informationen, auf die Sie mglicherweise ber die in diesem Material enthaltenen Hotlinks zugreifen, unterliegen nicht dem Einfluss von SAP, und SAP untersttzt nicht die Nutzung von Internetseiten Dritter durch Sie und gibt keinerlei Gewhrleistungen oder Zusagen ber Internetseiten Dritter ab. Alle Rechte vorbehalten.

    SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08Business rules describe or represent constraints on the behavior of the business. Business rules represent the core business logic of each organization; they guide and control the basic business processes that form the back bone of any business transaction.Business rules represent a set of standard business practices or policies that need to be applied consistently across business activities. Therefore it is important to understand the difference between a Rule in software applications and a Business rule.A Rule can be defined as a set of conditions with some associated actions. These are typically introduced in the form of an If -> Then statement. Examples include: Database Constraints, Object Model Rules, etc. These Plain Rules are owned by IT and not by the Line of Business (LoB).Business rules on the other hand represent organization policies and guidelines and are always owned by the Business. Examples of business rules include Loan Product Eligibility Guidelines, Product Configuration Rules, etc. When introducing business rules organizations have to take in consideration that rules are inherent in:Corporate charters Management practices and regulatory forces Human resources managementMarketing strategies Pricing policies Products and services offerings Customer relationship practices Business rules are the most dynamic component of any application. Therefore their constant and correct identification and externalization improve the organization's adaptability to industry changes and competition. Externalizing business logic in the form of simple rules ensures that these rules are easily communicated across the organization and managed separately from the application code: business adaptability and flexibility via IT stability.

    SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08

    SAP TechEd 08SAP TechEd 08Unlike trial versions which expire after 90 days, requiring you to uninstall, reinstall, and re-configure. SDN Subscriptions provides developers uninterrupted access to an environment that they can personalize and completely control, saving them valuable time and increasing productivity through reduced downtime.

    Specific subscriptions include: SAP NetWeaver Development Subscription. Hands-on access and ownership to the complete SAP NetWeaver software platform. (available in Germany and U.S.) Low cost, access to the SAP NetWeaver platform with a one year, development and commercialization license Choice of development method with SAP NetWeaver ABAP, Java, and/or composite applications Continuous learning presentations and demos to build skills in each of the SAP NetWeaver platform components SAP NetWeaver Content Subscription. An online library of continuous learning content to help build skills. (available globally)SAP NetWeaver Composition Subscription. Uninterrupted, total control for creating, testing, and selling Java-based solutions that integrate with SAP applications. (available in Germany and U.S.)

    To learn more or to get your own SDN Subscription, visit SAP NetWeaver, Development Subscription, www.sdn.sap.com/irj/sdn/devsubSAP NetWeaver, Content Subscription, www.sdn.sap.com/irj/sdn/subscriptions/contentSAP NetWeaver, Composition Subscription, www.sdn.sap.com/irj/sdn/subscriptions/composition

    Key Benefits include: Complete control Uninterrupted, hands-on access Latest NetWeaver software Continuous learning And Supporting services

    SAP TechEd 08SAP TechEd 08SAP TechEd 08SAP TechEd 08