SlideShare a Scribd company logo
1 of 29
Download to read offline
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

More Related Content

Similar to sitFRA_ BRFplus_TheAPIWay

Axelink Tools_BO2C10_0415_EN
Axelink Tools_BO2C10_0415_ENAxelink Tools_BO2C10_0415_EN
Axelink Tools_BO2C10_0415_ENEric Soyer
 
Caso de Sucesso Vodafone e Splunk
Caso de Sucesso Vodafone e SplunkCaso de Sucesso Vodafone e Splunk
Caso de Sucesso Vodafone e SplunkSplunk
 
Transforming supply chain Harish Bawari - Hero MotoCorp May 2016
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
 
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)
Better application architecture with #microservices and #BPM (as APaaS)Alexander SAMARIN
 
Building Next Generation Apps using DSAM - session at sitHH 2014
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
 
[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 TechConf2014] [E-6] Rakuten Ichiba Globalization - Challenges and So...Rakuten Group, Inc.
 
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 ...
Leveraging IBM Cognos TM1 for Merchandise Planning at Tractor Supply Company ...QueBIT Consulting
 
eCommerce Case Studies - A Little Book of Success
eCommerce Case Studies - A Little Book of SuccesseCommerce Case Studies - A Little Book of Success
eCommerce Case Studies - A Little Book of SuccessDivante
 
S&OP with Supply Chain Simulations
S&OP with Supply Chain SimulationsS&OP with Supply Chain Simulations
S&OP with Supply Chain SimulationsMichael Hugos
 
SAP Innovations:Are you overlooking important functionality in SAP Controlling
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 ControllingAlice Adams
 
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...
SAP’s innovations – Are you overlooking important functionality in SAP Contro...John Jordan
 
JourneyToLowCode_2of4.pdf
JourneyToLowCode_2of4.pdfJourneyToLowCode_2of4.pdf
JourneyToLowCode_2of4.pdfVaibhavVaidya30
 
Magento B2B e-Commerce
Magento B2B e-CommerceMagento B2B e-Commerce
Magento B2B e-CommerceDivante
 
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...
Project Management (Practical Qustion Paper) [CBSGS - 75:25 Pattern] {2013-20...Mumbai B.Sc.IT Study
 
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...
Feed the Future indicators and the Africa RISING project mapping and monitori...africa-rising
 
Hybrid Automation Framework Developement
Hybrid Automation Framework DevelopementHybrid Automation Framework Developement
Hybrid Automation Framework DevelopementGlasdon Falcao
 
Mini-course at VFU - Architecting modern digital systems - 4
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 - 4Alexander SAMARIN
 

Similar to sitFRA_ BRFplus_TheAPIWay (20)

Axelink Tools_BO2C10_0415_EN
Axelink Tools_BO2C10_0415_ENAxelink Tools_BO2C10_0415_EN
Axelink Tools_BO2C10_0415_EN
 
Caso de Sucesso Vodafone e Splunk
Caso de Sucesso Vodafone e SplunkCaso de Sucesso Vodafone e Splunk
Caso de Sucesso Vodafone e Splunk
 
Transforming supply chain Harish Bawari - Hero MotoCorp May 2016
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
 
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)
Better application architecture with #microservices and #BPM (as APaaS)
 
Building Next Generation Apps using DSAM - session at sitHH 2014
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
 
VSM
VSMVSM
VSM
 
C a1 fin_10
C a1 fin_10C a1 fin_10
C a1 fin_10
 
[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 TechConf2014] [E-6] Rakuten Ichiba Globalization - Challenges and So...
 
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 ...
Leveraging IBM Cognos TM1 for Merchandise Planning at Tractor Supply Company ...
 
eCommerce Case Studies - A Little Book of Success
eCommerce Case Studies - A Little Book of SuccesseCommerce Case Studies - A Little Book of Success
eCommerce Case Studies - A Little Book of Success
 
