sitFRA_ BRFplus_TheAPIWay

Christian Lechner
Christian LechnerSenior Solution Architect um 4process ag
BRFplus – The API Way
21/03/2015SAP Inside Track Frankfurt2
Contents
1. The Business Scenario
2. Solution Options
3. The API Way
4. Summary
21/03/2015SAP Inside Track Frankfurt3
• Policy Management of Industry Insurances
• Focus: Insurance for transportation of goods
• Processes are a little bit different compared to the individual insurance ☺
• Most important question: How is the premium calculated per transport?
The Business Scenario
Image courtesy of ddpavumba at FreeDigitalPhotos.net
21/03/2015SAP Inside Track Frankfurt4
• Premium rate is individually negotiated between the insurer and the insured
• Premium depends on several parameters like:
− value of the transported good
− weight of the transported good
− packing of the transported good
− …
• For each combination of the parameters a premium is defined
• What do we finally have within the individual contracts?
A table consisting of condition columns and a result column … a decision table
Whenever a transport is reported the table gets evaluated and the calculated
premium gets collected
The Business Scenario – Premium Calculation
21/03/2015SAP Inside Track Frankfurt5
Questions
• How do we get the contract individual decision tables into our policy
management system?
• How do we get the table evaluated within the reporting process on a policy?
The Business Scenario – Premium Calculation
21/03/2015SAP Inside Track Frankfurt6
Contents
1. The Business Scenario
2. Solution Options
3. The API Way
4. Summary
21/03/2015SAP Inside Track Frankfurt7
• Use an application table where the values are stored
(including relational operators)
• ABAP coding to evaluated the table and get the right result (hopefully)
Drawbacks
• Coding is Z-coding (or partner coding)
bug fixing!
• Functional features (e. g. check for completeness of table, Excel export/import)
have to be implemented
effort and bug fixing
Let’s see if we find a better approach
Approach One – “Classical” ABAP
21/03/2015SAP Inside Track Frankfurt8
Correct: BRFplus as the ABAP based business rule management system offers
the framework including decision tables!
Approach Two – BRFplus
Image courtesy of stockimages at FreeDigitalPhotos.net
Isn’t there a tool that can help us with
decision tables …
21/03/2015SAP Inside Track Frankfurt9
What does BRFplus offer in detail?
• Modeling environment to create, change, delete and display BRFplus objects
• Functions (decision services) that evaluate rules based on some input and
deliver a result
• Decision table object consisting of condition and result columns incl.
− Check for gaps
− Check for overlap
− Excel ex-/import
− Simulation options
− Optimization option for the table contents
− …
• Tracing e. g. in order to satisfy reporting requirements
Approach Two – BRFplus
21/03/2015SAP Inside Track Frankfurt10
Unfortunately … yes: Storage and transportation of BRFplus objects
Approach Two – BRFplus
Image courtesy of stockimages at FreeDigitalPhotos.net
Are there any drawbacks … ?
21/03/2015SAP Inside Track Frankfurt11
How are BRFplus objects stored and transported?
• System storage – storage in S-tables and transport via workbench requests
• Customizing storage – storage in C-table and transport via customizing requests
Transport is a no go!
We need master data to store the contract individual data
Approach Two – BRFplus
21/03/2015SAP Inside Track Frankfurt12
How are BRFplus objects created?
• Via the BRFplus workbench
• Several modeling steps have to be done in order to have such a contract
individual BRFplus function
But we just want to enter the decision table data!
It is not intended to create the BRFplus function from scratch every time
Approach Two – BRFplus
21/03/2015SAP Inside Track Frankfurt13
But there is a way out:
• Storage type: Master Data No transport
• Usage of the BRFplus API to handle the creation process
Approach Two – BRFplus
Image courtesy of chanpipat at FreeDigitalPhotos.net
21/03/2015SAP Inside Track Frankfurt14
Contents
1. The Business Scenario
2. Solution Options
3. The API Way
4. Summary
21/03/2015SAP Inside Track Frankfurt15
• The complete BRFplus is covered by an API
• The API allows the creation, update and deletion of every BRFplus objects
• In addition there is also a query object for selection of BRFplus objects
• There are several toolkits that simplify the handling of BRFplus objects
• How do we use this to solve the requirement?
− Whenever a new contract for transport insurance is created a new BRFplus application
is created in background (type master data)
− The application contains a function and an empty decision table
− The decision table can then be filled with values using a custom transaction
The API Way
21/03/2015SAP Inside Track Frankfurt16
Step 0 – Creation of ReUse Application (precondition)
• All Data objects that are in use to define the decision table columns are stored
in one central S-type application reused in every master data application
The API Way
21/03/2015SAP Inside Track Frankfurt17
Step 1 – Creation of the application
The API Way
21/03/2015SAP Inside Track Frankfurt18
Step 2a – Fetching of reusable data elements
The API Way
21/03/2015SAP Inside Track Frankfurt19
Step 2b – Creation of the empty decision table
The API Way
21/03/2015SAP Inside Track Frankfurt20
Step 2b – Creation of the empty decision table
The API Way
21/03/2015SAP Inside Track Frankfurt21
Step 3 – Creation of the function and linking decision table
The API Way
21/03/2015SAP Inside Track Frankfurt22
The API Way – System Demo
21/03/2015SAP Inside Track Frankfurt23
Question: If the user enters the BRFplus workbench he can change anything in
the BRFplus, right?
Answer: Maybe ☺ - we created an application exit class that ensures that only the
decision table can be changed and contains additional authority checks
Question: What about the call of the function in the backend?
Answer: The call is generic. The UUID of the function is stored in the contract
The API Way – Further Aspects
21/03/2015SAP Inside Track Frankfurt24
Contents
1. The Business Scenario
2. Solution Options
3. The API Way
4. Summary
21/03/2015SAP Inside Track Frankfurt25
• BRFplus is far more than just the BRFplus workbench
• BRFplus offers a full blown API in order to create, modify, delete and query each
and every BRFplus object
• The BRFplus API is designed fully object oriented and is very intuitive to use
• Several functionalities are extracted into toolkits/service functionalities in order
to decrease the implementation effort
• BRFplus is very flexible with respect to customer specific adoptions
• Do not forget about the BRFplus storage type master data ☺
Summary
21/03/2015SAP Inside Track Frankfurt26
Questions?
Image courtesy of Master isolated images at FreeDigitalPhotos.net
Thank you for your attention.
21/03/2015SAP Inside Track Frankfurt27
Dr. Christian Lechner
Business Unit Development
christian.lechner@msg-systems.com
@lechnerc77
http://scn.sap.com/people/christian.lechner
www.msg-systems.com
21/03/2015SAP Inside Track Frankfurt28
• Overview on API:
BRFplus - Business Rule Management for ABAP Applications
by Thomas Albrecht, Carsten Ziegler (SAP PRESS; 2010)
• Blog posts on API usage (SCN):
− http://scn.sap.com/community/brm/blog/2014/10/23/handling-of-applications-with-the-brf-
api-part-1
− http://scn.sap.com/community/brm/blog/2014/10/26/handling-of-applications-with-the-brf-
api-part-2
• Document on query aspect of API (SCN):
http://scn.sap.com/docs/DOC-4585
Appendix
21/03/2015SAP Inside Track Frankfurt29
Step 0 – Creation of the custom transaction (precondition)
• A custom transaction is created in order to call the BRFplus workbench and
target it to one specific BRFplus object S
Custom Transaction
1 von 29

