2024 Jun 24 4:23 PM - edited 2024 Jun 24 4:25 PM
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
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:
I hope this helps,
R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hello @akhil_lal,
Please try with message type Abort("A") instead of "E", Please let me know if it works.
Regards,
Vipul Gupta
User | Count |
---|---|
69 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.