SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Ähnlich wie sitFRA_ BRFplus_TheAPIWay

Axelink Tools_BO2C10_0415_EN
Axelink Tools_BO2C10_0415_ENAxelink Tools_BO2C10_0415_EN
Axelink Tools_BO2C10_0415_EN
Eric Soyer
 
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
Tobias Trapp
 
Hybrid Automation Framework Developement
Hybrid Automation Framework DevelopementHybrid Automation Framework Developement
Hybrid Automation Framework Developement
Glasdon Falcao
 

Ähnlich wie 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
 

Mehr von Christian Lechner

Mehr von 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
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

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