14
Exercises Unit: MDM Data Modeling Basics Lesson: MDM Field types & Field Properties At the conclusion of this exercise, you will be able to: Add fields to an R/3 Material Master by using the appropriate field and table types The currently delivered Material master repository doesn’t contain all fields of the R/3 material master A company has the requirement to maintain also his QM-settings for a material (QM- View in R/3). When you have a look at the QM settings of the R/3 material master, you can see, that the QM settings are maintained in dependency of a plant and an inspection type. 1-1 Example 1 for above business case The material 60-100F requires for the plant Berlin Quality Inspections during production. A Quality Inspection during production for this material in this plant is defined the following: o 2 percent of the produced goods need to be inspected o There’s no 100% inspection required o The average duration of an inspection takes 1 day 1-2 Example 2 for above business case The material 100-300 requires for the plant Berlin Quality Inspections during Goods Receipt and Stability inspections. __________________________________________________________________________ _______________ © SAP AG MDM400 2 - 47

02 2 MDM Data Modeling Basics

Embed Size (px)

DESCRIPTION

MDM

Citation preview

Page 1: 02 2 MDM Data Modeling Basics

Exercises

Unit: MDM Data Modeling Basics

Lesson: MDM Field types & Field Properties

At the conclusion of this exercise, you will be able to:

Add fields to an R/3 Material Master by using the appropriate field and table types

The currently delivered Material master repository doesn’t contain all fields of the R/3 material master A company has the requirement to maintain also his QM-settings for a material (QM-View in R/3). When you have a look at the QM settings of the R/3 material master, you can see, that the QM settings are maintained in dependency of a plant and an inspection type.

1-1 Example 1 for above business case

The material 60-100F requires for the plant Berlin Quality Inspections during production. A Quality Inspection during production for this material in this plant is defined the following:

o 2 percent of the produced goods need to be inspected

o There’s no 100% inspection required

o The average duration of an inspection takes 1 day

1-2 Example 2 for above business case

The material 100-300 requires for the plant

Berlin Quality Inspections during Goods Receipt and Stability inspections.

A Goods Receipt Quality Inspection for this material in this plant is defined the following:

o 3 percent of the produced goods need to be inspected

o There’s no 100% inspection required

o The average duration of an inspection takes 5 days

A Stability Inspection for this material in this plant is defined the following:

o 1 percent of the produced goods need to be inspected

o A 100% inspection required

o The average duration of an inspection takes 4 days

_________________________________________________________________________________________© SAP AG MDM400 2 - 47

Page 2: 02 2 MDM Data Modeling Basics

plant Chicago Quality Inspections during production. An Inspection during production for this material in this plant is defined the following:

o 2 percent of the produced goods need to be inspected

o No 100% inspection required

o The average duration of an inspection takes 3 days

In a simplified XML-notation this would look like the following :

_________________________________________________________________________________________© SAP AG MDM400 2 - 48

Page 3: 02 2 MDM Data Modeling Basics

1-3 Enhance the material repository that way, that the QM settings for a material can be covered. The following sample data are provided.

MDM400MAT1_ProductsWithQM.xml => Sample XML-File of Inspection Data

MDM400MAT1_Start => Material-repository as starting point for your work

1-4 If there’s time left try to import the sample data via the Import Manager. Use provided XML-File for orientation and import.

Basics - Solutions

Unit: MDM Data Modeling Basics

Lesson: MDM Field Types & Properties

Purpose

At the conclusion of this exercise, you will be able to add fields to an R/3 Material Master by using the appropriate field and table types

Theoretical Explanation of the solution

As in the exercise desription explained the QM settings are maintained in dependency of a Plant and an Inspection type. This is the common principle for each material master. From an MDM point of view this would mean, that the material master needs to be enhanced by a Qualified lookup table. The fields Plant and Inspection type would be created as non-Qualifiers, the qualifiers would be “Inspection percentage”, “100% Inspection required” and “Average Duration”.

Prerequisites

MDM Server has been mounted and started.

Your repository MDM400MAT1_Start is unloaded.

1-1 Start SAP MDM Console

1-1-1 Start the SAP MDM Console.

1-1-2 Mount and select your server.

1-1-3 Select MDM400MAT1_Start repository and make sure that repository is unloaded.

1-1-4 Expand repository structure

_________________________________________________________________________________________© SAP AG MDM400 2 - 49

Page 4: 02 2 MDM Data Modeling Basics

