Вы находитесь на странице: 1из 12

9/4/2017 Validations & Derivation Rules on various CR Type & various CR Step | SAP Blogs

Products
Products Industries
Industries Support
Support Training
Training Community
Community Developer
Developer Partner
Partner

About
About


Home / Community / Blogs + Actions

Validations & Derivation Rules on various CR


Type & various CR Step
May 11, 2014 | 575 Views |

Nikhilesh Agarwal
more by this author

SAP Master Data Governance


brfplus;message | mdgm;data | ruleset | usmd rule | validation rule

share
0 share
0 tweet share
0

Follow

Path: MDGIMG ->General Settings -> Data Quality and Search -> Define
Validation and Derivation Rules .

https://blogs.sap.com/2014/05/11/validations-derivation-rule-s-on-various-cr-type-various-cr/ 1/12
9/4/2017 Validations & Derivation Rules on various CR Type & various CR Step | SAP Blogs

There is a Naming Convention for Trigger function nodes in the catalog


structure.

The naming convention for check trigger function nodes of a catalog structure
is
CHECK_<name of entity type>, for example, CHECK_MATERIAL

Step-1 : Create a Function with Name CHECK_MATERIAL: Add the Existing


Data Objects in signature like :

MATERIAL_MTART (For Material Type) ;

SAPFMDM_CREQUEST_STEP(For CR Step) ;

SAPFMDM_CREQUEST_TYPE (For CR Type) .

Case-1 Without CR Step :

Step-2 Create a Ruleset

Step-3 Create a Log Action Message :

https://blogs.sap.com/2014/05/11/validations-derivation-rule-s-on-various-cr-type-various-cr/ 2/12
9/4/2017 Validations & Derivation Rules on various CR Type & various CR Step | SAP Blogs

Step-4 : Create a Rule :

Insert CR type MAT01 ; Material Type FERT & Log Action .

Click on Ok , Save & Activate the ruleset and also Activate the Function
CHECK_MATERIAL .

Step-5 Create a Material for CR type MAT01: Enter the Material Number &
CR type : Click on Continue

Insert Material Type : ROH & Click on Check:

Warning Message is Reflect :

https://blogs.sap.com/2014/05/11/validations-derivation-rule-s-on-various-cr-type-various-cr/ 3/12
9/4/2017 Validations & Derivation Rules on various CR Type & various CR Step | SAP Blogs

Now Change the Material Type ROH -> FERT and click on check: Click on
Submit.

Now we are check Rule on Final Step -90:

First we change FERT -> ROH and then Click on Check :

https://blogs.sap.com/2014/05/11/validations-derivation-rule-s-on-various-cr-type-various-cr/ 4/12
9/4/2017 Validations & Derivation Rules on various CR Type & various CR Step | SAP Blogs

Change the Material Type and then Check the Status:

Case-2 With CR Step & Different CR Type :

Create a Rule for case-2 :

Insert CR type ZRMAT01 ;Material Type FERT ; CR Step Number 90 & Log
Action

Click on Ok , Save & Activate the ruleset and also Activate the Function
CHECK_MATERIAL .

https://blogs.sap.com/2014/05/11/validations-derivation-rule-s-on-various-cr-type-various-cr/ 5/12
9/4/2017 Validations & Derivation Rules on various CR Type & various CR Step | SAP Blogs

Step-6 Create a Material for CR type ZRMAT01:

Enter the Material Number & CR type : Click on Continue

Insert Material Type : ROH & Click on Check: No warning message is refelect
as no rule is define on step 00 .

Now we can see that at the processing STEP (means STEP-00) No Rule is
work : Click on Submit :

https://blogs.sap.com/2014/05/11/validations-derivation-rule-s-on-various-cr-type-various-cr/ 6/12
9/4/2017 Validations & Derivation Rules on various CR Type & various CR Step | SAP Blogs

CR goes to Final STEP-90 here we click on Check :

Now Change the Material Type ROH ->FERT :

These ways we can apply Validation Rules on Various CR type & Various CR
Step :

Derivation Rule :

The naming convention for check trigger function nodes of a catalog structure
is
DERIVE_<name of entity type>, for example, DERIVE_MATERIAL

Step-1 : Create a Function with Name DERIVE_MATERIAL: Add the Existing


Data Objects in signature like :

MATERIAL(Entity) ;
https://blogs.sap.com/2014/05/11/validations-derivation-rule-s-on-various-cr-type-various-cr/ 7/12
9/4/2017 Validations & Derivation Rules on various CR Type & various CR Step | SAP Blogs

SAPFMDM_CREQUEST_STEP(For CR Step) ;

SAPFMDM_CREQUEST_TYPE (For CR Type) .

Case-1 Without CR Step :

1a) Create a Ruleset :

1b): Create a Rule :

Insert CR type MAT01 ; Material Group 01 .

Click on Ok , Save & Activate the ruleset and also Activate the Function
DERIVE_MATERIAL

https://blogs.sap.com/2014/05/11/validations-derivation-rule-s-on-various-cr-type-various-cr/ 8/12
9/4/2017 Validations & Derivation Rules on various CR Type & various CR Step | SAP Blogs

1c) Create a Material for CR type MAT01 :

Here if you want to change Material Group 01 -> XX and click on check its
auto change to 01 .

Now we check the Final Step -90 :

https://blogs.sap.com/2014/05/11/validations-derivation-rule-s-on-various-cr-type-various-cr/ 9/12
9/4/2017 Validations & Derivation Rules on various CR Type & various CR Step | SAP Blogs

Case-2 With CR Step and different CR type :

2a): Create a Rule :

Insert CR type ZRMAT01 ; Material Group 01 ; CR Step 00.

2b) Create a Material for CR type ZRMAT01 :

https://blogs.sap.com/2014/05/11/validations-derivation-rule-s-on-various-cr-type-various-cr/ 10/12
9/4/2017 Validations & Derivation Rules on various CR Type & various CR Step | SAP Blogs

Check on Final Step 90 : We are able to change Material


Group 01 -> xx at the final step 90

Thanks

Nikhilesh Agarwal

Alert Moderator

https://blogs.sap.com/2014/05/11/validations-derivation-rule-s-on-various-cr-type-various-cr/ 11/12
9/4/2017 Validations & Derivation Rules on various CR Type & various CR Step | SAP Blogs

Be the first to leave a comment


You must be Logged on to comment or reply to a post.

Share & Follow


Privacy Terms of Use Legal Disclosure Copyright Trademark Sitemap Newsletter

https://blogs.sap.com/2014/05/11/validations-derivation-rule-s-on-various-cr-type-various-cr/ 12/12

Вам также может понравиться