Beyond ABAPdesigned by@Tejoram97
Beyond ABAP / SAP MDG / Interview Questions

Interview Questions

SAP MDG · Data & Analytics ·

Open the interactive lesson →

All SAP MDG (Master Data Governance) interview questions in one place, grouped by page. Read the page when an answer needs more depth.

How to practise: cover the answer, say yours out loud in 30–60 seconds, then compare.

01 · MDG Overview, Architecture & Deployment

Q1. What is SAP MDG?

SAP's master data management solution with out-of-the-box applications – predefined data models, UIs, workflows and business rules. It enables domain-specific governance: centrally create, change, distribute or consolidate master data across the whole system landscape.

Q2. Which master data domains does MDG cover out of the box?

Business partner with customer and supplier (data model BP), material / product (MM), financials (0G: accounts, cost and profit centers, company …) and custom objects for anything else. Enterprise asset management and retail / fashion are covered by SAP solution extensions by Utopia.

Q3. Name the main MDG capabilities.

Central governance (change requests), consolidation (match and best record), mass processing, data quality management (rules, evaluation, rule mining), MDG analytics and, newer, federated governance.

Q4. Describe the MDG architecture.

A central ABAP system (S/4HANA or ERP 6.0) with UI layer (Fiori, Web Dynpro FPM), process layer (change request, rule-based workflow, BRF+ validations), data layer (data model, staging and active area) and distribution (DRF, key and value mapping). Optional parts: HANA search, Information Steward, Data Services. Client systems are connected via SOA, ALE, RFC or files.

Q5. Co-deployment vs hub – what is the difference?

Co-deployed MDG shares the S/4HANA or ERP system with the operational processes; active data is used immediately. A hub is a separate system that only runs master data processes and replicates to many backends; it decouples upgrades and load but needs replication, mapping and aligned customizing.

Q6. When would you recommend a hub?

With many heterogeneous targets (several ERPs, CRM, non-SAP), when MDG must start before or independently of the S/4HANA migration, when governance load should not hit the ERP, or when MDG needs its own upgrade cycle.

Q7. How do you activate MDG?

Activate the business functions in SFW5 (foundation MDG_FOUNDATION… first, then the domain functions such as MDG_MATERIAL or MDG_ERP_CUSTOMER_1), activate the data model in MDGIMG, activate the BC sets (SCPR20), activate the UI services and assign roles.

Q8. What is MDGIMG?

The MDG Customizing transaction – like SPRO but limited to MDG: data modeling, UI modeling, process modeling (change request types, workflow), data quality and search, mapping, replication, consolidation and mass processing.

Q9. What is the difference between MDG on ECC and MDG on S/4HANA?

MDG on ECC ends with MDG 9.2 (maintenance only); S/4HANA 1809 corresponds to 9.2 and every later innovation – Fiori apps, DQM, consolidation and mass processing, cloud-ready mode, federation – is S/4HANA-only. On ECC, MDG-C / MDG-S already use the BP with CVI, but the rest of ECC can still maintain customers and vendors with XD01 / XK01; on S/4HANA customer and supplier are always business partners (XD01 / XK01 redirect to BP).

Q10. What is cloud-ready mode?

An alternative to classic mode introduced with S/4HANA 2023 for the business partner domain: CDS data model, RAP business logic, Fiori UIs, clean-core compliant. It can coexist with classic mode and is the recommended start for new BP implementations.

Q11. Which MDG editions exist in the cloud?

MDG in S/4HANA Cloud Private Edition (full scope), in S/4HANA Cloud Public Edition (BP and product subset) and SAP Master Data Governance, cloud edition – a SaaS on BTP for business partner core attributes that can act as core data owner in federated governance.

Q12. Why is master data governance important for an S/4HANA greenfield project?

Every process reads master data, and a greenfield project migrates it only once: consolidating and cleansing before go-live and governing it afterwards keeps duplicates and wrong values out of the new system and gives a single source for all connected systems.