_________________________________________________________________________________________© SAP AG MDM400 2 - 50

Page 5: 02 2 MDM Data Modeling Basics

1-2 Creation of Lookup Tables. The Lookup table Plants already exists in the repository, so we have to create only a lookup table for the Inspection types. Inspection Types are defined in R/3 customizing and via an extraction and import we theoretically could populate this table automatically

1-2-1 Create Lookup Table InspectionType.

Table Name Inspection Type

Type Flat

Key-mapping Yes

1-2-2 Rename field “Name” in the table to “Type”.

1-2-3 Create the following field in the table

Field Name or Data Type Values

Code – Text(6) Display Field=Yes, leave all other flags to the default values

1-3 Create Qualified Lookup Table. This table will be used to store all the QM relevant data for a material master.

1-3-1 Create Qualified Lookup Table QMSettings.

Table Name QMSettings

Type Qualified Flat

Key-mapping Yes

_________________________________________________________________________________________© SAP AG MDM400 2 - 51

Page 6: 02 2 MDM Data Modeling Basics

1-3-2 Add fields to the Qualified Lookup table.

Field Name or Data Type Values

Plant – Lookup(Flat) Display Field=Yes, Qualifier=No, Lookup Table=Plants

All other settings default

InspectionType – Lookup(Flat) Display Field=Yes, Qualifier=No, Lookup Table=InspectionType

All other settings default

Inspection_Percentage – Integer Display Field=Yes, Qualifier=Yes,

All other settings default

Ind_100Percent_Inspection – Boolean

Display Field=Yes, Qualifier=Yes,

All other settings default

Ave_Inspection_Duration – Integer

Display Field=Yes, Qualifier=Yes,

All other settings default

1-3-3 Create a qualified lookup field Name in the main table Products to link to qualified table QMSettings. Therefore select the Products table in the Console Hierarchy.

1-3-4 Add new field:

Field Name QMSetting

Type Lookup (Qualified Flat) (multi valued)

Lookup Table QMSettings

_________________________________________________________________________________________© SAP AG MDM400 2 - 52

Page 7: 02 2 MDM Data Modeling Basics

1-3-5 Shift+Enter to Save field

1-4 Load Repository and verify your work

1-4-1 Load the repository. Repository = MDM400MAT1_Start (or in case you had problems with the exercise load instead MDM400MAT1_Solution

1-4-2 Launch the MDM Data Manager:

Repository = MDM400MAT1_Start (or in case you had problems with the exercise load instead MDM400MAT1_Solution

User Admin

Password no password

1-4-3 Enter values in the different table types - At first in the lookup tables, Secondly in the main tables, Afterwards in the Qualified lookup tables

1-4-4 Check the search functionality for different QM Settings.

_________________________________________________________________________________________© SAP AG MDM400 2 - 53

Page 8: 02 2 MDM Data Modeling Basics

1-5 Optional: Import of test data into the system (by using your own repository – follow step 1-5-1; by using the provided repository MDM400MAT1_Solution, follow step 1-6).

1-5-1 This step is only documented for the repository MDM400MAT1_Solution, since only there predefined maps exist. If you would like to perform the Import with your own repository, you have to

1-5-2 Start the Import Manager and choose the following parameters:

Type of Data Data in Training System

Type XML

Remote system MDC R/3

Filename MDM400MAT1_ProductsWithQM.xml

User Admin

Pwd No password

1-5-3 Import the data for the InspectionType Lookup table

_________________________________________________________________________________________© SAP AG MDM400 2 - 54

Page 9: 02 2 MDM Data Modeling Basics

1-5-4 Import the data for the main table Products and the Qualified lookup table QMSetting. Perform the following mappings as seen in the screenshot.

1-6 If you would like to perform the Import with the repository MDM400MAT1_Solution, you have to 1-6-1 Load the repository in the Console

1-6-2 Start the Import Manager and choose the following parameters:

Type of Data Data in Training System

Type XML

Remote system MDC R/3

Filename MDM400MAT1_ProductsWithQM

User Admin

Pwd No password

1-6-3 Open the map InspectionTypes and populate first the lookup table InspectionTypes

1-6-4 Open the map Material+QMSettings and populate the main table and the qualified table for the QM Settings. It might be, that you’ve to perform additional value mappings and create a combined field for the QMSettings.

_________________________________________________________________________________________© SAP AG MDM400 2 - 55