SAP MDG · DATA MODEL UI

How do I develop a custom object in SAP MDG Cloud-Ready Mode?

Start by maintaining the OTC in MDGIV_OTC_BS via SM30, then create the model class ZCL_MDC_MODEL_<OTC> and the enumeration class ZCC_MDC_<OTC>, configure the MDC model in MDCMODEL, and generate the required MDC/DQ artifacts before enabling RAP, adapter, and process configuration.

Start by maintaining the OTC in MDGIV_OTC_BS via SM30, then create the model class ZCL_MDC_MODEL_<OTC> and the enumeration class ZCC_MDC_<OTC>, configure the MDC model in MDCMODEL, and generate the required MDC/DQ artifacts before enabling RAP, adapter, and process configuration.

In SAP MDG Cloud-Ready Mode, custom-object development starts with the OTC and then moves through the model class, enumeration class, MDC model customizing, and artifact generation. The guide’s sequence is important because later RAP, adapter, process goal, and process-template steps all depend on the model and mapping being in place.

Process flow

  1. Maintain the OTC in MDGIV_OTC_BS via SM30.
  2. Create ZCL_MDC_MODEL_<OTC> with CL_MDC_MODEL as superclass.
  3. Add IF_MDC_MODEL as Global Friend and set constructor values such as default_source_id_field.
  4. Create ZCC_MDC_<OTC> from CC_MDC_ENUMERATION_COMMON and implement IF_MDC_ENUMERATING.
  5. Maintain the MDC model in MDCMODEL including tables, joins, and join fields.
  6. Generate MDC model artifacts and DQ artifacts and activate them.
  7. Activate the RAP-related switch and configure the adapter entries.
  8. Enable the OTC for the process goal and configure the process template.
SM30

Maintain table MDGIV_OTC_BS

Create the OTC/BO type entry used as the core identifier for the custom object.

MDCMODEL

MDG MDC model customizing

Maintain the MDC model entry, active/persistence tables, joins, and join fields for the custom object.

MDC_GENERATOR

Generate MDC model artifacts and DQ artifacts

Create the generated MDC and Data Quality objects required for the framework.

Referenced tables

ObjectPurpose
MDGIV_OTC_BSStores the Object Type Code / BO Type entry maintained in SM30.

The remaining configuration, implementation details, and testing guidance continue from this answer more…

Related questions and keywords

Alternative questions

  • How do I create an OTC for a custom MDG object?
  • Which table stores the Object Type Code?
  • What is the first step for a Cloud-Ready custom object?

Possible questions

  • How do I create the MDC model class?
  • Which superclass does the custom model class use?
  • What must be set in the model constructor?
  • How do I create the enumeration class?
  • What does ZCC_MDC_<OTC> contain?
  • How are active, inactive, governance and draft entities mapped?
  • How do I configure the MDC model?
  • Where do I maintain tables and joins for a custom object?
  • How do I connect the root and child tables?

Keywords

OTCObject Type CodeMDGIV_OTC_BSSM30ZCL_MDC_MODEL_<OTC>CL_MDC_MODELIF_MDC_MODELCONSTRUCTORdefault_source_id_fieldappend_active_records_by_sqlZCC_MDC_<OTC>CC_MDC_ENUMERATION_COMMONIF_MDC_ENUMERATINGvirtualmodelget_correspondingMDCMODELMDC Modeltable names