SAP MDG · DATA MODEL UI
How do I filter MDG Business Partner input help values by business system?
Add a Business System field to MDG Business Partner data, derive it from the current user’s parameter, and use it to filter input helps: Company Code via value mapping and Purchasing Organization via key mapping.
Add a Business System field to MDG Business Partner data, derive it from the current user’s parameter, and use it to filter input helps: Company Code via value mapping and Purchasing Organization via key mapping.
This MDG Business Partner quick reference shows how to restrict input help values by business system. The solution adds a Business System field to BP central data, derives it from the current user’s parameter, then uses that value to filter Company Code and Purchasing Organization selection help.
Process flow
- Define/verify business systems in DRF customizing.
- Create user parameter `ZMDG_SYSTEM` in `TPARA` and assign it in `SU01`.
- Add `ZZ_SYSTEM` to the BP CI include and `ZZSYSTEM` to data model `BP`.
- Implement derivation in `IF_EX_USMD_RULE_SERVICE2~DERIVE` to default `BP_CENTRL-ZZSYSTEM` from the current user parameter.
- Maintain value mapping for `BUKRS` and key mapping for `EKORG`.
- Redefine `CL_BS_SP_GUIBB_COMPANY_CODES` and implement `FILTER_COMPANY_CODES`.
- Redefine `CL_BS_SP_GUIBB_PURCH_ORG`, adjust `CREATE_STRUCT_RTTI`, and assign OVS in `GET_DEFINITION`.
- Redefine `CL_BS_SP_GUIBB_PURCH_ORGS` and filter OVS results in `OVS_HANDLE_PHASE_2` / `OVS_OUTPUT_EKORG`.
MDGIMGMaster Data Governance → General Settings → Value Mapping
Maintain value mapping for Company Code (`BUKRS`) by business system.
MDGIMGMaster Data Governance → General Settings → Data Quality and Search → Business Add-Ins → Derivations Across Entity Types
Create or reuse the BAdI implementation that derives `BP_CENTRL-ZZSYSTEM` from the current user parameter.
SU01User maintenance → Parameters tab
Assign parameter `ZMDG_SYSTEM` to each user and store the default business system.
Key mapping maintenance
Maintain key mappings for `EKORG` and other sub-objects by business system.
Referenced tables
| Object | Purpose |
|---|---|
TPARA | Stores user parameter definitions such as `ZMDG_SYSTEM`. |
The remaining configuration, implementation details, and testing guidance continue from this answer more…
Related questions and keywords
Alternative questions
- Why filter MDG input helps by business system?
- What problem does business-system-specific input help solve?
- How can MDG users see only relevant company codes or purchasing organizations?
Possible questions
- How do I restrict input help values based on the target system?
- Where are business systems defined in MDG?
- How do I link a user to a business system?
- What types of input helps are used in MDG-C and MDG-S?
- Which feeder methods control value helps?
- Which methods control OVS results?