MDG Validation (Using BADI)

In this blog, we will see how to validate the MDG attributes using the BADI implementation.
So, we are taking the example of the 'BP Grouping' field to make it mandatory on the UI.

For this, we should know the technical attribute name for the respective field. In our case, 'BU_GROUP' is the technical name for the BP grouping field.
Steps for the Implementation of Validation BADI.

1. Open T-code ‘MDGIMG’ –> General Setting -> Data Quality and Search -> Business Add-Ins -> Execute BADI: Define Validation/Derivation OR SE18 -> BADI name: 'USMD_RULE_SERVICE' -> Create BADI Implementation. 

2. After execution, the following screen will appear. Go down, and there you will find the option to create enhancement implementation. Click on that button.



3. Provide the name and short description of the implementation, as follows:
 

4. After that, we have to create the BADI Implementation and Implementation class.


5. You will be directed to the Enhancement Implementation screen, where you will find your BADI implementation. After, go to Filter Values > Create Filter Combination > Enter values as per your requirements.


6. Here, in this case, BP_GROUP is the field. After, we have to write code in the 'check_entity' method as follows:


7. Activate and try to create a customer without entering the BP group. You will see the error message.


Comments

Popular posts from this blog

Extend the MDG Business Partner – Node Extension (Reuse Option)

MDG Derivation (BADI)