SAP MDG · COMMUNITY
How do I enable Rule Mining for classification data in SAP MDG?
Use an ABAP CDS view to flatten supported classification characteristics into normal attributes, add the CDS SQL view to the Product Process Model, join it to MARA by Material, generate the resultant artifacts, and then run Rule Mining. This documented approach applies to SAP Master Data Governance on SAP S/4HANA 1909 and newer.
Use an ABAP CDS view to flatten supported classification characteristics into normal attributes, add the CDS SQL view to the Product Process Model, join it to MARA by Material, generate the resultant artifacts, and then run Rule Mining. This documented approach applies to SAP Master Data Governance on SAP S/4HANA 1909 and newer.
Use this guide to enable MDG Rule Mining for master data combined with classification data. The solution uses Product as the example object, transforms classification data into a normal data source with an ABAP CDS view, and connects it to the Rule Mining data model. It applies to SAP Master Data Governance on SAP S/4HANA 1909 and newer.
Process flow
- Use the guide for Product master data with classification data.
- Create an ABAP CDS view in ADT/Eclipse in the customer Z namespace.
- Set @AbapCatalog.preserveKey: true.
- Model KSSK, KLAH, CABN, AUSP, and I_ClfnCharcValForKeyDateTP as needed.
- Expose classification characteristics as normal columns.
- Test the CDS view.
- Open MDCIMG and configure the Product Process Model.
- Add the CDS SQL view in Tables and select Process.
MDCIMGConfigure Process Models and Field Properties -> Configure Process Models
Add the CDS SQL view to the Product Process Model, synchronize fields, define joins, and enable Process/Active/Mining settings.
SE11N/A
Review the generated resultant artifacts after artifact generation.
Referenced tables
| Object | Purpose |
|---|---|
194 | Product Business Object used in the guide. |
MARA | Joined to the transformed CDS view using Material. |
KSSK | Classification assignment source. |
KLAH | Class information source. |
CABN | Characteristic definition source. |
AUSP | Characteristic value source. |
I_ClfnCharcValForKeyDateTP | Characteristic value descriptions. |
ILLUSTRATIVE ABAP SAMPLE
CDS annotation required by the guide
General guidance — verify the full CDS model and field mapping in your SAP release and classification design.
1@AbapCatalog.preserveKey: true
2The remaining configuration, implementation details, and testing guidance continue from this answer more…
Related questions and keywords
Alternative questions
- What is this guide about?
- How do I enable Rule Mining for classification data?
- Which SAP MDG releases support this approach?
Possible questions
- What does MDG Rule Mining do?
- Why can't classification data be mined directly?
- Why do I need a CDS view for classification?
- What is the complete process?
- Which classification characteristics can be used?
- Which development tool is required?