Example: Eligibility Check for Agreements
Concept
Example actions and BRFplus functions are available to perform the following eligibility check:
You define a BRFplus function containing a rule to check whether a customer can enroll in or continue participating in a program. You then assign this BRFplus function to the agreement in the Program Assignment assignment block. When the eligibility check runs, the BRFplus function evaluates the answers in a completed questionnaire and continues to check the measure configuration or the equipment information specified at measure level.
The sample implementation checks if all questions are answered in the affirmative. If they are, the eligibility check returns positive. If at least one answer is negative, the eligibility check returns negative results. If one or more answers are missing, the eligibility check fails.
In a program designed for a certain type of equipment, the BRFplus function continues to check equipment data at the measure level. For example, replacing a Pool Pump manufactured before 1994 with one qualified pool pump, applicants are eligible to receive rebates.
The following is a sample list of qualifying pool pumps:
|
Manufacturer |
Model |
|---|---|
|
Hayward |
SP322063EEV SP3220VSC |
|
Hybrid Pumps LLC |
X2 X3 |
In a program that requires specific measure configuration, the BRFplus function evaluates the measure configuration. The sample function checks for the lighting measure product with the attributes Watts Before and Watts After. The eligibility check for measures passes when:
-
Watts Before is greater than or equal to 40 W (>= 40 W)
-
Watts After is smaller than Watts Before
Structure
All functions are contained in the BRFplus application (CRM_IU_DSM_SAMPLE_APPL_ENH1).
BRFplus Function
The Elig w.equi DSM Agr. (CRM_DSM_CHECK_AGR_ELIG_EQ_ENH2) sample function is available in the BRFplus Workbench (transaction brfplus). You use this sample as a model to create a BRFplus function containing the eligibility check logic that meets your business needs.
The function does not read data, but rather receives data for the context from an action in SAP CRM. The context of the function itself includes the following components:
-
Data (questions and answers) in the questionnaire in the agreement: QUESTIONNAIRE_DATA (of type CRMT_IU_DSM_BRF_QUESTIONNAIRE)
-
Equipment data in the agreement: DSM_MEASURE_EQUIPMENT (of type CRMT_IU_DSM_BRF_EQUIPMENT)
-
Measure data in the agreement: DSM_MEASURE (of type CRMS_IU_DSM_BRF_MEASURE)
You create the function in Event mode, which means that a rule set is attached to this function. The system executes the rule set AGR_ELIGIBILITY_RULESET_EQUIP when the function runs.
BRFplus Function for Checking Measure Data
The sample function (CRM_DSM_CHECK_AGR_ELIG_ENH1) is available in the BRFplus Workbench (transaction brfplus). You use this sample as a model to create a BRFplus function containing the eligibility check logic that meets your business needs.
This function is contained in the Enh. sample DSM appl. (CRM_IU_DSM_SAMPLE_APPL_ENH1) BRFplus application. The function does not read data, but rather receives data for the context from an action in SAP CRM. The context of the function itself includes the following components:
-
Data (questions and answers) in the questionnaire in the agreement:QUESTIONNAIRE_DATA (of type CRMT_IU_DSM_BRF_QUESTIONNAIRE)
-
Data for measures in the agreement:DSM_MEASURE (of type CRMS_IU_DSM_BRF_MEASURE)
-
Measure Configuration DSM_MEASURE_CONFIGURATION (of type CRMS_IU_DSM_BRF_MEASURE_CONFIG)
Action
The MANU_AGR_ELIGIBILITY_CHECK1 sample action definition is available in SAP CRM using transaction crmc_action_def. You can use this action as a model to create an action to do the following:
-
Trigger the eligibility check
-
Specify the data to retrieve from SAP CRM
-
Retrieve the necessary data and send it to the BRFplus function
The MANU_MEASURE_ELIGIBILITY_CHK1 is also a sample action definition that is available in SAP CRM by using transaction crmc_action_def. You can use this action as a model to create an action to do the following:
-
Trigger the eligibility check at the measure level
-
Specify the data to retrieve from SAP CRM
-
Retrieve the necessary data and send it to the BRFplus function
This sample action sends data about the measure and measure configuration or equipment information to the BRFplus function.
The sample action definition is created within the IUDSM_AGREEMENT_ENH1 action profile. The method call processing type is used, which means that a BAdI implementation performs the method call in SAP CRM. An example implementation, CRM_DSM_ELIGBLE_CHK1, is available within BAdI definition EXEC_METHODCALL_PPF.
The sample action definition is created within the IUDSM_AGREEMENT action profile. The method call processing type is used, which means that a BAdI implementation performs the method call in SAP CRM. An example implementation, CRM_DSM_ELIGIBILITY_CHECK, is available within BAdI definition EXEC_METHODCALL_PPF.
Integration
Information flows between SAP CRM and the BRFplus Workbench.
More Information
For more information, see the following topics:
-
Eligibility Check: Action on Header when Status Is In Process
-
Eligibility Check: Header Manually Changed from In Process to Released
-
Eligibility Check: Header Manually Changed from Rejected to Released
-
Eligibility Check: Incentive Status Manually Changed from In Process or Rejected to Released
-
Eligibility Check: Measure Status Manually Changed from In Process to Released
-
Eligibility Check: Measure Status Manually Changed from Rejected to Released
-
Eligibility Check: Measure with Status In Process or Rejected
For more information on an example eligibility check for applications, see Example: Eligibility Check for Applications