02 · Data Models, Staging & User Interfaces

Q1. What is an MDG data model?

The definition of a domain in MDG: entity types with attributes, relationships, hierarchies and a reuse area. Activating it generates the staging tables (/1MD/…). Standard models are BP, MM and 0G; custom objects get their own model.

Q2. Explain the storage and use types.

1 = changeable via change request with generated tables (root objects); 2 = changeable without change request, only check and text tables (value lists); 3 = not changeable in MDG, no tables (reference values like country or plant); 4 = changeable only via the CR of its type-1 parent (dependent data such as plant data or bank details).

Q3. What are leading, qualifying and referencing relationships?

Leading: the higher entity type's key becomes a key of the lower one. Qualifying: adds an extra key field, e.g. plant for plant data. Referencing: the entity type becomes a normal attribute of the other entity type.

Q4. What is the difference between staging area and active area?

The staging area holds inactive data of open change requests in MDG-generated tables; the active area holds released data used by processes and replication. Data moves from staging to active only when the change request is activated.

Q5. Reuse mode vs flex mode?

Reuse mode stores active data in the existing application tables (MARA, BUT000) through an access class and SMT mapping – standard for MM and BP. Flex mode keeps active data in MDG-generated tables (reuse area MDG) and reaches the ERP only through replication – standard for 0G and custom objects.

Q6. Which data model is used for financials and why are editions needed?

Data model 0G (0F is obsolete). Financial objects like cost centers and profit centers are time-dependent; the edition supplies the valid-from date of the change and groups changes that become valid together, so time slices are created correctly.

Q7. What does a change request type control?

Data model and main entity type, business activity (create / change …), single or multiple objects, the workflow template (often the rule-based workflow WS60800086), edition type, allowed entity types and UI, priorities and SLAs.

Q8. Name some change request statuses.

00 To Be Evaluated, 01 To Be Considered and Approved, 02 Changes to Be Executed, 03 To Be Revised, 04 Final Check to Be Performed, 05 Final Check Approved, 06 Final Check Rejected, 07 Activation Failed, 08 Approved, to Be Replicated.

Q9. Which UI technologies does MDG use?

Classic mode: Web Dynpro ABAP with Floorplan Manager on BOL / genIL, e.g. MDG_BS_MAT_OVP, BS_OVP_BP or the generic USMD_OVP_GEN, started from the Fiori launchpad (formerly NWBC / Portal). Fiori apps for business users, consolidation, mass processing, DQM and analytics; cloud-ready mode uses Fiori on RAP.

Q10. Where is a change request stored?

Header in USMD120C (type, status, edition), object list in USMD1213, changed data in the /1MD/ staging tables, workflow in the work item container. Access them through the MDG APIs rather than directly.

Q11. Why may an object not be changed while it is in another change request?

MDG locks objects in open change requests so that two requests cannot change the same data in parallel and overwrite each other at activation.

03 · Governance Processes & Configuration

Q1. Walk me through the change request lifecycle.

The requester creates a CR of a CR type and submits it (step 00, status 00). Validations, derivations and the duplicate check run. The workflow routes it through approval and processing steps, then a final check (status 04). A background step activates the data from staging into the active area (status 05) and DRF replicates it. Rejection ends with status 06; activation errors roll back.

Q2. What is the rule-based workflow?

A generic workflow template (WS60800086) whose route and agents come from three BRF+ decision tables per CR type, maintained in USMD_SSW_RULE. Steps can be added, removed or reordered without changing the workflow definition.

Q3. Name the three decision tables and their purpose.

Single value table DT_SINGLE_VAL_<CR type>: previous step and action → next step and status. User agent table DT_USER_AGT_GRP_<CR type>: who processes a dialog step. Non-user agent table DT_NON_USER_AGT_GRP_<CR type>: the process pattern of a background step. The condition alias links them.

Q4. What is a process pattern?

