mdg ehp6 24a exercise dataquality

26
7/28/2019 MDG EHP6 24a Exercise DataQuality http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 1/26 1 DEEP DIVE DATA QUALITY MDG EHP6 Exercise 3.1 Exercises / Solutions Elke Menninger / SAP AG Last update 04-APR-2012 Exercise: Create BRF+ Rules for Check and Derivation At the end of this exercise you are able to: To create BRF+ Rules Assign the rules to functions Check, if rules are processed You are acting as a business user of the material department. You are now supposed to do the following because you like to check your material and to derive some defaults. All objects of this exercise are named with ## . Please replace this with your group number: ## = Group Number = 01 30 Parameters valid throughout the Exercise(Replace ## with your two-digit Team Number): Logon to the SAP System [….] Username : RERP39-## Password: initial In MDG you are able to work with the internet based Netweaver Business Client (NWBC) or via the enterprise portal

Upload: harsha

Post on 03-Apr-2018

226 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 1/26

1

DEEP DIVE – DATA QUALITY

MDG EHP6 – Exercise 3.1Exercises / SolutionsElke Menninger / SAP AGLast update 04-APR-2012

Exercise: Create BRF+ Rules for Check and Derivation

At the end of this exercise you are able to:

To create BRF+ Rules

Assign the rules to functions

Check, if rules are processed

You are acting as a business user of the material department. You are

now supposed to do the following because you like to check your material and to derive some defaults.

All objects of this exercise are named with ## . Please replace this withyour group number:

## = Group Number = 01 – 30

