SAP MDG · UTILITIES
Which MDG Application Framework API should I use, and what are the main interfaces/classes and limitations?
Use External Model API for read-only entity/hierarchy access, Governance API for governed processing of multiple change requests, Convenience API for simpler single-CR/single-object maintenance, Change Request API for explicit legacy CR lifecycle control, and Context API for process metadata.
Use External Model API for read-only entity/hierarchy access, Governance API for governed processing of multiple change requests, Convenience API for simpler single-CR/single-object maintenance, Change Request API for explicit legacy CR lifecycle control, and Context API for process metadata.
The MDG Application Framework provides five main APIs: Change Request, External Model, Governance, Convenience, and Context. In short, choose External Model for read-only access, Governance for governed processing across CRs, Convenience for simplified single-CR maintenance, Change Request for explicit legacy CR control, and Context for process metadata.
Process flow
- Verify MDG configuration, active model, CR types, workflow, and required business functions.
- Select the API by scope and caller layer.
- Respect one-model-per-instance and LUW restrictions.
- Instantiate the chosen API correctly.
- Set environment/context when required.
- Build entity keys and data references.
- Create or select the change request and enqueue entities.
- Read existing data before change scenarios when needed.
Referenced tables
| Object | Purpose |
|---|---|
USMD120C | Change request type data used in the related example logic. |
USMD1601 | Process assignment for change request types used in the related example logic. |
USMD1210 | Change request notes table used in the related example logic. |
The remaining configuration, implementation details, and testing guidance continue from this answer more…
Related questions and keywords
Alternative questions
- What APIs does the MDG framework provide?
- Which interfaces are available for MDG governance and entity data?
- What are the main MDG Application Framework APIs?
Possible questions
- Which API should I use?
- What is the difference between Governance and Convenience API?
- What can the Change Request API do that other APIs cannot?
- Which API should I use only to read MDG data?
- Can External Model API read hierarchies?
- Why was Governance API introduced?