Note

Business Rule Engine
- Business Rule Engine
A Business Rules Engine (BRE) is a toolkit for creating essential business logic that can be comprehended and maintained by business experts without the need for code alterations.
A Business Rules Engine (BRE) is a suite of tools designed to empower analysts and developers in constructing calculations, validations, and decision logic. Its primary objective is to segregate business logic from system logic, facilitating alterations in system behavior without requiring code modifications. Business rules are integral throughout the entire tax and revenue processing workflow. Initially, tax return data must undergo validation to ensure completeness. Subsequently, the system must assess compliance with regulations and gauge the risk of compliance failure. Finally, taxes are computed based on specified thresholds. Rules are pervasive and necessitate frequent adjustments.

To streamline this process, SAP provides integration with the Business Rule Framework plus (BRFplus). This integration enables the handling of both form-based and object-based taxes within SAP Tax and Revenue Management (TRM) for the Public Sector. BRFplus boasts advanced features, including a browser-based user interface, traceability, and simulation capabilities, significantly reducing the time and effort required for policy and rule implementation.
Consequently, BRFplus enhances transparency by explicitly documenting business practice decisions, eliminating the need to hide them within the code. It fosters a better understanding of application behavior, promoting predictability. As a result, maintenance and testing costs decrease as business rules become decoupled from the application code. Business users can easily modify, test, and simulate changes, leading to quicker responses to changing conditions and reduced modification cycle times.

BRFplus seamlessly integrates with SAP TRM for the Public Sector, offering a comprehensive set of functionalities to meet specific TRM requirements:
- New BRFplus Actions and Expressions: BRFplus introduces additional actions and expressions tailored to TRM needs. These include functions such as creating contract objects, generating billing documents, and updating form bundles.
- BRFplus Integration Manager for Form Bundles: Accessible via Transaction code BRFPLUS_MANAGER or under the configuration path: Financial Accounting → Contract Accounts Receivable and Payable → Business Transactions → Public Sector Tax Assessment → BRFplus → Define BRFplus Objects for Form Bundles. This program facilitates the integration of BRFplus with the Forms Processing Framework in TRM. It streamlines the generation of BRFplus objects (for example, applications and functions) within SAP TRM, simplifying the rule definition process in the BRFplus Workbench.
- Integration of BRFplus with Form Bundle Type: Configured through the path: Financial Accounting → Contract Accounts Receivable and Payable → Business Transactions → Public Sector Tax Assessment → Form Processing → Form Bundle Type → Define Form Bundle Type. This integration associates form processing activities with BRFplus functions. When a form processing activity is triggered, the customized BRFplus function handles the current form bundle.
- BRFplus Integration Manager for Object-Based Taxes: Managed via Transaction code BRFPLUS_MANAGER_OBT or under the IMG Path: Financial Accounting → Contract Accounts Receivable and Payable → Business Transactions → Public Sector Tax Assessment → BRFplus → Define BRFplus Objects for Object-Based Tax. Similar to the form bundle integration, this program generates applications and functions for object-based taxes in the BRFplus Workbench. It offers a feature for converting facts to simplify rule definition and allows for restricting the selection of fact types and categories based on contract object types for BRFplus object generation.
- Integration of BRFplus with Revenue Type: Configured through the path: Financial Accounting → Contract Accounts Receivable and Payable → Business Transactions → Public Sector Tax Assessment → Billing → Assign BRF/BRFplus Rules for Each Revenue Type. In this integration, revenue types are associated with BRFplus functions. During object-based billing execution, the customized BRFplus function is invoked to validate and create billing documents.
- Lean Trace Management: Utilize programs FMCA_DISPLAY_OBT_LEANTRACE and FMCA_DELETE_OBT_LEANTRACE to display and delete lean traces for object-based billing tax.
- Custom TRM Action and Expression Definition: Define custom TRM actions and expressions under the configuration path: Financial Accounting → Contract Accounts Receivable and Payable → Business Transactions → Public Sector Tax Assessment → BRFplus → Define Parameters for Static Methods of BRFplus. Standard delivery includes all specific actions and expressions.
- BRFplus Integration for Property Tax: Detailed configuration path for Property Tax integration can be found under: Financial Accounting → Contract Accounts Receivable and Payable → Integration → Flexible Real Estate Management (RE-FX) → Property Tax → Activate BRFplus for the RE-FX Contract
Note
For details refer to Unit 12 - Processing Property Tax.
This comprehensive integration enhances TRM functionality, streamlines rule management, and ensures efficient handling of various tax and revenue processes within SAP TRM for the Public Sector.
Overview of Business Rules Framework Plus

- BRFplus
Streamlining Business Rule Management: BRFplus offers a robust Application Programming Interface (API) and User Interface (UI) for the efficient definition and execution of business rules. This versatile tool simplifies rule modeling and promotes rule reuse across various applications.
- Front-End Rule Modeling
BRFplus provides an intuitive Web Dynpro UI for modeling and simulating business rules. This user-friendly interface supports visual expressions, including decision tables, decision trees, and formulas.
- Back-End Rule Processing
Behind the scenes, BRFplus features a dedicated rule processor component responsible for compiling and executing business rules. All rule-related objects are securely stored within the rule repository's FDT* tables, housed in the SFDT_CORE package. This architecture ensures the integrity and accessibility of your rule assets.
- Comprehensive Rule Management
BRFplus is equipped with a suite of tools and services designed to facilitate the creation, maintenance, and management of rules. These resources empower users to build and oversee rules seamlessly, enhancing the overall efficiency of rule-driven processes.
Processing Data Flow
When a business application invokes BRFplus functions through configuration integration, a systematic process is set in motion. The system transmits crucial business data, such as form data, PSCD data, and Taxpayer data, as the Context input to the BRFplus function.

Within the BRFplus function, two execution pathways exist. It can either directly invoke the top expression or trigger a ruleset. If the top expression is invoked, the result it yields becomes the BRFplus function result. Conversely, when a ruleset is called, it proceeds to execute the rules sequentially. Each rule, in its execution, engages expressions and/or actions to accomplish specific business objectives. For instance, data validation is commonly the initial step, and upon successful validation, actions are triggered to create master data or generate billing documents.
The final result of this process is returned as the BRFplus Function result, reverting to the point within the business application that initiated the call. Subsequent steps are determined by the application's logic flow.
For enhanced transparency and traceability, the entirety of BRFplus logic can be logged as trace data when the lean trace feature is activated.




