cancel
Showing results for 
Search instead for 
Did you mean: 

Error message not preventing users to submit the change request in MDG

akhil_lal
Explorer
0 Kudos
149

Hi Experts,

I've a new requirement to add a new field in GENERAL DATA of the change request header. And I've to make this field as mandatory based on some conditions.

Now the condition is working fine, and the error message also showing. But user can continue to submit the change request even though the error message is there. It is not stopping the user.

I've added the code for the validation in GET DATA method of the class - CL_USMD_CR_GUIBB_GENERAL_DATA (Feeder class)

Also I tried to make that as mandatory using fpmgb_s_actionusage, which is also not working as expected. in the UI it is mandatory, but it is also not preventing the user to submit the request.

 

Please correct me if I'm wrong or if any other methods to be followed. 

 

Kind Regards,

Akhil

Accepted Solutions (0)

Answers (2)

Answers (2)

RiccardoBrogi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello @akhil_lal,

 

My recommendation is to not implement the check in your custom feeder class but to use one of the options offered by the MDG Framework to define quality checks and rules.

Depending on the release of your system, you have multiple possibilities:

  • Data Quality Management (DQM) - introduced with MDG on S/4HANA 1809; you can find several blogs (for example, this one) explaining in detail the functionalities;
  • BRF+ - no-code approach; here you can find a step-by-step guide for this
  • Code the rule in ABAP using the BAdI USMD_RULE_SERVICE - more details in this guide.

I hope this helps,

R.

akhil_lal
Explorer
0 Kudos

Hi Riccardo @RiccardoBrogi ,

Thank you for your response.

The reason why I put the code in GET_DATA of the feeder class only because the custom field is available in the structure bss_cril_root_attributes, not added in the data model. So could you please let me know if there is any method to get the CR root attributes in USMD_RULE_SERVICE. 

In the GET_DATA I'm able to get the field and I can setup the validation based on that. Kindly let me know.

BR,

Akhil

sandra_thimme
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear Akhil, could you post your question directly in MDG. That would be great. The application might run in SAP Business Client, but for the methods and classes you have to ask the application team.

https://pages.community.sap.com/topics/master-data-governance

Kind Regards,

Sandra