SAP MDG · UTILITIES
How do I replace Enterprise Search for Material with database search or another supported search provider in SAP MDG?
You can replace MDG Material Enterprise Search with database search by deactivating the standard search implementation, copying the SAP example `MDG_BS_MAT_PP_SEARCH_DB`, and then adapting the search provider selection and searchable attributes. For MDG 7.0/8.0, SAP HANA-based search is also supported and is the default in S/4HANA.
You can replace MDG Material Enterprise Search with database search by deactivating the standard search implementation, copying the SAP example `MDG_BS_MAT_PP_SEARCH_DB`, and then adapting the search provider selection and searchable attributes. For MDG 7.0/8.0, SAP HANA-based search is also supported and is the default in S/4HANA.
You can replace Enterprise Search for MDG Material with database search by deactivating the standard implementation `MDG_BS_MAT_PP_SEARCH`, copying the SAP example `MDG_BS_MAT_PP_SEARCH_DB`, and then adjusting the search mode and searchable attributes. The guide also notes that from MDG 7.0 SP02, SAP HANA-based search can be used as an alternative, and in SAP S/4HANA it is the default.
Process flow
- Identify the target release and choose DB search or HANA search.
- Deactivate `MDG_BS_MAT_PP_SEARCH` in `BADI_SDQ_PP_SEARCH`.
- For DB search, copy `MDG_BS_MAT_PP_SEARCH_DB` and adapt it.
- Enhance `CL_MDG_BS_MAT_SERVICES->CLASS_CONSTRUCTOR` to set the search mode to database search.
- Enhance `CL_MDG_BS_MAT_BO_SEARCH->GET_SEARCHABLE_ATTRIBUTES` to expose only supported criteria.
- Restrict search operators to what the DB search logic supports.
- Clear the relevant buffer after activating the changes.
- For MDG 7.0/8.0, add the provider-support logic using `CL_MDG_BS_SEARCH_PROVIDER_API->IS_PROVIDER_SUPPORTED` if you follow the previous DB-search solution path.
MDGIMGMaster Data Governance, Central Governance → Data Quality and Search → Business Add-Ins → BAdI: Search for Data in Reuse Active Area
For the simplified decoupling approach in MDG 7.0/8.0, deactivate `MDG_BS_MAT_PP_SEARCH`.
MDGIMGMaster Data Governance, Central Governance → Master Data Governance for Material → Business Add-Ins → BAdI: Define Alternate DRF Filter Provider
For the simplified decoupling approach in MDG 7.0/8.0, deactivate `MDG_BS_MAT_DRF_SEARCH`.
Referenced tables
| Object | Purpose |
|---|---|
(none mentioned in the source) | The retrieved guide focuses on BAdIs, classes, and enhancement steps rather than configuration tables. |
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 the standard SAP example for MDG Material database search?
- Which BAdI is used for database search in MDG Material?
- How do I restrict Material search criteria to MATNR, MATKL, and TXTMI?
- What still requires Enterprise Search or HANA search in MDG-M?
- How do I make database search the default provider in MDG 6.1?
- What changes are needed in MDG 7.0/8.0 for DB search?