Recomendados

Sitfra 2016 Prozesstracking with SAP Process Observer von
Sitfra 2016 Prozesstracking with SAP Process ObserverSitfra 2016 Prozesstracking with SAP Process Observer
Sitfra 2016 Prozesstracking with SAP Process ObserverMartinHofmann99
564 views19 Folien
Daniel Ridder How to RESTify your ABAP backend von
Daniel Ridder How to RESTify your ABAP backendDaniel Ridder How to RESTify your ABAP backend
Daniel Ridder How to RESTify your ABAP backendDaniel Ridder
1.4K views8 Folien
SAP Inside Track Munich 2016 - SAP HANA Cloud Platform von
SAP Inside Track Munich 2016 - SAP HANA Cloud Platform SAP Inside Track Munich 2016 - SAP HANA Cloud Platform
SAP Inside Track Munich 2016 - SAP HANA Cloud Platform Christian Lechner
704 views20 Folien
Quo vadis Power BI? von
Quo vadis Power BI?Quo vadis Power BI?
Quo vadis Power BI?Trivadis
79 views32 Folien
1 read me fs template guidance von
1 read me    fs template guidance1 read me    fs template guidance
1 read me fs template guidanceLokesh Modem
43 views4 Folien
The truth about hana. CTAC reporting von
The truth about hana. CTAC reportingThe truth about hana. CTAC reporting
The truth about hana. CTAC reportingCtac Belgium
720 views13 Folien