S&OP with Supply Chain Simulations
S&OP with Supply Chain SimulationsS&OP with Supply Chain Simulations
S&OP with Supply Chain Simulations
 
SAP Innovations:Are you overlooking important functionality in SAP Controlling
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
 
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...
SAP’s innovations – Are you overlooking important functionality in SAP Contro...
 
JourneyToLowCode_2of4.pdf
JourneyToLowCode_2of4.pdfJourneyToLowCode_2of4.pdf
JourneyToLowCode_2of4.pdf
 
Saurabh(1)
Saurabh(1)Saurabh(1)
Saurabh(1)
 
Magento B2B e-Commerce
Magento B2B e-CommerceMagento B2B e-Commerce
Magento B2B e-Commerce
 
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...
Project Management (Practical Qustion Paper) [CBSGS - 75:25 Pattern] {2013-20...
 
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...
Feed the Future indicators and the Africa RISING project mapping and monitori...
 
Hybrid Automation Framework Developement
Hybrid Automation Framework DevelopementHybrid Automation Framework Developement
Hybrid Automation Framework Developement
 
Mini-course at VFU - Architecting modern digital systems - 4
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
 

More from Christian Lechner

Serverless and SAP … Oh Behave
Serverless and SAP … Oh BehaveServerless and SAP … Oh Behave
Serverless and SAP … Oh BehaveChristian Lechner
 
FaaS by Microsoft: Azure Functions and Azure Durable Functions
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
 
[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...
[SOT322] Serverless Side-by-Side Extensions with Azure Durable Functions - Wh...Christian Lechner
 
Serverless side by-side extensions with Azure Durable Functions
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
 
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 Embrace - A Look behind the curtains (by minnosphere)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
SAP Inside Track Hamburg 2019 - Side-by-Side Extensibility with Microsoft Azure Christian Lechner
 
Side-by-Side Extensibility with Microsoft Azure
Side-by-Side Extensibility with Microsoft AzureSide-by-Side Extensibility with Microsoft Azure
Side-by-Side Extensibility with Microsoft AzureChristian 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 ...
SAP Inside Track 2018 - "Quidquid agis, prudenter agas ..." - Learnings from ...Christian Lechner
 
NET53494 Extensions in the Age of S/4HANA
NET53494  Extensions in the Age of S/4HANANET53494  Extensions in the Age of S/4HANA
NET53494 Extensions in the Age of S/4HANAChristian 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...
ABAP Development in time of S/4 - Do's and Don'ts and Golden Rules for Simpli...Christian Lechner
 

More from Christian Lechner (11)

Serverless and SAP … Oh Behave
Serverless and SAP … Oh BehaveServerless and SAP … Oh Behave
Serverless and SAP … Oh Behave
 
FaaS by Microsoft: Azure Functions and Azure Durable Functions
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
 
[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...
[SOT322] Serverless Side-by-Side Extensions with Azure Durable Functions - Wh...
 
Serverless side by-side extensions with Azure Durable Functions
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
 
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 Embrace - A Look behind the curtains (by minnosphere)
 
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
SAP Inside Track Hamburg 2019 - Side-by-Side Extensibility with Microsoft Azure
 
Side-by-Side Extensibility with Microsoft Azure
Side-by-Side Extensibility with Microsoft AzureSide-by-Side Extensibility with Microsoft Azure
Side-by-Side Extensibility with Microsoft Azure
 
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 ...
SAP Inside Track 2018 - "Quidquid agis, prudenter agas ..." - Learnings from ...
 
NET53494 Extensions in the Age of S/4HANA
NET53494  Extensions in the Age of S/4HANANET53494  Extensions in the Age of S/4HANA
NET53494 Extensions in the Age of S/4HANA
 
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...
ABAP Development in time of S/4 - Do's and Don'ts and Golden Rules for Simpli...
 
Text Analysis with SAP HANA
Text Analysis with SAP HANAText Analysis with SAP HANA
Text Analysis with SAP HANA
 

Recently uploaded

Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 

Recently uploaded (20)

Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 

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