Parameters valid throughout the Exercise(Replace ## with your two-digitTeam Number):

Logon to the SAP System [….] Username : RERP39-## Password: initial

In MDG you are able to work with the internet based Netweaver Business Client (NWBC) or via the enterprise portal

Page 2: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 2/26

Page 3: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 3/26

3

4. Switch to the “Repository” view

Hint : you could have created the rule directly from the ruleset – but this would hinder by any incorrectrule the successful execution of the whole function. Therefore we create the rule first and assign it in a second stepto the existing ruleset

5. Create a new rule by right clicking on the node and navigating to the path Create Object Node -> Create Rule 6. Enter the name of the rule following the naming convention „ RERP39_XX_02_Rule_Derive_Mat ’ where XX

represents the team name. Chose name, short text and text. Click on “ Create ”. On the next window click on ‘OK’

7. Create a rule : „If the User is RERP39-XX (where XX represents the group name) and Industry type is initialthen set it to „M‟.

Step 1: Click on node No condition assigned. Assign Condition …in the Detail section on the right.Select from Use value range from/Default object /Current User and set it equal to your group-user.Step 2: Click on „Change Condition/Add more condition’ and change the operators by clicking <1> or <2> and change it to <1> and <2>Step 3: Click on the sign next to „…„ and select from Use value range from/Select Context Parameter .Choose MBRSH and set ‘is initial’ .

Step 4: Then: Click on „ Ad d’ and „ Assign Value to Context/Select Context Parameter’ . Choose MBRSH and set it to „ M’ Step 5: Save and activate the rule.

8. Now you have to assign your rule to the ruleset which is used in the Function „ DERIVE_MATERAL ’ . For thisnavigate in the catalog to „Trigger Function/Derivation / Derive_Material’ . Navigate to the „Assigned Rulesets‟tab and click on the assigned ruleset: „RS_Derive_Material_RERP39 ‘ . Click on ‘Insert Rule/Select’ and chooseyour rule. Save and activate the ruleset.

Exercise 3 Create Material and check rules

Create Material

1. Execute transaction ‘NWBC’ and click on ‘SAP_MDG M ’ Click on ‘Create Material’ Optional: You may be required this option below:

a. Assign the Data Model „ MM’ and UI configuration to the user master record by clicking on ‘ChangeModel’

b. Create a change request using the change request type „ MAT01’ 2. Enter basic data for the material. Check and Submit the change request.3. Check, if your derivation rules are executed.4. Click on ‘Check’. 5. Check, if your check rules are executed.

Page 4: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 4/26

4

Solution Exercise 1If you want to run this exercise on a sandbox / not within a class where the instructor already created the function andthe ruleset, please use the description in the appendix that you need to go through after step 3.

As you have seen in the demo by the instructor, the required function and the ruleset are already assigned to theCheck and Derive Material.Your group will create now a new rule which needs to be linked to the existing ruleset in order to test it in the context of MDG for Material.

Build Check1. Start transaction „SPRO‟ or „MDGIMG‟ 2. Go to the navigation path Cross-Application Components -> Processes and Tools for Enterprise Applications -

> Master Data Governance -> General Settings -> Data Quality and Search -> Define Validation and DerivationRules

Hint : Use the transaction USMD_RULE instead

3. Enter the Data Model as „ MM’ and click on „Start‟ and navigate to the FMDM_MODEL_MM node4. Switch to the “Repository” View

Hint : you could have created the rule directly from the ruleset – but this would hinder by anyincorrect rule the successful execution of the whole function. Therefore we create the rule first and assign it in asecond step to the existing ruleset

5. Create a new rule by right clicking on the node and navigating to the path Create Object Node -> Create Rule

Page 5: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 5/26

5

6. Enter the name of the rule following the naming convention „ RERP39_XX_01_Rule_Check_Mat ’ where XXrepresents the team name. Chose name, short text and text. Click on “ Create and Navigate to Object ”. On thenext window click on ‘OK’

7. Create a rule: „If the User is RERP39-XX (where XX represents the group name) and the field “ Labor atory” isnot filled (is initial) then raise a message, that the field is mandatory‟.

Step 1: Click on node ‘No condition assigned. Assign Condition …‟ in the Detail section on the right.Select from Use value range from/Default object /Current User and set it equal to your group-user.

Page 6: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 6/26

6

Step 2: Click on „ Change Condition/Add more condition’

Step 3: change the defaulted “or” condition to “and”:

Page 7: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 7/26

7

Step 4: Click on the sign next to <Not assigned> and select from Use Direct Value Range From / Select Context Parameter … Choose LABOR and set „is initial‟. (from the pop-up dropdown). Also addyour user ID to the current user field.

Page 8: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 8/26

8

Page 9: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 9/26

9

Step 5 : Then: Click on „ Add’ and ‘Perform action/Create’. Choose Type „ Log Message (Act) ‟. Chosename (Starting with RERP39_ XX), short text and text. Click on „ Create and navigate to the object’ . NOTE: You may be asked to save the Rule. Please save it and hit okay.NOTE: If you do not want to create your own message, you can also select the message created bythe instructor and add it to your rule.

Page 10: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 10/26

10

Step 6: Enter a text for the message, like: Please maintain labor. The Type should be a Warning.

Step 7: Save and activate the log message.

Page 11: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 11/26

11

Step 8: Go Back to the rule. Save and activate the rule. Verify that your rule is activated in therepository tree;

8. Now you have to assign your rule to the ruleset which is used in the Function „ CHECK_MATERIAL’ . For thisnavigate via the catalog to „ Trigger Function/CHECK_ENTITY /CHECK_MATERIAL’ . Navigate to the „AssignedRulesets ‟ tab and click on the assigned ruleset: „ RS_Check_Material_RERP39 ‘ . Click on ‘Insert Rule/Select’ and choose your rule. Save and activate the ruleset.

Page 12: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 12/26

12

Page 13: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 13/26

13

Page 14: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 14/26

14

Solution Exercise 2

1. Start transaction „SPRO‟ or „MDGIMG‟ 2. Go to the navigation path Cross-Application Components -> Processes and Tools for Enterprise Applications -

> Master Data Governance -> General Settings -> Data Quality and Search -> Define Validation and DerivationRules

Hint : Use the transaction USMD_RULE instead

3. Enter the Data Model as „ MM’ and click on „Start‟ and navigate to the FMDM_MODEL_MM node4. Switch to the “Repository” View

Hint : you could have created the rule directly from the ruleset – but this would hinder by anyincorrect rule the successful execution of the whole function. Therefore we create the rule first and assign it in a

second step to the existing ruleset

5. Create a new rule by right clicking on the node and navigating to the path Create Object Node -> Create Rule

Page 15: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 15/26

15

6. Enter the name of the rule following the naming convention „ RERP39 _XX_02_Rule_Derive_Mat‟ where XXrepresents the team name. Chose name, short text and text. Click on “ Create ”. On the next window click on„OK‟

7. Create a rule: „If the User is RERP39-XX (where XX represents the group name) and Industry type is initialthen set it to „M‟.

Step 1: Click on node No condition assigned. Assign Condition …in the Detail section on the right.Select from Use value range from/Default object /Current User and set it equal to your group-user.

Page 16: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 16/26

16

Step 2: Click on „ Change Condition/ Add more condition’ and change the operators by switching the

active template from “or” to “and”

Page 17: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 17/26

17

Step 3: Click on the icon next to “Not assigned” and select from Use Direct Value Range From / Select Context Parameter . Choose the element for Industry (MBRSH) and set ‘is initial’ .

Page 18: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 18/26

18

Step 4: Then: Click on „ Add’ and „ Assign Value to Context/Select Context Parameter’ . Choose MBRSH and set it to „ M’ . Don‟t forget to enter your User ID in the first part of the rule.

Page 19: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 19/26

19

Step 5: Save and activate the rule.

8. Now you have to assign your rule to the ruleset which is used in the Function „DERIVE_MATERAL‟ . For thisswitch to the catalog view. Open the „Trigger Function / Derivation / Derive Material ‟. Navigate to the „AssignedRulesets‟ tab and click on the assigned ruleset: „ RS_Derive_Material_RERP39 „. Click on „Insert Rule/Select‟and choose your rule. Save and activate the ruleset.

Page 20: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 20/26

20

Page 21: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 21/26

21

Now you can test your new rule.

Solution Exercise 3

Create Material1. Execute transaction ‘NWBC’ and click on ‘SAP_MDG M ’

Click on ‘Create Material’ Optional: You may be required this option below:

a. Assign the Data Model „ MM’ and UI configuration to the user master record by clicking on ‘ChangeModel’

b. Create a change request using the change request type „ MAT01’ 2. Enter basic data for the material. Check and Submit the change request.3. Check, if your derivation rules are executed.4. Click on ‘Check’. 5. Check, if your check rules are executed.

Page 22: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 22/26

22

Result of Exercise 1

Result of Exercise 2

Page 23: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 23/26

23

Page 24: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 24/26

24

Appendix – Instructor steps prior to exercise 1

1. Start transaction „SPRO‟ or „MDGIMG‟ 2. Goto the navigation path Cross-Application Components -> Processes and Tools for Enterprise Applications ->

Master Data Governance -> General Settings -> Data Quality and Search -> Define Validation and DerivationRules

3. Enter the Data Model as „ M M’ and click on „Start‟ and navigate to the FMDM_MODEL_MM node4. Via right-mouse- click (RMC) create a new function below the folder “Check Entity”

The function must have the name “CHECK_<entity>”, in this case CHECK_MATERIAL

Create it and navigate to the object.

Page 25: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 25/26

25

5. Add the signature to the new function – this is also the MATERIAL entity from MDG.Click on the “Signature” tab and add an existing data object Search for the material structure and add it

6. Switch to the “Assigned Ruleset” tab and create a new ruleset with the following information

Page 26: MDG EHP6 24a Exercise DataQuality

7/28/2019 MDG EHP6 24a Exercise DataQuality

http://slidepdf.com/reader/full/mdg-ehp6-24a-exercise-dataquality 26/26

Create and Navigate to the new ruleset.

7. Now you can continue with the solution of Exercise 1 and create a new rule by left clicking on the “Insert Rule”node and start creating your rule

You need to redo the creation of the function and the ruleset for the derive exercise as well:Create a function “DERIVE_MATERIAL” under the “Derivation” folder. Do not forget to bind the “MATERIAL”structure in the signature tab as well and create the ruleset. Then continue with Exercise 2.