The type of a background step in the rule-based workflow: 02 synchronous method, 03 sub-workflow, 05 activation, 06 activation bypassing the snapshot, 08 roll back, 99 complete. 01 UI dialog is used for user steps.

Q5. How do you set up parallel approval?

Give one step several agent groups in the user agent table – each group gets its own work item – and configure in the single value table how the results are merged before the next step.

Q6. How are validations and derivations implemented?

Backend checks of the application in reuse mode, BRF+ validation and derivation rules (USMD_RULE), DQM rules, and BAdIs for complex logic across entity types. They run on check, save and before activation.

Q7. How does the duplicate check work?

A search application with a match profile is assigned to the data model and entity type. With SAP HANA search, similarity scores are compared with a lower and an upper threshold; matches are shown to the requester before the object is created.

Q8. Explain consolidation.

Records from several sources are loaded, checked, standardised, matched into match groups, merged into a best record with survivorship rules, validated and activated (or passed to a change request); key mapping keeps the link to the source IDs. A process template defines the steps.

Q9. When do you use mass processing instead of change requests?

For the same change on many existing records – e.g. extending thousands of customers to a new sales area. Mass processing selects, changes, validates and activates them in one process run by data stewards.

Q10. What does data quality management in MDG offer?

Data quality rules defined once and used both as checks in governance processes and to evaluate existing data with scores; rule mining proposes rules from the data; violating records can be corrected through mass processing.

Q11. Which MDG analytics do you know?

Process analytics with an overview page and the Change Request Analysis and Change Process Analysis apps (based on generated CDS views), change analytics by attributes, SLA monitoring and data quality scores.

Q12. What is the snapshot check at activation?

MDG compares the active data with the state at CR start. If the object was changed outside the CR, activation pattern 05 stops so nothing is overwritten unnoticed; pattern 06 bypasses the check.

04 · Data Replication & Integration

Q1. What is the Data Replication Framework?

The SAP framework that distributes master data from a source system to target systems. A replication model defines which outbound implementations send to which business systems, with filters and parameters; DRF runs automatically after MDG activation, as an initial load or manually (DRFOUT), and logs every run (DRFLOG).

Q2. Explain replication model, outbound implementation and business system.

The outbound implementation is the code that builds the message for one object and channel (e.g. 986_3 BP via services). The business system represents the target, mapped to a logical system, with channel and key harmonisation per BO type. The replication model connects outbound implementations to target systems and must be activated.

Q3. Which replication modes exist?

Initialization (initial load of all relevant objects), changes (delta after activation or change) and manual (selected objects, e.g. with DRFOUT).

Q4. SOA or IDoc – which would you choose?

SOA web services for S/4HANA and BP-based receivers: the full BP with roles and relationships, bulk messages and confirmations that fill key mapping. IDocs for ECC and older systems where they are established, using serialisation and ALE audit. DEBMAS / CREMAS only carry the customer / vendor view.

Q5. What is the difference between key mapping and value mapping?

Key mapping links the IDs of the same object in different systems (BO type + object identifier type + ID). Value mapping translates code values such as payment terms or units. Key mapping grows with the data, value mapping with customizing.

Q6. When do you not need key mapping?

When the business system uses harmonized IDs – the same number in MDG and the target. That needs aligned number ranges and external numbering in the target.

Q7. Does a co-deployed MDG replicate?

Not into its own system: activation writes the operational tables directly. It still replicates to every other system (CRM, other ERPs, non-SAP, cloud) with DRF.

Q8. How do you set up IDoc replication of business partners?

RFC destinations and logical systems, distribution model with BUPA_INBOUND_MAIN_SAVE_M and BUPA_INBOUND_REL_SAVE_M (BD64), partner profiles (BD82 / WE20), serialisation in the target, ALE audit, then DRF: business system with BO types 147 / 1405 and channel IDoc, replication model with outbound implementation 986_1, activate.

