Documente Academic
Documente Profesional
Documente Cultură
Applies to:
Tax and Revenue Management.
Summary
During the building process of BRF+ Rules you might realized that there are rules that will need to be used by more than one process or tax type and you will like to reuse them. This cookbook describes how this can be done and also gives you some examples about it. Author: Diego Gaudenzi
Author Bio
Diego Gaudenzi has worked at SAP since January 2001. He joined the IBU Public Sector and worked as a software developer for 8 years and started his current position as Solution manager for Tax and Revenue Management in 2009.
How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call
Table of Contents
Applies to: ........................................................................................................................................................... 1 Summary............................................................................................................................................................. 1 Author Bio ........................................................................................................................................................... 1 Table of Contents ............................................................................................................................................... 2 Introduction ......................................................................................................................................................... 3 Steps to create a BRF+ Application, Function, Ruleset and Rules to be reused ............................................... 3 Create BRF+ Application .................................................................................................................................... 3 Create BRF+ Function ........................................................................................................................................ 5 Create BRF+ RuleSet ......................................................................................................................................... 8 Create BRF+ Rules............................................................................................................................................. 9 Save and activate all the BRF+ Objects you have created ................................................................................ 9 Step by Step to reuse the BRF+ Functions ...................................................................................................... 10 Step 1: Create an Expression type Function Call ............................................................................................. 10 Step 2: Select the BRF+ Function you want to reuse:...................................................................................... 11 Step 3: Maintain the Mapping Context ............................................................................................................. 12 Examples of Functions to be reused ................................................................................................................ 13 Related Content ................................................................................................................................................ 14 Copyright........................................................................................................................................................... 15
How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call
Introduction
Since the introduction of BRF+ for Tax and Revenue Management in Enhancement Package 5 one common question I have heard several times is How do I reuse rules across BRF+ Applications? Which translates to how do I reuse rules across TRM Processes like Tax registration, Tax Refund and Tax Processing which also translates to how can rules across Tax Types be reused? since normally different tax types will be processed by different BRF+ Applications. This concern regarding to reusing rules is a very valid one especially for those folks that have worked and implemented TRM using BRF where reusability was very limited and almost not available. So, what I want to show here is a very easy way to reuse rules within BRF+ Functions/Rulesets following the same philosophy ABAP developers have followed for years when they build and use Function Modules in the backend system.
Steps to create a BRF+ Application, Function, Ruleset and Rules to be reused Create BRF+ Application
In R/3 when a new Function Module is created, it has to be assigned to a Function Group. Translating that to the BRF+ world, we need to create a BRF+ Application (e.g. TRM_GENERAL_FUNCTIONS) where we will accommodate the BRF+ Functions. This Application can be created using T-code BRFPLUS_MANAGER or from the BRF+ Workbench (T-code BRF+ or BRFplus). From BRFPLUS_MANAGER:
How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call
From BRF+ Workbench: Note: You can start the BRFplus workbench either in the backend system with transaction BRFplus or in the web browser with the BRFplus workbench URL that is specific for your system landscape. Prerequisite is that the role BRFplus Administrator (SAP_BC_FDT_ADMINISTRATOR) has been added to your user profile.
How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call
How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call
Now for the Context (e.g. Input parameters) you can Add new Data Objects or if you already have created them just add them up. For the Result Data Object you can select or create it:
Keep in mind that the Data Objects assigned to the Context and Result Data Object can be Elements, Structures or Tables. Note: Be sure that every object in the Context and Result Data Object have Access Level equal to Global:
Here some screen shots of a sample Function and it signature.On this example Context Element TAX_PERIOD is linked to DDIC Element PERSL_KK and Result Data Object ES_TAX_PERIOD_DATES is an structure that contains two fields:
How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call
How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call
Finally you need to go, at the Function level, in change mode and set up the Access Level to Global:
Now enter a Ruleset Name and click Create and Navigate To Object:
How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call
Save and activate all the BRF+ Objects you have created
Finally save and activate all the objects within the new Function. Note: You can create any new Function you will like to reuse under this BRF+ Application.
How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call
How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call
Enter the BRF+ Application where you have all your Function to be reused (defaulted is application you are currently working on):
How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call
After mapping:
How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call
How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call
Related Content
Business Rule Framework plus (BRFplus)
How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call
Copyright
Copyright 2011 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.