Skip to Content

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

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 :

2014-05-10 18_28_10-BRFplus_ Catalog Browser.png

Step-2 Create a Ruleset

2014-05-10 18_36_12-BRFplus_ Catalog Browser.png

Step-3 Create a Log Action Message :

2014-05-10 18_43_51-BRFplus_ Catalog Browser.png

Step-4 : Create a Rule :

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

2014-05-10 20_32_13-BRFplus_ Catalog Browser.png

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

2014-05-10 19_21_04-Material_ New, TEST-CR-STEP-00.png

Insert Material Type : ROH & Click on Check:

/wp-content/uploads/2014/05/sshot_1dd_450104.png

Warning Message is Reflect :

2014-05-10 19_24_48-Material_ New TEST-CR-STEP-00.png

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

2014-05-10 19_25_56-Material_ New TEST-CR-STEP-00.png

Now we are check Rule on Final Step -90:

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

2014-05-10 19_33_35-Material_ New TEST-CR-STEP-00.png

Change the Material Type and then Check the Status:

2014-05-10 19_28_22-Material_ New TEST-CR-STEP-00.png

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

2014-05-10 19_17_52-BRFplus_ Catalog Browser.png

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

2014-05-10 20_34_23-BRFplus_ Catalog Browser.png

Step-6 Create a Material for CR type – ZRMAT01: 

Enter the Material Number & CR type : Click on Continue

2014-05-10 19_35_50-Material_ New.png

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

2014-05-10 19_44_10-Material_ New TEST-CR-STEP-90.png

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

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

2014-05-10 19_45_04-Material_ New TEST-CR-STEP-90.png

Now Change the Material Type ROH ->FERT :

2014-05-10 19_46_03-Material_ New TEST-CR-STEP-90.png

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) ;

SAPFMDM_CREQUEST_STEP(For CR Step) ;

SAPFMDM_CREQUEST_TYPE (For CR Type) .

2014-05-11 09_52_12-BRFplus_ Catalog Browser.png

Case-1 Without CR Step :

1a) Create a Ruleset :

2014-05-11 11_07_03-sshot-8 - Windows Photo Viewer.png

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

2014-05-11 10_00_24-BRFplus_ Catalog Browser.png

1c) Create a Material for CR type MAT01 :

2014-05-11 10_07_12-Material_ New.png

2014-05-11 10_55_06-Material_ New DER. RULE MAT01.png

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 :

2014-05-11 10_57_54-Material_ New Detsdd.png

Case-2 With CR Step and different CR type :

2a): Create a Rule :

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

2014-05-11 10_03_45-BRFplus_ Catalog Browser.png

2b) Create a Material for CR type ZRMAT01 :

2014-05-11 10_15_19-Material_ New.png

2014-05-11 10_50_16-Material_ New DER. RULE ZRMAT01.png

Check on Final Step – 90 : We are able to change Material Group 01 -> xx at the final step 90

2014-05-11 10_51_56-Material_ New Test-Rule-Derive.png

Thanks

Nikhilesh Agarwal

To report this post you need to login first.

Be the first to leave a comment

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

Leave a Reply