SAP How-To-Guide: How to enable rule mining for master data including classification data

This document describes how you could enable the rule mining for your master data combining classification data by using Product data as an example. Download the Document

PUBLICHow to Enable Master Data Rule Mining withClassification DataApplicable Releases:From SAP Master Data Governance on SAP S/4HANA 1909 and newerVersion 1.1September 2024
© 2024 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 2 / 18Document HistoryDocumentVersion Description1.0 First official release of this guide1.1 Format update
© 2024 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 3 / 18Table of contents1. Introduction ......................................................................................................................................................... 42. Business Scenario ................................................................................ Error! Bookmark not defined.3. Implementation.................................................................................................................................................. 43.1. Build a CDS View to transform Classification Data ...................................................................................................... 43.1.1. Supported Characteristics .................................................................................................................................................................................... 43.1.2. Create CDS View........................................................................................................................................................................................................... 53.1.3. Test CDS View................................................................................................................................................................................................................. 73.2. Extend Data Model with Classification Data .................................................................................................................... 73.2.1. Data Model Extension .............................................................................................................................................................................................. 73.2.2. Generate Artifacts..................................................................................................................................................................................................... 103.2.3. Specify Table and Field Properties ............................................................................................................................................................ 114. Process Test ...................................................................................................................................................... 134.1. Preparation ........................................................................................................................................................................................... 134.2. Rule Mining ........................................................................................................................................................................................... 134.3. Data Quality Evaluation (optional) ....................................................................................................................................... 164.3.1. Data Quality Rule Setup ...................................................................................................................................................................................... 164.3.2. Data Quality Evaluation ........................................................................................................................................................................................ 18
© 2024 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 4 / 181. IntroductionData Quality Management with SAP Master Data Governance achieves the best quality for master data incustomer’s SAP S/4HANA system(s) and their entire enterprise application landscape by extending andintegrating with all MDG-related processes, in the most efficient way, at the lowest possible implementationefforts and TCO, by following an extensible packaged-application approach.MDG Rule Mining supports the business / master data expert to analyze existing master data and proposethe found patterns as rules by leveraging machine learning technology.Classification data is essential for companies to manage their flexible data structure in important master datae.g. product. This document describes how you could enable the rule mining for your master data combiningclassification data by using “product” as example.Classification data is not included in the SAP standard delivery in rule mining for products and businesspartners. This is because of the generic data structure in classification. This document explains how theclassification data can be transformed to function as a normal data source and combined with master data(For example, Product) to apply to rule mining.2. ImplementationThis chapter explains all necessary technical steps to implement the solution.2.1. Build a CDS View to transform Classification DataTo be able to use rule mining in a Master Data model, it is necessary to transform the generic classificationdata to an understandable data source such as a normal table, here we choose an ABAP CDS view which isstandard and easiest for modelling in our environment.2.1.1. Supported CharacteristicsBecause characteristics must be transformed into normal attributes for master data, only Single Value andCharacter Format is supported. This screenshot shows an example a product classification with 3characteristics with Single Values.
© 2024 SAP SE or an SAP affiliate company. All rights reserved. See Legal Notice on www.sap.com/legal-notice for use terms, disclaimers, disclosures, or restrictions related to this material. 5 / 182.1.2. Create CDS ViewYou need to use the ABAP Development tool in Eclipse to create a CDS view in your system, be aware thatyou need developer authorization in your system to create it in the “Z” namespace.Annotation @AbapCatalog.preserveKey must be set to True.Here is an example of a CDS view which you could copy and use for your own classification transformation.@AbapCatalog.sqlViewName: 'ZMATCLS01'@AbapCatalog.compiler.compareFilter: true@AbapCatalog.preserveKey: true@AccessControl.authorizationCheck: #CHECK@EndUserText.label: 'Classficaiton Data as extension of MARA'define view ZKF_PROD_CLS01as select distinctkey klah.class as Class ,key cast( RTRIM( SUBSTRING( CLASS.objek , 1 , 40 ) , ' ' ) as matnr ) as Material ,@EndUserText.label: 'Additional Seat on back'cast ( AUSP0001.atwrt as zseat2 ) as ZSEAT2 ,@EndUserText.label: 'Additional Seat on back description'VALD0001._CharcValueDesc( P_KeyDate: $session.system_date )[1:Language = 'E' ].CharcValueDescription asZSEAT2_Desc ,@EndUserText.label: 'Material of framewokr'