cancel
Showing results for 
Search instead for 
Did you mean: 

MDG Convenience API - Data checks

nielsdegreef1
Explorer
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

h_h_ak
Participant
0 Kudos

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

nielsdegreef1
Explorer
0 Kudos

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