on 07-10-2017 3:49 PM
Hi,
I'm using the Convenience API to create a CR on the MDG system for a custom Data Model. Before saving the CR, I execute the business checks (Method CHECK) and validation of CR (Method VALIDATE_CREQUEST) and in case of no errors the CR is automatically activated.
However that I executed both methods and no errors were returned, I was able to create a sub entity line for which not all key fields were filled in.
When entering the same line on the UI a GENIL error message is generated, stating that a required field has not been filled in.
Does anyone know how I can execute the GENIL checks from my inbound interface?
Thank you in advance for your reply!
Kind regards,
Niels De Greef
Hello Niels,
normally before I start the workflow, I call method IF_USMD_GOV_API_PROCESS~CHECK_COMPLETE_DATA( ) to corresponding data. I think this method also checks after key values, as well as CHECK Badi will be triggered also.
Do you use this method in you coding?
BR,
Hasan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Hasan,
Thank you for your reply.
I'm using the Convenience API (single CR processing) and the CHECK method of the Convenience API executes the CHECK_COMPLETE_DATA method which you suggested.
This indeed executes the CHECK BAdI but it does not return the GENIL messages (ex. mandatory field value or if the entered value is not a valid value for the domain).
KR,
Niels De Greef
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.