How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call

Similar documents
Duet Enterprise: Tracing Reports in SAP, SCL, and SharePoint

SAP AddOn Quantity Distribution. by Oliver Köhler, SAP Germany

Single Sign-on For SAP NetWeaver Mobile PDA Client

SAP NetWeaver Identity Management Identity Center Minimum System Requirements

Configuring relay server in Sybase Control Center

BC100. Introduction to Programming with ABAP COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

How to Handle the System Message in SAP NetWeaver Mobile 7.1

Visual Composer Modeling: Data Validation in the UI

EWM125. Labor Management in SAP EWM COURSE OUTLINE. Course Version: 16 Course Duration: 4 Hours

BIT460. SAP Process Integration Message Mapping COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

How to Find Suitable Enhancements in SAP Standard Applications

ADM950. Secure SAP System Management COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

Duplicate Check and Fuzzy Search for Accounts and Contacts. Configuration with SAP NetWeaver Search and Classification (TREX) in SAP CRM WebClient UI

PLM210. Master Data Configuration in SAP Project System COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Testing Your New Generated SAP NetWeaver Gateway Service

How to Check or Derive an Attribute Value in MDG using BRFPlus

How to Enable Single Sign-On for Mobile Devices?

Enterprise Search Extension for SAP Master Data Governance

Visual Composer for SAP NetWeaver Composition Environment - Connectors

SAP BusinessObjects Predictive Analysis 1.0 Supported Platforms

AC507. Additional Functions of Product Cost Planning COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

NET311. Advanced Web Dynpro for ABAP COURSE OUTLINE. Course Version: 10 Course Duration: 4 Day(s)

Crystal Reports 2008 FixPack 2.4 Known Issues and Limitations

Quick View Insider Microblog: Why Is There No Inbox?

Message Alerting for SAP NetWeaver PI Advanced Adapter Engine Extended

BC430 ABAP Dictionary

DS50. Managing Data Quality with SAP Information Steward COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

How to Download Software and Address Directories in SAP Service Marketplace

Visual Composer Modeling: Migrating Models from 7.1.X to 7.2.0

Quick View Insider: Understanding Quick View Configuration

BC410. Programming User Dialogs with Classical Screens (Dynpros) COURSE OUTLINE. Course Version: 10 Course Duration: 3 Day(s)

BOCE20. SAP Crystal Reports for Enterprise: Advanced Report Design COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

BOC320. SAP Crystal Reports - Business Reporting and Report Processing Strategies COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

MDG100 Master Data Governance

ADM900 SAP System Security Fundamentals

DEV523 Customizing and Extending PowerDesigner

BC405 Programming ABAP Reports

ADM950. Secure SAP System Management COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

BC400 Introduction to the ABAP Workbench

BOC310. SAP Crystal Reports: Fundamentals of Report Design COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

BC404. ABAP Programming in Eclipse COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

BC400. ABAP Workbench Foundations COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

Installing SAP NetWeaver Mobile Client (eswt) on a Storage Card

BC490 ABAP Performance Tuning

ADM100 AS ABAP - Administration

Using JournalEntries and JournalVouchers Objects in SAP Business One 6.5

BC480 PDF-Based Print Forms

BW Text Variables of Type Replacement Path

EDB785 SAP IQ Administration

HA150 SQL Basics for SAP HANA

ADM960. SAP NetWeaver Application Server Security COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

TBIT44 PI Mapping and ccbpm

Using Default Values in Backend Adapter

Manual Activities of SAP Note Globalization Services, 2012/06/05

GRC100. GRC Principles and Harmonization COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

SAP Afaria Post- Installation Part 1

Visual Composer s Control Types

ADM960. SAP NetWeaver Application Server Security COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day

EDB358. System and Database Administration: Adaptive Server Enterprise COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

How to Set Up Data Sources for Crystal Reports Layouts in SAP Business One, Version for SAP HANA

Quick View Insider: How Can I Change the Colors? (SNC 7.0)

ADM920 SAP Identity Management

Web Dynpro: Column Coloring in ALV

EDB367. Powering Up with SAP Adaptative Server Enterprise 15.7 COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

EP350. Innovated Content Management and Collaboration COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

BW310. BW - Enterprise Data Warehousing COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

AFA461 SAP Afaria 7.0 System Administration (SP03)

How to Guide to create Sample Application in IOS using SUP ODP 2.2

EDB116. Fast Track to SAP Adaptive Server Enterprise COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

EP200. SAP NetWeaver Portal: System Administration COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

How to Integrate Google Maps into a Web Dynpro ABAP Application Using the Page Builder

How to Work with Analytical Portal

