SAP MDG · COMMUNITY
How to set default values in SAP MDG Single Object Maintenance UIs?
In SAP MDG Single Object Maintenance UIs, first identify whether the field is in the Change Request UIBB or the entity UIBB, then choose the matching defaulting option. The guide supports code enhancement, feeder-class inheritance with Web Dynpro Customizing, and Web Dynpro Personalization for Change Request data; for entity data, it supports feeder-class code, Web Dynpro Personalization, and BAdI `USMD_RULE_SERVICE` with `DERIVE_ENTITY` for non-key defaults.
In SAP MDG Single Object Maintenance UIs, first identify whether the field is in the Change Request UIBB or the entity UIBB, then choose the matching defaulting option. The guide supports code enhancement, feeder-class inheritance with Web Dynpro Customizing, and Web Dynpro Personalization for Change Request data; for entity data, it supports feeder-class code, Web Dynpro Personalization, and BAdI `USMD_RULE_SERVICE` with `DERIVE_ENTITY` for non-key defaults.
In SAP MDG Single Object Maintenance UIs, defaulting depends on whether the field belongs to the Change Request UIBB or the entity UIBB. The guide’s example uses data model `SF` and entity type `PFLI`, with the upper UIBB holding CR data and the lower UIBB holding entity data. For Change Request defaults, the source supports code enhancement in `CL_USMD_CR_GUIBB_GENERAL_DATA`, feeder inheritance with Web Dynpro Customizing, or Web Dynpro Personalization. For entity defaults, use feeder-class code, personalization, or BAdI `USMD_RULE_SERVICE` for derivation logic.
Process flow
- Identify whether the field belongs to the Change Request UIBB or the entity UIBB.
- Choose the supported defaulting technique for that UIBB.
- For Change Request data, prefer enhancement in `CL_USMD_CR_GUIBB_GENERAL_DATA` method `IF_FPM_GUIBB_FORM~PROCESS_EVENT`, feeder inheritance plus Web Dynpro Customizing, or Web Dynpro Personalization.
- For entity data, use feeder-class code/inheritance, Web Dynpro Personalization, or BAdI `
USMD_RULE_SERVICE` / `DERIVE_ENTITY`. - Account for the known limitations: no CR-header BAdI, personalization is user-specific and not transportable, and entity derivation cannot fill key fields.
Context menu on input fields or `DropDownByKey` controls in the running UI
Set user-specific defaults for supported UI elements.
The remaining configuration, implementation details, and testing guidance continue from this answer more…
Related questions and keywords
Alternative questions
- How do I set default values in an MDG single-object UI?
- How can fields be prepopulated in SAP MDG?
- What options exist for default values in FPM BOL-based UIs?
Possible questions
- Which data model is used in the guide?
- Which entity demonstrates the default-value techniques?
- What is the upper UIBB?
- What is the lower UIBB?
- Why are defaulting techniques different?
- What are all ways to set defaults?
- Which approaches work for CR data and entity data?
- How do I default Change Request header data?