Setup and Enhance SAP HANA-Based Search for Material

As of MDG 7.0 it is also possible to use SAP HANA as search provider. If you have extended the data model MM and want to search with these new fields you have to extend the search. This guide provides background information about the SAP HANA search and describes how to configure it if you have extended the data model. Download the Document

PUBLICHow-ToSetup and Enhance the SAP HANA-Based Search forMaterialApplicable releases:AllVersion: 3.0Date: 2026-03-27
Document HistoryDocument Version Description1.0 First official release of this guide (August 2016)2.0 Small corrections, layout update (February 2023)3.0 Layout update© 2026 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on https://www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 2 / 29
Table of Contents1. Business Scenario . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42. General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43. Comparison: Enterprise search and SAP HANA Search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44. Upgrade SAP HANA Search. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55. Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56. Step by Step Explanation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56.1. Save and Generate Delivered Search Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66.1.1. Provide the General Data Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66.1.2. Save Search View. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76.1.3. Generate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86.1.4. SAP HANA Studio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96.2. Create, Save and Generate new Search Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146.2.1. Model Extension with Attributes (Case A and B) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146.2.2. Model Extension with Reuse Entity (Case C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186.2.3. Model Extension with Flex Entity (Case D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256.3. Customizing for search attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266.4. Enhance UIBB MDG_BS_MAT_SEARCH_RESULT_LIST. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267. Additional Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277.1. Further Reading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277.1.1. Information on SAP MDG on SAP S/4HANA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277.1.2. SAP Roadmap Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277.1.3. Related Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277.2. SAP Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27© 2026 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on https://www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 3 / 29
1. Business ScenarioSAP Master Data Governance provides business processes to find, create, change, and mark master data fordeletion. It supports the governance of master data in a central hub and the distribution to connected operational and business intelligence systems.The processes are workflow-driven and can include several approval and revision phases, and the collaboration of all users participating in the master data maintenance.A users can search for materials that are stored in the active or in the staging area. The search criteria combinematerial attributes and classification. The search uses SAP HANA-Based Search, Enterprise Search or alternative search providers.As of MDG 7.0 it is also possible to use SAP HANA-Based Search as search provider. If you have extended thedata model MM and want to search with these new fields you have to extend the search.This guide provides background information about the SAP HANA-Based Search and describes how to configure it if you have extended the data model.2. General Information• SAP Online Help: https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/6d52de87aa0d4fb6a90924720a5b0549/e0de68cd46914e3797762c43cba621bd.html• Guide available on the MDG Community (https://www.sap.com/documents/2015/07/60c49158-5b7c-0010-82c7-eda71af511fa.html)3. Comparison: Enterprise search and SAP HANA Search© 2026 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on https://www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 4 / 29
4. Upgrade SAP HANA SearchWe recommend installing the highest available version of the SAP HANA database. If you use SAP HANA-Based Search for Material Master then you must run the report programMDG_HDB_MAT_MIGRATE_LONGTEXT to build the longtext for search after upgrade.With MDG on S/4HANA, if you use SAP HANA-Based Search for Material Master then you must run thereport program MDG_HDB_MAT_MIGRATE_LONGTEXT to build the longtext for search before you use theSAP HANA-Based Search.5. RestrictionsThere is a restriction in class CL_MDG_BS_MAT_HDB_SEARCH which does not allow to use an entity which hasno persistent table.The following is a list of entities that are read-only or cannot be selected for search. MLANSALES (Tax Classification for Sales) and MLANPURCH (Tax Classification for Purchasing), as theydo not have any persistent table, but rather use structures STEUMM and STEU MATCHGMNG (Material Change Management) DRADTXT (Document Link Test)6. Step by Step ExplanationThe following explanation shows you how to set up the SAP HANA-Based Search. Follow the SAP online helpto set up SAP HANA-Based search.SAP Online Help: https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/6d52de87aa0d4fb6a90924720a5b0549/e0de68cd46914e3797762c43cba621bd.htmlConfiguring SAP HANA-Based Search for MDG: https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/© 2026 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on https://www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 5 / 29