SAP MDG · COMMUNITY
How do I extend MDG Business Partner to filter input help values by Business System?
Add a Business System field to BP, derive it from the current user parameter ZMDG_SYSTEM, then use that field to filter Company Code via value mapping and Purchasing Organization via key mapping.
Add a Business System field to BP, derive it from the current user parameter ZMDG_SYSTEM, then use that field to filter Company Code via value mapping and Purchasing Organization via key mapping.
This scenario adds a Business System field to MDG Business Partner data, derives its value from the current user's parameter, and uses that Business System as the filter criterion for relevant input helps. The source guide splits the implementation into two paths: Company Code filtering with MDG value mapping and Purchasing Organization filtering with MDG key mapping.
Process flow
- Define business systems in MDG/DRF customizing.
- Create parameter `ZMDG_SYSTEM` in `TPARA` and assign it in `SU01`.
- Extend BP with `ZZ_SYSTEM` in the CI include and `ZZSYSTEM` in data model `BP` using `MDG_BUSINESS_SYSTEM`.
- Implement `IF_EX_USMD_RULE_SERVICE2~DERIVE` for data model `BP` and fill `BP_CENTRL-ZZSYSTEM` from `BAPI_USER_GET_DETAIL` parameter `ZMDG_SYSTEM`.
- Maintain value mapping for Company Code (`BUKRS`).
- Maintain key mapping for Purchasing Organization.
- Redefine `CL_BS_SP_GUIBB_COMPANY_CODES` in `ZCL_BS_SP_GUIBB_COMPANY_CODES` and filter via `FILTER_COMPANY_CODES`.
- Redefine `CL_BS_SP_GUIBB_PURCH_ORG` in `ZCL_BS_SP_GUIBB_PURCH_ORG`, add `EKORG__TEXT` in `CREATE_STRUCT_RTTI`, and assign OVS in `GET_DEFINITION`.
MDGIMGMaster Data Governance → General Settings → Data Quality and Search → Business Add-Ins → Derivations Across Entity Types
Create or reuse the BAdI implementation for deriving `ZZSYSTEM` in entity `BP_CENTRL`.
MDGIMGMaster Data Governance → General Settings → Value Mapping
Maintain Company Code value mapping used to filter the Company Code value help.
Key mapping maintenance
Maintain key mappings used for Purchasing Organization filtering.
SM32Table `TPARA`
Create user parameter `ZMDG_SYSTEM`.
SU01User → Parameters tab
Assign `ZMDG_SYSTEM` to relevant users.
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
- 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?