SAP MDG · VALIDATION DERIVATION
How do I create an MDG enrichment spot with user interaction during the consistency check?
Create an enrichment spot in MDGIMG, assign an adapter and feeder, and attach it to the relevant Change Request steps with Relevant=true and Execution=Always executed. In the guide’s Airline example, the user presses Check in usmd_entity_value2, a popup shows URLs from ZMH_AIRLINE_URL, and OK returns the selected URL back to the Airline URL field.
Create an enrichment spot in MDGIMG, assign an adapter and feeder, and attach it to the relevant Change Request steps with Relevant=true and Execution=Always executed. In the guide’s Airline example, the user presses Check in usmd_entity_value2, a popup shows URLs from ZMH_AIRLINE_URL, and OK returns the selected URL back to the Airline URL field.
Use an MDG enrichment spot for the Single Processing UI consistency check. In the guide’s example, the user presses Check, MDG calls the customer-specific enrichment, a popup displays Airline URLs from ZMH_AIRLINE_URL, and the selected value is transferred back to the Airline URL field on OK.
Process flow
- Use the Single Processing UI for the master data object.
- Create or process a Change Request configured for the enrichment.
- Press Check to trigger consistency-check processing.
- Call the adapter implementation.
- Show the popup UI if user interaction is required.
- Return ENRI for OK or CNCL for Cancel.
- Transfer the selected value back to the MDG field.
- Prevent duplicate popup execution with c_last_user_action = 'ENRI'.
MDGIMGCreate Change Request Type / Enrichment Spot / Assign enrichment to Change Request steps
Define the Change Request type, assign the workflow, register the enrichment spot, and set Relevant=true and Execution=Always executed.
SE24Create adapter class implementing IF_USMD_ENRICHMENT_ADAPTER and feeder class implementing IF_USMD_ENRICHMENT_FEEDER
Implement the MDG enrichment logic and the MDG-to-popup data conversion.
Referenced tables
| Object | Purpose |
|---|---|
ZMH_AIRLINE_URL | Database table used by the example to store URL values displayed in the popup. |
The remaining configuration, implementation details, and testing guidance continue from this answer more…
Related questions and keywords
Alternative questions
- How do I create an enrichment spot with user interaction in SAP MDG?
- How can I show a popup during an MDG consistency check?
- How can an MDG enrichment update a field after user selection?
Possible questions
- When is the enrichment implementation called?
- Can an enrichment run when the user clicks Check?
- What example does the guide use?
- What field is enriched?
- What does the popup contain?
- How do I test the enrichment while creating an Airline?
- What happens when I click Check during creation?
- Does the enrichment work when processing an existing CR?
- How do I test the enrichment on an existing Airline?