Más contenido relacionado

Similar a sitFRA_ BRFplus_TheAPIWay

Axelink Tools_BO2C10_0415_EN von
Axelink Tools_BO2C10_0415_ENAxelink Tools_BO2C10_0415_EN
Axelink Tools_BO2C10_0415_ENEric Soyer
283 views24 Folien
Caso de Sucesso Vodafone e Splunk von
Caso de Sucesso Vodafone e SplunkCaso de Sucesso Vodafone e Splunk
Caso de Sucesso Vodafone e SplunkSplunk
1.7K views50 Folien
Transforming supply chain Harish Bawari - Hero MotoCorp May 2016 von
Transforming supply chain Harish Bawari - Hero MotoCorp May 2016Transforming supply chain Harish Bawari - Hero MotoCorp May 2016
Transforming supply chain Harish Bawari - Hero MotoCorp May 2016INDUSCommunity
3.1K views38 Folien
Better application architecture with #microservices and #BPM (as APaaS) von
Better application architecture with #microservices and #BPM (as APaaS)Better application architecture with #microservices and #BPM (as APaaS)
Better application architecture with #microservices and #BPM (as APaaS)Alexander SAMARIN
3.4K views18 Folien
Building Next Generation Apps using DSAM - session at sitHH 2014 von
Building Next Generation Apps using DSAM - session at sitHH 2014Building Next Generation Apps using DSAM - session at sitHH 2014
Building Next Generation Apps using DSAM - session at sitHH 2014Tobias Trapp
995 views14 Folien

Similar a sitFRA_ BRFplus_TheAPIWay(20)

