SAP MDG · COMMUNITY

How to Enhance the Material Enterprise Search in SAP MDG?

Enhance the MDG Material data model MM and then extend the matching Enterprise Search connector/template for the scenario you use: reuse attributes, reuse entities, custom reuse fields, custom reuse entities, or flex entities. For active area search use MATERIAL; for staging area use MDG_MATERIAL or a custom template such as ZMDG_MATERIAL, then update request/result fields, index, and test.

Enhance the MDG Material data model MM and then extend the matching Enterprise Search connector/template for the scenario you use: reuse attributes, reuse entities, custom reuse fields, custom reuse entities, or flex entities. For active area search use MATERIAL; for staging area use MDG_MATERIAL or a custom template such as ZMDG_MATERIAL, then update request/result fields, index, and test.

Enhancing SAP MDG Material Enterprise Search is required when you add fields or entities to data model MM and want those additions to be searchable. The guide distinguishes reuse and flex scenarios, and separates the active-area connector MATERIAL from the staging-area connector MDG_MATERIAL. In practice, you extend the data model, update the relevant search template/connector, maintain request and result-list fields, and then index and test the connector.

Process flow

  1. Extend the standard MDG Material data model MM with the required attributes or entities.
  2. Choose the correct scenario: existing attributes reuse, custom attributes reuse, existing entity reuse, custom entity reuse, or existing entity flex.
  3. For active area search, check and enhance the MATERIAL connector/template if the fields are not already included.
  4. For staging area search, generate or update MDG_MATERIAL or a custom template such as ZMDG_MATERIAL.
  5. Maintain request fields and the applicable response fields.
  6. Update SMT mappings if the new fields are not already mapped.
  7. Create or update the connector and schedule indexing.
  8. Test the connector with ESH_TEST_SEARCH or the relevant search UI scenario.
MDG IMG

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

Temporarily deactivate MDG_BS_MAT_PP_SEARCH if Enterprise Search enhancement is incomplete and you need QUERY-based fallback value help.

ESH_MODELER

Software Component → Maintain Software Components / Include Software Components

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

MDG_ES_TEMPL

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

Generate or update the staging/search template such as ZMDG_MATERIAL and assign it to object type 194.

MDG IMG

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 connector after indexing and verify search results for the added fields.

Referenced tables

ObjectPurpose
MARAReuse table containing standard material attributes such as FORMT and MSTAE, and also customer-added reuse fields in the documented scenarios.
MMMDG Material data model to be extended before making fields searchable.
MATERIALActive-area Enterprise Search connector/template for material search.
MDG_MATERIALStaging-area Enterprise Search connector/template for MDG material search.
/MDGMM/_S_MM_ES_MATERIALGenerated Enterprise Search structure relevant for staging-area search validation.
MDG_BS_MAT_MAP_2PPSMT mapping used when the active-area material search mapping must be updated.
MDG_BS_MAT_MAP_2STASMT mapping used when the staging-area material search mapping must be updated.

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?
  • What can I do while the Enterprise Search enhancement is incomplete?
  • How can Material value help continue working if ES is unavailable?
  • Which BAdI implementation can be temporarily deactivated?
  • What is MDG_BS_MAT_PP_SEARCH?
  • How do I make FORMT searchable in MDG Material?

Keywords

MDG-MEnterprise SearchMaterialdata model MMcustom fieldssearch extensionreuseflexexisting attributescustom attributesexisting entitycustom entityMDG_BS_MAT_PP_SEARCHSearch for Data in Reuse Active Areavalue helpQUERYMMMATERIALMARAFORMT