Business Rule Framework plus for Web Requests
Use
The Business Rule Framework plus (BRF) provides you with an event-driven runtime environment for checking and manipulating Web request data according to BRFplus functions and rules that you can define yourself.
You can for example use the BRFplus to do the following:
-
Display confirmations to the requester or administrator if application data is missing or incorrect
-
Support the automatic evaluation and preparation of requests for the respective administrator
-
Access field contents for the Web request form in subsequent processing steps
You can use the BRFplus to process both XML-based request data and transaction data.
If you want to use this function, you must activate the business function Social Services - Benefit Calculation (CRM_IPS_4S_1) and the business function Social Services - Benefit Calculation and Payment (ERP_IPS_4S_1).
Integration
You access the BRFplus from form processing for the Web request using the following method calls:
-
Class CL_CRM_PS_4S_WR_CALL_BRFP, Method GET_BRFPLUS_FUNCTION
This method call reads the BRFplus application and function assigned to the request category from Customizing. This method call should be implemented in the methods FORM_ON_CREATION and FORM_ON_EVENT for the Business Add-In (BAdI) CRM_SERVICE_WEBREQ before you access the method CALL_BRFP.
-
Class CL_CRM_PS_4S_WR_CALL_BRFP, Method CALL_BRFP
This method call is designed for BRFplus integration during processing of the request form. This method call should be implemented in the methods FORM_ON_CREATION and FORM_ON_EVENT for the BAdI CRM_SERVICE_WEBREQ.
Prerequisites
Assign a BRFplus function in a BRFplus application to a request category. In Customizing for Customer Relationship Management, edit the entry .
Features
-
To read the content of a field in a Web request, CRM provides the expression type Read CRM Web Request for BRFplus.
-
To return messages during validation of a Web request, CRM provides the action CRM WR Message (Folder) for BRFplus.
-
The system provides the class CL_CRM_PS_4S_WR_CALL_BRFP with its methods GET_BRFPLUS_FUNCTION and CALL_BRFP for the validation of the request data, which you can incorporate in the implementation of the Web request BAdI.
Example
The example displays the functional connection of the BRFplus for Web requests and the BRFplus objects required. In this example, the BRFplus checks the data entry in the request form (validation). It therefore shows the way a field is checked. In real life, the rule sets and rules for the function that are assigned to the respective request category contain the entire check logic for the request form.
If no reason is specified for the SOA request category supplied (REASON_FOR_APPLICATION), the system is to display a message in the form.
-
Create the BRFplus function ZSOA_REASON and the BRFplus rule set ZRULESET1 with the following two rules for the check:
-
ZRULEREASON
You have created the following for the rule ZRULEREASON:
-
For the field REASON_FOR_APPLICATION, the expression ZEXPSOAREASON with the expression type CRM Web Request Read.
-
For the result object, the data object ZSOAREASON.
Once you have executed the rule, ZSOAREASON contains the content of the field.
-
-
ZRULEREASONCHECK
The rule ZRULEREASONCHECK checks the result ZSOAREASON from the first rule. If the result object is emplty, the system executes the action ZSOAREASONACT with the action type CRM WR Message (Act). This returns the message Specify a request reason..
-
-
The BRFplus is called when the request from is sent using the methods GET_BRFPLUS_FUNCTION and CALL_BRFP in the class CL_CRM_PS_4S_WR_CALL_BRFP that are implemented in the BAdI method FORM_ON_EVENT.
-
The method CALL_BRFP accesses the BRFplus function that has previously been read from Customizing. The rule sets and rules for the function must contain the entire check logic for the request category. The expression type CRM Web Request Read is used to provide the field contents for Web request fields. The expression type CRM WR Message (Act) is used to return messages.