Axelink Tools_BO2C10_0415_EN von Eric Soyer
Axelink Tools_BO2C10_0415_ENAxelink Tools_BO2C10_0415_EN
Axelink Tools_BO2C10_0415_EN
Eric Soyer283 views
Caso de Sucesso Vodafone e Splunk von Splunk
Caso de Sucesso Vodafone e SplunkCaso de Sucesso Vodafone e Splunk
Caso de Sucesso Vodafone e Splunk
Splunk1.7K views
Transforming supply chain Harish Bawari - Hero MotoCorp May 2016 von INDUSCommunity
Transforming supply chain Harish Bawari - Hero MotoCorp May 2016Transforming supply chain Harish Bawari - Hero MotoCorp May 2016
Transforming supply chain Harish Bawari - Hero MotoCorp May 2016
INDUSCommunity3.1K views
Better application architecture with #microservices and #BPM (as APaaS) von Alexander SAMARIN
Better application architecture with #microservices and #BPM (as APaaS)Better application architecture with #microservices and #BPM (as APaaS)
Better application architecture with #microservices and #BPM (as APaaS)
Alexander SAMARIN3.4K views
Building Next Generation Apps using DSAM - session at sitHH 2014 von Tobias Trapp
Building Next Generation Apps using DSAM - session at sitHH 2014Building Next Generation Apps using DSAM - session at sitHH 2014
Building Next Generation Apps using DSAM - session at sitHH 2014
Tobias Trapp995 views
[Rakuten TechConf2014] [E-6] Rakuten Ichiba Globalization - Challenges and So... von Rakuten Group, Inc.
[Rakuten TechConf2014] [E-6] Rakuten Ichiba Globalization - Challenges and So...[Rakuten TechConf2014] [E-6] Rakuten Ichiba Globalization - Challenges and So...
[Rakuten TechConf2014] [E-6] Rakuten Ichiba Globalization - Challenges and So...
Rakuten Group, Inc.1.8K views
Leveraging IBM Cognos TM1 for Merchandise Planning at Tractor Supply Company ... von QueBIT Consulting
Leveraging IBM Cognos TM1 for Merchandise Planning at Tractor Supply Company ...Leveraging IBM Cognos TM1 for Merchandise Planning at Tractor Supply Company ...
Leveraging IBM Cognos TM1 for Merchandise Planning at Tractor Supply Company ...
QueBIT Consulting446 views
eCommerce Case Studies - A Little Book of Success von Divante
eCommerce Case Studies - A Little Book of SuccesseCommerce Case Studies - A Little Book of Success
eCommerce Case Studies - A Little Book of Success
Divante6.6K views
S&OP with Supply Chain Simulations von Michael Hugos
S&OP with Supply Chain SimulationsS&OP with Supply Chain Simulations
S&OP with Supply Chain Simulations
Michael Hugos7.5K views
SAP Innovations:Are you overlooking important functionality in SAP Controlling von Alice Adams
SAP Innovations:Are you overlooking important functionality in SAP ControllingSAP Innovations:Are you overlooking important functionality in SAP Controlling
SAP Innovations:Are you overlooking important functionality in SAP Controlling
Alice Adams483 views
SAP’s innovations – Are you overlooking important functionality in SAP Contro... von John Jordan
SAP’s innovations – Are you overlooking important functionality in SAP Contro...SAP’s innovations – Are you overlooking important functionality in SAP Contro...
SAP’s innovations – Are you overlooking important functionality in SAP Contro...
John Jordan3.8K views
Magento B2B e-Commerce von Divante
Magento B2B e-CommerceMagento B2B e-Commerce
Magento B2B e-Commerce
Divante3K views
Project Management (Practical Qustion Paper) [CBSGS - 75:25 Pattern] {2013-20... von Mumbai B.Sc.IT Study
Project Management (Practical Qustion Paper) [CBSGS - 75:25 Pattern] {2013-20...Project Management (Practical Qustion Paper) [CBSGS - 75:25 Pattern] {2013-20...
Project Management (Practical Qustion Paper) [CBSGS - 75:25 Pattern] {2013-20...
Feed the Future indicators and the Africa RISING project mapping and monitori... von africa-rising
Feed the Future indicators and the Africa RISING project mapping and monitori...Feed the Future indicators and the Africa RISING project mapping and monitori...
Feed the Future indicators and the Africa RISING project mapping and monitori...
africa-rising537 views
Hybrid Automation Framework Developement von Glasdon Falcao
Hybrid Automation Framework DevelopementHybrid Automation Framework Developement
Hybrid Automation Framework Developement
Glasdon Falcao308 views
Mini-course at VFU - Architecting modern digital systems - 4 von Alexander SAMARIN
Mini-course at VFU - Architecting modern digital systems - 4Mini-course at VFU - Architecting modern digital systems - 4
Mini-course at VFU - Architecting modern digital systems - 4
Alexander SAMARIN557 views

Más de Christian Lechner

Serverless and SAP … Oh Behave von
Serverless and SAP … Oh BehaveServerless and SAP … Oh Behave
Serverless and SAP … Oh BehaveChristian Lechner
301 views30 Folien
FaaS by Microsoft: Azure Functions and Azure Durable Functions von
FaaS by Microsoft: Azure Functions and Azure Durable FunctionsFaaS by Microsoft: Azure Functions and Azure Durable Functions
FaaS by Microsoft: Azure Functions and Azure Durable FunctionsChristian Lechner
163 views32 Folien
[SOT322] Serverless Side-by-Side Extensions with Azure Durable Functions - Wh... von
[SOT322] Serverless Side-by-Side Extensions with Azure Durable Functions - Wh...[SOT322] Serverless Side-by-Side Extensions with Azure Durable Functions - Wh...
[SOT322] Serverless Side-by-Side Extensions with Azure Durable Functions - Wh...Christian Lechner
145 views27 Folien
Serverless side by-side extensions with Azure Durable Functions von
Serverless side by-side extensions with Azure Durable FunctionsServerless side by-side extensions with Azure Durable Functions
Serverless side by-side extensions with Azure Durable FunctionsChristian Lechner
110 views28 Folien
SAP Embrace - A Look behind the curtains (by minnosphere) von
SAP Embrace - A Look behind the curtains (by minnosphere)SAP Embrace - A Look behind the curtains (by minnosphere)
SAP Embrace - A Look behind the curtains (by minnosphere)Christian Lechner
77 views35 Folien
SAP Inside Track Hamburg 2019 - Side-by-Side Extensibility with Microsoft Azure von
SAP Inside Track Hamburg 2019 - Side-by-Side Extensibility with Microsoft Azure SAP Inside Track Hamburg 2019 - Side-by-Side Extensibility with Microsoft Azure
SAP Inside Track Hamburg 2019 - Side-by-Side Extensibility with Microsoft Azure Christian Lechner
568 views30 Folien

Más de Christian Lechner(11)

FaaS by Microsoft: Azure Functions and Azure Durable Functions von Christian Lechner
FaaS by Microsoft: Azure Functions and Azure Durable FunctionsFaaS by Microsoft: Azure Functions and Azure Durable Functions
FaaS by Microsoft: Azure Functions and Azure Durable Functions
Christian Lechner163 views
[SOT322] Serverless Side-by-Side Extensions with Azure Durable Functions - Wh... von Christian Lechner
[SOT322] Serverless Side-by-Side Extensions with Azure Durable Functions - Wh...[SOT322] Serverless Side-by-Side Extensions with Azure Durable Functions - Wh...
[SOT322] Serverless Side-by-Side Extensions with Azure Durable Functions - Wh...
Christian Lechner145 views
Serverless side by-side extensions with Azure Durable Functions von Christian Lechner
Serverless side by-side extensions with Azure Durable FunctionsServerless side by-side extensions with Azure Durable Functions
Serverless side by-side extensions with Azure Durable Functions
Christian Lechner110 views
SAP Embrace - A Look behind the curtains (by minnosphere) von Christian Lechner
SAP Embrace - A Look behind the curtains (by minnosphere)SAP Embrace - A Look behind the curtains (by minnosphere)
SAP Embrace - A Look behind the curtains (by minnosphere)
SAP Inside Track Hamburg 2019 - Side-by-Side Extensibility with Microsoft Azure von Christian Lechner
SAP Inside Track Hamburg 2019 - Side-by-Side Extensibility with Microsoft Azure SAP Inside Track Hamburg 2019 - Side-by-Side Extensibility with Microsoft Azure
SAP Inside Track Hamburg 2019 - Side-by-Side Extensibility with Microsoft Azure
Christian Lechner568 views
Side-by-Side Extensibility with Microsoft Azure von Christian Lechner
Side-by-Side Extensibility with Microsoft AzureSide-by-Side Extensibility with Microsoft Azure
Side-by-Side Extensibility with Microsoft Azure
Christian Lechner525 views
SAP Inside Track 2018 - "Quidquid agis, prudenter agas ..." - Learnings from ... von Christian Lechner
SAP Inside Track 2018 - "Quidquid agis, prudenter agas ..." - Learnings from ...SAP Inside Track 2018 - "Quidquid agis, prudenter agas ..." - Learnings from ...
SAP Inside Track 2018 - "Quidquid agis, prudenter agas ..." - Learnings from ...
Christian Lechner763 views
ABAP Development in time of S/4 - Do's and Don'ts and Golden Rules for Simpli... von Christian Lechner
ABAP Development in time of S/4 - Do's and Don'ts and Golden Rules for Simpli...ABAP Development in time of S/4 - Do's and Don'ts and Golden Rules for Simpli...
ABAP Development in time of S/4 - Do's and Don'ts and Golden Rules for Simpli...
Christian Lechner1.8K views

Último

Digital Personal Data Protection (DPDP) Practical Approach For CISOs von
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOsPriyanka Aash
81 views59 Folien
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive von
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveNetwork Automation Forum
46 views35 Folien
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue von
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueCloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueShapeBlue
46 views15 Folien
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool von
Extending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPoolExtending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPool
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPoolShapeBlue
40 views10 Folien
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue von
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueShapeBlue
46 views13 Folien
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti... von
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...ShapeBlue
46 views29 Folien

Último(20)

Digital Personal Data Protection (DPDP) Practical Approach For CISOs von Priyanka Aash
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOs
Priyanka Aash81 views
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive von Network Automation Forum
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue von ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueCloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
ShapeBlue46 views
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool von ShapeBlue
Extending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPoolExtending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPool
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool
ShapeBlue40 views
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue von ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
ShapeBlue46 views
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti... von ShapeBlue
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
ShapeBlue46 views
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O... von ShapeBlue
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
ShapeBlue42 views
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online von ShapeBlue
KVM Security Groups Under the Hood - Wido den Hollander - Your.OnlineKVM Security Groups Under the Hood - Wido den Hollander - Your.Online
KVM Security Groups Under the Hood - Wido den Hollander - Your.Online
ShapeBlue102 views
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue von ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
ShapeBlue50 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... von James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson133 views
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ... von ShapeBlue
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...
Backroll, News and Demo - Pierre Charton, Matthias Dhellin, Ousmane Diarra - ...
ShapeBlue83 views
DRBD Deep Dive - Philipp Reisner - LINBIT von ShapeBlue
DRBD Deep Dive - Philipp Reisner - LINBITDRBD Deep Dive - Philipp Reisner - LINBIT
DRBD Deep Dive - Philipp Reisner - LINBIT
ShapeBlue62 views
Future of AR - Facebook Presentation von Rob McCarty
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook Presentation
Rob McCarty46 views
Why and How CloudStack at weSystems - Stephan Bienek - weSystems von ShapeBlue
Why and How CloudStack at weSystems - Stephan Bienek - weSystemsWhy and How CloudStack at weSystems - Stephan Bienek - weSystems
Why and How CloudStack at weSystems - Stephan Bienek - weSystems
ShapeBlue111 views
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit... von ShapeBlue
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
ShapeBlue57 views
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue von ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueWhat’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
ShapeBlue131 views
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ... von ShapeBlue
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
ShapeBlue34 views

sitFRA_ BRFplus_TheAPIWay

  • 1. BRFplus – The API Way
  • 2. 21/03/2015SAP Inside Track Frankfurt2 Contents 1. The Business Scenario 2. Solution Options 3. The API Way 4. Summary
  • 3. 21/03/2015SAP Inside Track Frankfurt3 • Policy Management of Industry Insurances • Focus: Insurance for transportation of goods • Processes are a little bit different compared to the individual insurance ☺ • Most important question: How is the premium calculated per transport? The Business Scenario Image courtesy of ddpavumba at FreeDigitalPhotos.net
  • 4. 21/03/2015SAP Inside Track Frankfurt4 • Premium rate is individually negotiated between the insurer and the insured • Premium depends on several parameters like: − value of the transported good − weight of the transported good − packing of the transported good − … • For each combination of the parameters a premium is defined • What do we finally have within the individual contracts? A table consisting of condition columns and a result column … a decision table Whenever a transport is reported the table gets evaluated and the calculated premium gets collected The Business Scenario – Premium Calculation
  • 5. 21/03/2015SAP Inside Track Frankfurt5 Questions • How do we get the contract individual decision tables into our policy management system? • How do we get the table evaluated within the reporting process on a policy? The Business Scenario – Premium Calculation
  • 6. 21/03/2015SAP Inside Track Frankfurt6 Contents 1. The Business Scenario 2. Solution Options 3. The API Way 4. Summary
  • 7. 21/03/2015SAP Inside Track Frankfurt7 • Use an application table where the values are stored (including relational operators) • ABAP coding to evaluated the table and get the right result (hopefully) Drawbacks • Coding is Z-coding (or partner coding) bug fixing! • Functional features (e. g. check for completeness of table, Excel export/import) have to be implemented effort and bug fixing Let’s see if we find a better approach Approach One – “Classical” ABAP
  • 8. 21/03/2015SAP Inside Track Frankfurt8 Correct: BRFplus as the ABAP based business rule management system offers the framework including decision tables! Approach Two – BRFplus Image courtesy of stockimages at FreeDigitalPhotos.net Isn’t there a tool that can help us with decision tables …
  • 9. 21/03/2015SAP Inside Track Frankfurt9 What does BRFplus offer in detail? • Modeling environment to create, change, delete and display BRFplus objects • Functions (decision services) that evaluate rules based on some input and deliver a result • Decision table object consisting of condition and result columns incl. − Check for gaps − Check for overlap − Excel ex-/import − Simulation options − Optimization option for the table contents − … • Tracing e. g. in order to satisfy reporting requirements Approach Two – BRFplus
  • 10. 21/03/2015SAP Inside Track Frankfurt10 Unfortunately … yes: Storage and transportation of BRFplus objects Approach Two – BRFplus Image courtesy of stockimages at FreeDigitalPhotos.net Are there any drawbacks … ?
  • 11. 21/03/2015SAP Inside Track Frankfurt11 How are BRFplus objects stored and transported? • System storage – storage in S-tables and transport via workbench requests • Customizing storage – storage in C-table and transport via customizing requests Transport is a no go! We need master data to store the contract individual data Approach Two – BRFplus
  • 12. 21/03/2015SAP Inside Track Frankfurt12 How are BRFplus objects created? • Via the BRFplus workbench • Several modeling steps have to be done in order to have such a contract individual BRFplus function But we just want to enter the decision table data! It is not intended to create the BRFplus function from scratch every time Approach Two – BRFplus
  • 13. 21/03/2015SAP Inside Track Frankfurt13 But there is a way out: • Storage type: Master Data No transport • Usage of the BRFplus API to handle the creation process Approach Two – BRFplus Image courtesy of chanpipat at FreeDigitalPhotos.net
  • 14. 21/03/2015SAP Inside Track Frankfurt14 Contents 1. The Business Scenario 2. Solution Options 3. The API Way 4. Summary
  • 15. 21/03/2015SAP Inside Track Frankfurt15 • The complete BRFplus is covered by an API • The API allows the creation, update and deletion of every BRFplus objects • In addition there is also a query object for selection of BRFplus objects • There are several toolkits that simplify the handling of BRFplus objects • How do we use this to solve the requirement? − Whenever a new contract for transport insurance is created a new BRFplus application is created in background (type master data) − The application contains a function and an empty decision table − The decision table can then be filled with values using a custom transaction The API Way
  • 16. 21/03/2015SAP Inside Track Frankfurt16 Step 0 – Creation of ReUse Application (precondition) • All Data objects that are in use to define the decision table columns are stored in one central S-type application reused in every master data application The API Way
  • 17. 21/03/2015SAP Inside Track Frankfurt17 Step 1 – Creation of the application The API Way
  • 18. 21/03/2015SAP Inside Track Frankfurt18 Step 2a – Fetching of reusable data elements The API Way
  • 19. 21/03/2015SAP Inside Track Frankfurt19 Step 2b – Creation of the empty decision table The API Way
  • 20. 21/03/2015SAP Inside Track Frankfurt20 Step 2b – Creation of the empty decision table The API Way
  • 21. 21/03/2015SAP Inside Track Frankfurt21 Step 3 – Creation of the function and linking decision table The API Way
  • 22. 21/03/2015SAP Inside Track Frankfurt22 The API Way – System Demo
  • 23. 21/03/2015SAP Inside Track Frankfurt23 Question: If the user enters the BRFplus workbench he can change anything in the BRFplus, right? Answer: Maybe ☺ - we created an application exit class that ensures that only the decision table can be changed and contains additional authority checks Question: What about the call of the function in the backend? Answer: The call is generic. The UUID of the function is stored in the contract The API Way – Further Aspects
  • 24. 21/03/2015SAP Inside Track Frankfurt24 Contents 1. The Business Scenario 2. Solution Options 3. The API Way 4. Summary
  • 25. 21/03/2015SAP Inside Track Frankfurt25 • BRFplus is far more than just the BRFplus workbench • BRFplus offers a full blown API in order to create, modify, delete and query each and every BRFplus object • The BRFplus API is designed fully object oriented and is very intuitive to use • Several functionalities are extracted into toolkits/service functionalities in order to decrease the implementation effort • BRFplus is very flexible with respect to customer specific adoptions • Do not forget about the BRFplus storage type master data ☺ Summary
  • 26. 21/03/2015SAP Inside Track Frankfurt26 Questions? Image courtesy of Master isolated images at FreeDigitalPhotos.net
  • 27. Thank you for your attention. 21/03/2015SAP Inside Track Frankfurt27 Dr. Christian Lechner Business Unit Development christian.lechner@msg-systems.com @lechnerc77 http://scn.sap.com/people/christian.lechner www.msg-systems.com
  • 28. 21/03/2015SAP Inside Track Frankfurt28 • Overview on API: BRFplus - Business Rule Management for ABAP Applications by Thomas Albrecht, Carsten Ziegler (SAP PRESS; 2010) • Blog posts on API usage (SCN): − http://scn.sap.com/community/brm/blog/2014/10/23/handling-of-applications-with-the-brf- api-part-1 − http://scn.sap.com/community/brm/blog/2014/10/26/handling-of-applications-with-the-brf- api-part-2 • Document on query aspect of API (SCN): http://scn.sap.com/docs/DOC-4585 Appendix
  • 29. 21/03/2015SAP Inside Track Frankfurt29 Step 0 – Creation of the custom transaction (precondition) • A custom transaction is created in order to call the BRFplus workbench and target it to one specific BRFplus object S Custom Transaction