OData Service in the SAP Backend System for CRUDQ Operations in Purchase Order Scenario

Quick View Insider: How Do I Set Quick View as SNC s Entry Screen?

Working with Data Sources in the SAP Business One UI API

Personalizing SAP BusinessObjects Explorer Information Spaces

TBIT40 SAP NetWeaver Process Integration

SAP BusinessObjects Dashboards 4.0 SAP Crystal Dashboard Design 2011 SAP Crystal Presentation Design 2011

How to Integrate Microsoft Bing Maps into SAP EHS Management

BC401. ABAP Objects COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

SMP541. SAP Mobile Platform 3.0 Native and Hybrid Application Development COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

Remote Monitoring User for IBM DB2 for LUW

LO Extraction - Part 6 Implementation Methodology

TBW30 SAP BW Modeling & Implementation

Building a Real-time Dashboard using Xcelsius and Data Integrator

NET312. UI Development with Web Dynpro for ABAP COURSE OUTLINE. Course Version: 10 Course Duration: 4 Day(s)

Overview of Caffeine ABAP to Go

How to Access Images of SAP Netweaver Demo Model JAVA

SAP ME Build Tool 6.1

SMP521. SAP Mobile Platform - Native and Hybrid Application Development COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

EDB377. Fast Track to SAP Replication Server Administration COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

Extending DME Transfer Files According to Spanish Banking Control Council to Support Non- Euro Payments

Business Objects Integration Scenario 2

Upgrade MS SQL 2005 to MS SQL 2008 (R2) for Non-High-Availability NW Mobile ABAP System

What s New / Release Notes SAP Strategy Management 10.1

TBW60. BW: Operations and Performance COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

How to do a Manual Kernel Upgrade of an SAP Server

How can a Reference Query Be used?

How to Package and Deploy SAP Business One Extensions for Lightweight Deployment

What are Specifics Concerning the Creation of New Master Data?

Transcription:

How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call 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 Company: SAP America Created on: 12 October 2011 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. 2011 SAP AG 1

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 2011 SAP AG 2

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: 2011 SAP AG 3

Assign a Package of create it as a Local Object: 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. 2011 SAP AG 4

Create BRF+ Function After the Application is created the BRF+ Functions can be created. All the BRF+ Functions that will be reused can be created under the BRF+ Application created above. Create the BRF+ Function using the BRF+ Workbench. By now you should have already the interface of your function module well defines (e.g. Signature Context/Inputs and Result Data Object/output including the data types to be used): Mouse right click on the Application name to create the new Function: Enter a Name and Click Create And Navigate To Object : Click on the Signature Tab where the Function Interface is defined: 2011 SAP AG 5

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: 2011 SAP AG 6

Result Data Object: 2011 SAP AG 7

Finally you need to go, at the Function level, in change mode and set up the Access Level to Global: Create BRF+ RuleSet The next step is to create the Rulesets where the Rules will be located. To create the Ruleset navigate to your Function and under the Assigned Rulesets tab click on Create Ruleset : Now enter a Ruleset Name and click Create and Navigate To Object : 2011 SAP AG 8

Create BRF+ Rules The next step is to create the rules by clicking Insert Rule. When building your rules for your BRF+ Function, keep in mind the Signature of your Function, what the input parameters are and what do you have to return as a Result Data Object: 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. 2011 SAP AG 9

Step by Step to reuse the BRF+ Functions On this section I describe the steps needed to reuse BRF+ Functions within your BRF+ Application. The main component to accomplish this is to create a BRF+ Expression type Call Function. These steps are based in a real life implementation where a BRF+ Function called WF_STATUSES_APPROVAL_PROCESS from application DDV_GENERAL_FUNCTIONS is reused in another BRF+ Application by creating Expression FC_WF_STATUSES : Step 1: Create an Expression type Function Call Note: A BRF+ Expression can be created from different places on the UI, the screen shots is showing one of these several places which is during the Rule creation: 2011 SAP AG 10

Step 2: Select the BRF+ Function you want to reuse: Enter the BRF+ Application where you have all your Function to be reused (defaulted is application you are currently working on): 2011 SAP AG 11

Choose the function you want to reuse: Step 3: Maintain the Mapping Context Take care of the mapping for all your Input Context data and Result Data Object if you have defined one: Before mapping: After mapping: 2011 SAP AG 12

Examples of Functions to be reused Here, to give you ideas about what kind of rules are good candidates to be shared, a screen shot of some real life examples of Functions I have seen that are shared among BRF+ Applications. The screen shot does not provide details about these functions by I hope that just by reading the name you can have some good hints: 2011 SAP AG 13

Related Content Business Rule Framework plus (BRFplus) 2011 SAP AG 14

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. 2011 SAP AG 15