SAP MDG · COMMUNITY
How do I enable SAP HANA-based search for an SAP MDG reuse model?
To enable SAP HANA-based search for an SAP MDG reuse model, generate and configure the HANA search view, implement interface IF_USMD_PP_HANA_SEARCH in the reuse access class, maintain reuse metadata in SM34 via VC_HDB_PP_FMAP, and ensure the six required methods are implemented so active and inactive master data can be searched.
To enable SAP HANA-based search for an SAP MDG reuse model, generate and configure the HANA search view, implement interface IF_USMD_PP_HANA_SEARCH in the reuse access class, maintain reuse metadata in SM34 via VC_HDB_PP_FMAP, and ensure the six required methods are implemented so active and inactive master data can be searched.
SAP HANA-based search for an SAP MDG reuse model is enabled by a combination of HANA search view generation, access-class interface implementation, and metadata maintenance. The guide says the access class should implement IF_USMD_PP_HANA_SEARCH, with the Business Partner access class CL_MDG_BS_BP_ACCESS_MASTER given as the reference example.
Process flow
- Generate a HANA search view.
- Configure the HANA search view for HANA database search.
- Ensure the reuse access class implements IF_USMD_PP_HANA_SEARCH.
- Implement ADAPT_SEL_FIELDS, GET_REUSE_VIEW_CONTENT, MERGE_REUSE_AUTHORIZATION, GET_MAPPING_INFO, ADAPT_WHERE_CLAUSE, and ADAPT_RESULT_SET.
- Run SM34 and open VC_HDB_PP_FMAP.
- Maintain Join Attributes.
- Maintain Join Fields.
- Verify MDGHDB_PP_FMAP, MDGHDB_PP_FJOIN, and MDGHDB_PP_TJOIN contain the metadata.
SM34View Cluster Maintenance → VC_HDB_PP_FMAP
Maintain reuse-area field mapping and join metadata for HANA-based search.
SM34VC_HDB_PP_FMAP → Join Attributes
Maintain table-level join details such as left table, right table, cardinality, join operator, and join type.
SM34VC_HDB_PP_FMAP → Join Fields
Maintain the field-level join relationships for the selected Join Attributes row.
Referenced tables
| Object | Purpose |
|---|---|
MDGHDB_PP_FMAP | Stores field mapping metadata, including MDG data-model field names, reuse-area field names, data element names, and deviating field names. |
MDGHDB_PP_FJOIN | Stores field-level join and mapping information. |
MDGHDB_PP_TJOIN | Stores table-level join information. |
The remaining configuration, implementation details, and testing guidance continue from this answer more…
Related questions and keywords
Alternative questions
- How do I enable HANA search for a reuse model in SAP MDG?
- How can HANA search retrieve active and inactive data?
- What is required to implement HANA-based search for reuse data?
Possible questions
- What are the steps to implement HANA search?
- Which interface must the reuse access class implement?
- What are ADAPT_SEL_FIELDS and GET_MAPPING_INFO used for?
- Where do I maintain reuse search metadata?
- Which tables store the HANA reuse mapping and join data?