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

  1. Define business systems in MDG/DRF customizing.
  2. Create parameter `ZMDG_SYSTEM` in `TPARA` and assign it in `SU01`.
  3. Extend BP with `ZZ_SYSTEM` in the CI include and `ZZSYSTEM` in data model `BP` using `MDG_BUSINESS_SYSTEM`.
  4. Implement `IF_EX_USMD_RULE_SERVICE2~DERIVE` for data model `BP` and fill `BP_CENTRL-ZZSYSTEM` from `BAPI_USER_GET_DETAIL` parameter `ZMDG_SYSTEM`.
  5. Maintain value mapping for Company Code (`BUKRS`).
  6. Maintain key mapping for Purchasing Organization.
  7. Redefine `CL_BS_SP_GUIBB_COMPANY_CODES` in `ZCL_BS_SP_GUIBB_COMPANY_CODES` and filter via `FILTER_COMPANY_CODES`.
  8. 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`.
MDGIMG

Master 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`.

Structure
MDGIMG
Master Data Governance
Classic Mode in SAP MDG
Central Governance
Data Quality and Search
Business Add-Ins
BAdI: Derivations Across Entity Types
MDGIMG

Master Data Governance → General Settings → Value Mapping

Maintain Company Code value mapping used to filter the Company Code value help.

Structure
MDGIMG
Master Data Governance
Data Replication Settings
Value Mapping
MDG_KM_MAINTAIN

Key mapping maintenance

Maintain key mappings used for Purchasing Organization filtering.

SM32

Table `TPARA`

Create user parameter `ZMDG_SYSTEM`.

SU01

User → Parameters tab

Assign `ZMDG_SYSTEM` to relevant users.

Referenced tables

ObjectPurpose
TPARAStores 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?

Keywords

MDGBusiness PartnerCustomerSupplierbusiness systeminput helpcompany codepurchasing organizationMDG hubfilterZZ_SYSTEMZZSYSTEMZMDG_SYSTEMBP_CENTRLBUKRSEKORGOVS