Q9. What is SAP Master Data Integration and how does it relate to MDG?

A BTP service that distributes master data between SAP applications on the SAP One Domain Model. It distributes but does not govern; MDG governs the data and S/4HANA feeds MDI with DRF. MDG cloud edition integrates with SAP applications through MDI.

Q10. How can an external system create a business partner in MDG under governance?

Send it to the hub with the BP replication request service and implement the inbound BAdI MDG_SE_BP_BULK_REPLRQ_IN so that a change request (and key mapping) is created instead of a direct update; for many records use a consolidation process.

Q11. A replicated customer does not arrive in the target. How do you analyse it?

DRFLOG in MDG (was it sent, filtered, failed?), then the channel: SRT_MONI / SXMB_MONI for SOAP, WE02 / BD87 and ALE audit for IDocs, AIF if used. Typical causes: inactive model, filter, missing customizing or value mapping in the target, CVI number range. Fix and restart from DRFLOG.

Q12. Does a replication error roll back the change request?

No. Activation and replication are decoupled: the data is valid in MDG, replication is repeated after the target problem is fixed (DRFLOG restart, IDoc reprocessing).

05 · Development & Extensibility

Q1. How do you add a custom field to the material in MDG?

Reuse mode: append the field to MARA (and T130F), add the attribute to entity type MATERIAL of data model MM, activate and generate the structures, extend the _X / _UI structures, maintain the SMT mapping, add the field to the UI configuration, then rules and replication. In flex mode only the attribute is added and activated.

Q2. Which BAdI implements validations and derivations?

USMD_RULE_SERVICE (interface IF_EX_USMD_RULE_SERVICE), filtered by data model and entity type: CHECK_ENTITY for checks, DERIVE_ENTITY for derivations, CHECK_CREQUEST for the whole change request. USMD_RULE_SERVICE_CROSS_ET handles logic across entity types.

Q3. How do you return an error message from CHECK_ENTITY?

Append a line of type USMD_S_MESSAGE (MSGID, MSGTY = 'E', MSGNO, MSGV1–4) to ET_MESSAGE. An error prevents submitting or activating the change request.

Q4. How do you read data of another entity type inside the BAdI?

Through IO_MODEL (IF_USMD_MODEL_EXT), the external model API – it reads staging or active data consistently. Never SELECT from the generated /1MD/ tables.

Q5. BRF+ or BAdI – how do you decide?

BRF+ for rules business can understand and maintain (mandatory fields, simple value checks, derivations from a value); BAdI for cross-entity logic, external calls, loops or performance. A BRF+ procedure call can wrap a small piece of ABAP.

Q6. How do you make a field mandatory only in a certain situation?

Statically per step in the CR step properties; dynamically with BAdI USMD_ACC_FLD_PROP_CUST_DEP_SET (MODIFY_FLD_PROP_ATTR), or a validation that raises an error when the field is empty.

Q7. How do you determine the approver from the data of the change request?

Either add the data to the rule context (USMD_SSW_RULE_CONTEXT_PREPARE) and route in the user agent decision table, or implement USMD_SSW_DYNAMIC_AGENT_SELECT (GET_DYNAMIC_AGENTS) and reference its service name in the decision table.

Q8. What is process pattern 02 used for?

A synchronous system method in a background step: the workflow calls BAdI USMD_SSW_SYSTEM_METHOD_CALLER with the service name from the non-user agent decision table, e.g. for an external check or enrichment before the next step.

Q9. How do you replicate a custom BP field to S/4HANA?

Extend the BP data model in MDG and the BP tables in both systems, extend the SOA message (enterprise service enhancement) and fill / read it in MDG_SE_BP_BULK_REPLRQ_OUT / _IN – or extend the IDoc – and map it between BP and customer / vendor with CVI_CUSTOM_MAPPER where needed.

Q10. How do you create change requests from a program?

