Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member193063
Active Participant

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 :

Step-2 Create a Ruleset

Step-3 Create a Log Action Message :

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 :

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 :

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 .

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 :

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

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

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 :

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 :

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

Thanks

Nikhilesh Agarwal

Labels in this area