SAP MDG · DATA MODEL UI

How do I enhance the Material Enterprise Search in SAP MDG?

To make new MDG Material fields searchable, extend data model MM first and then enhance the matching Enterprise Search connector/template for the active area (MATERIAL) and/or staging area (MDG_MATERIAL). For existing MARA fields such as FORMT and MSTAE, include search helps, regenerate the ES structure /MDGMM/_S_MM_ES_MATERIAL, adjust SMT mappings if needed, then update, index, and test the connector.

To make new MDG Material fields searchable, extend data model MM first and then enhance the matching Enterprise Search connector/template for the active area (MATERIAL) and/or staging area (MDG_MATERIAL). For existing MARA fields such as FORMT and MSTAE, include search helps, regenerate the ES structure /MDGMM/_S_MM_ES_MATERIAL, adjust SMT mappings if needed, then update, index, and test the connector.

Enhancing SAP MDG Material Enterprise Search is a two-part task: first extend the MM data model, then make the same fields available in the Enterprise Search connector. The guide covers five scenarios—existing attributes, custom attributes, existing entities, custom entities, and flex entities—and shows how to handle the active MATERIAL connector, staging MDG_MATERIAL search, SMT mappings, indexing, and a temporary fallback by deactivating MDG_BS_MAT_PP_SEARCH.

Process flow

  1. Extend the standard MDG Material data model MM with the required attributes or entities.
  2. Determine whether the search scenario is reuse or flex, and whether it is an existing attribute, custom attribute, existing entity, or custom entity.
  3. For existing MARA attributes such as FORMT and MSTAE, extend entity MATERIAL and include Search Helps.
  4. Verify the generated Enterprise Search structure /MDGMM/_S_MM_ES_MATERIAL for staging search.
  5. Update SMT mappings MDG_BS_MAT_MAP_2PP and MDG_BS_MAT_MAP_2STA if they were not already maintained.
  6. Check whether the active-area MATERIAL template already contains the fields; if not, enhance it in Enterprise Search Modeler.
  7. Create or update the connector, then maintain request fields and applicable response fields.
  8. Schedule indexing in the Enterprise Search Administration Cockpit and wait until indexing completes.

General Settings → Data Quality and Search → Business Add-Ins → BAdI: Search for Data in Reuse Active Area

Temporarily deactivate MDG_BS_MAT_PP_SEARCH when Enterprise Search enhancement is incomplete; QUERY can still search by ID and description.

ESH_MODELER

Modeler → Software Component → Maintain Software Components

Create or maintain the software component used for Enterprise Search template enhancement.

MDG_ES_TEMPL

General Settings → Data Quality and Search → Create Search Object Connector Templates

Create the custom Enterprise Search connector template such as ZMDG_MATERIAL.

General Settings → Data Quality and Search → Assign Search Object Connector Templates to Object Types

Assign the Material search template to object type 194.

ESH_TEST_SEARCH

Enterprise Search test report

Test the MATERIAL or ZMDG_MATERIAL connector with attribute-based search.

Referenced tables

ObjectPurpose
/MDGMM/_S_MM_ES_MATERIALGenerated Enterprise Search structure for staging-area Material search; must contain newly extended attributes.
MDG_BS_MAT_MAP_2PPSMT mapping for the active-area Material search flow; maintain field mappings for new attributes if required.
MDG_BS_MAT_MAP_2STASMT mapping for the staging-area Material search flow; maintain field mappings for new attributes if required.

The remaining configuration, implementation details, and testing guidance continue from this answer more…

Related questions and keywords

Alternative questions

  • Why must Enterprise Search be enhanced after extending MDG Material?
  • How do I make custom MDG Material fields searchable?
  • Can custom attributes in data model MM be used in material search?

Possible questions

  • What Material data-model extension scenarios are covered?
  • What is the difference between reuse and flex Enterprise Search extension?
  • Which scenario should I follow for a custom field or custom entity?
  • How can I temporarily disable MDG Material Enterprise Search while enhancement is incomplete?
  • How do I make FORMT searchable in MDG Material?

Keywords

MDG-MEnterprise SearchMaterialdata model MMcustom fieldssearch extensionreuseflexMATERIALMDG_MATERIALMDG_BS_MAT_PP_SEARCHFORMTMSTAEYMARCZMDGM_BUPA01ZBUPAZESO_S_ZMDGM_BUPA01SMT