With the governance API (CL_USMD_GOV_API): create the CR, lock and write entity data, check, save and start the workflow. The convenience API is meant for single-object UIs.

Q11. What do you need for a completely new object in MDG?

A custom data model in flex mode with entity types and attributes, generated structures, a business object type, a USMD_OVP_GEN UI configuration, business activities, CR type and rule-based workflow, rules, a replication approach (custom outbound implementation) and authorisations.

Q12. Which RICEFW objects are typical in an MDG project?

Validations and derivations (BRF+ / BAdIs), dynamic agent and parallel approval logic, data model and UI extensions for custom fields, replication of custom fields, inbound interfaces creating change requests, mass loads via consolidation, and reports on change requests.

06 · S/4HANA, Cloud & Architect View

Q1. What changed for MDG with S/4HANA?

BP and CVI are mandatory for customers and suppliers (ECC: only MDG-C / MDG-S used the BP, XD01 / XK01 still worked), Fiori apps, HANA-based search and matching, the full consolidation and mass processing framework, built-in DQM, process analytics on CDS, cloud-ready mode and federation. MDG on ECC ends with 9.2.

Q2. What is cloud-ready mode and when would you use it?

A way to run MDG in S/4HANA (since 2023) built on ABAP Cloud – CDS, RAP, new Fiori apps, key-user extensibility, optional SAP Build Process Automation workflows. Today for business partner incl. customer and supplier. Use it for new BP projects with clean-core goals; it can coexist with classic mode for other domains.

Q3. What is SAP Master Data Governance, cloud edition?

A SaaS on BTP for business partner core attributes on the SAP One Domain Model, with central governance, consolidation and DQM, integrated through SAP Master Data Integration. It often acts as core data owner in federated governance; product is on the roadmap.

Q4. Explain federated governance.

Governance is split by ownership: a core data owner governs enterprise-wide core attributes (e.g. MDG cloud edition for BP), application data owners govern application-specific data such as customer sales or supplier purchasing data (e.g. MDG on S/4HANA).

Q5. MDG vs SAP Master Data Integration?

MDG governs: change requests, workflow, rules, quality, consolidation. MDI distributes master data between SAP applications on the One Domain Model without governance. They complement each other.

Q6. How do you migrate an MDG hub from ECC to S/4HANA?

Either a system conversion of the hub – configuration, data models, rules and DRF settings move along, after simplification and custom code checks – or a new hub on S/4HANA with selective re-implementation, often adopting cloud-ready mode for BP, loading active data and switching domains step by step. The hub can move independently of its ECC clients.

Q7. Central governance or consolidation?

Consolidation for existing data spread over systems – migrations, acquisitions, cleansing; central governance for creating and changing data under control from now on. Typical programmes consolidate first and then govern centrally.

Q8. Which domain would you start with and why?

Usually business partner: high business impact (duplicates, payment fraud risk on bank details), clear owners, standard content and cloud-ready support. Then product, then finance.

Q9. What CVI decisions matter for MDG?

BP grouping to account group mapping, number ranges (same number for BP and customer / supplier), roles per target system, contact persons and relationships – identical in MDG and every receiving S/4HANA. In a conversion, CVI must be completed first.

Q10. How do you keep an MDG implementation clean core?

Cloud-ready mode where possible, configuration before code (MDGIMG, BRF+, FPM configuration), DQM rules instead of BAdIs, only documented BAdIs and APIs, no modifications, side-by-side extensions on BTP for portals and approvals.

Q11. Harmonized IDs or key mapping?

Harmonized IDs give the same number everywhere and simpler operations but need aligned number ranges and external numbering in the targets. Key mapping is needed when targets keep their own or legacy numbers, e.g. existing ECC systems; SOA confirmations and consolidation maintain it.

Q12. How does MDG relate to SAP Business Data Cloud?

SAP positions MDG as part of SAP Business Data Cloud: the governance layer that supplies trusted, consistent master data to the business data fabric and its data products for analytics and AI.