SAP MDG · COMMUNITY

How can I replace Enterprise Search in MDG Material with database search or SAP HANA search?

MDG Material can be adapted to use database search or SAP HANA search instead of Enterprise Search, but the implementation depends on release and provider. The database-search example uses `MDG_BS_MAT_PP_SEARCH_DB` for `BADI_SDQ_PP_SEARCH`, while MDG 7/8 adds provider-mode and provider-support enhancements; duplicate check and DIF still need Enterprise Search or HANA-based search.

MDG Material can be adapted to use database search or SAP HANA search instead of Enterprise Search, but the implementation depends on release and provider. The database-search example uses `MDG_BS_MAT_PP_SEARCH_DB` for `BADI_SDQ_PP_SEARCH`, while MDG 7/8 adds provider-mode and provider-support enhancements; duplicate check and DIF still need Enterprise Search or HANA-based search.

MDG Material can be switched away from Enterprise Search, but the exact setup depends on whether you want database search or SAP HANA search and on your MDG release. The standard SAP example for DB search is `MDG_BS_MAT_PP_SEARCH_DB`, which implements `BADI_SDQ_PP_SEARCH` and supports `MATNR`, `MATKL`, and `TXTMI`.

Process flow

  1. Review DB-search limitations before changing the provider.
  2. Deactivate `MDG_BS_MAT_PP_SEARCH`.
  3. For DB search, copy `MDG_BS_MAT_PP_SEARCH_DB`.
  4. Create or adapt the `BADI_SDQ_PP_SEARCH` implementation and activate it.
  5. Enhance `CL_MDG_BS_MAT_SERVICES->CLASS_CONSTRUCTOR`.
  6. For DB search in MDG 7/8, set `sv_search_mode = if_mdg_sdq_const=>search_mode_db`.
  7. For MDG 6.1, implement an Overwrite Exit for `CL_MDG_BS_MAT_BO_SEARCH->GET_SEARCHABLE_ATTRIBUTES`.
  8. For MDG 7/8, implement a Post Exit for `CL_MDG_BS_MAT_BO_SEARCH->GET_SEARCHABLE_ATTRIBUTES` and execute DB logic only when search mode is DB.
MDGIMG

Master Data Governance, Central Governance → Data Quality and Search → Business Add-Ins → BAdI: Search for Data in Reuse Active Area

Deactivate `MDG_BS_MAT_PP_SEARCH` for the simplified decoupling approach.

Structure
MDGIMG
Master Data Governance
Classic Mode in SAP MDG
Central Governance
Data Quality and Search
Business Add-Ins
BAdI: Search for Data in Reuse Active Area
MDGIMG

Master Data Governance, Central Governance → Master Data Governance for Material → Business Add-Ins → BAdI: Define Alternate DRF Filter Provider

Deactivate `MDG_BS_MAT_DRF_SEARCH` for the simplified decoupling approach.

Structure
MDGIMG
Master Data Governance
Classic Mode in SAP MDG
Central Governance
Central Governance for Material
Business Add-Ins
BAdI: Define Alternate DRF Filter Provider
Clear Shared Memory Buffer

Customizing activity

Clear the shared memory buffer after DB-search implementation changes in MDG 6.1.

Referenced tables

ObjectPurpose
VC_USMD006Field Properties customizing used to derive result-list attributes in the DB-search example.

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

Related questions and keywords

Alternative questions

  • How can I replace Enterprise Search in MDG-M?
  • Can MDG Material use database search instead of Enterprise Search?
  • Can SAP HANA search replace Enterprise Search for Material?

Possible questions

  • What is `MDG_BS_MAT_PP_SEARCH_DB`?
  • Which BAdI is used for database search in MDG Material?
  • Which search criteria are supported by the example DB search?
  • Does duplicate check work with database search?
  • How do I make DB search the default in MDG 7/8?

Keywords

MDG-MMaterialEnterprise SearchDatabase SearchDB SearchSAP HANA SearchAlternative Search ProviderMDG 6.1MDG 7.0MDG 8.0BADI_SDQ_PP_SEARCHMDG_BS_MAT_PP_SEARCHMDG_BS_MAT_PP_SEARCH_DBCL_MDG_BS_MAT_SERVICESCL_MDG_BS_MAT_BO_SEARCHCL_MDG_BS_SEARCH_PROVIDER_API