cancel
Showing results for 
Search instead for 
Did you mean: 

User Exit for placing validation between Customer Group & Material Group

Former Member
0 Kudos

Hi,

Following is my client requirement.

1. A validation check is to be placed in Sales Order of Document Type ZTRD.

Validation to be placed between Customer Group 3 (CG3)   of Sold to party with Material Group( MG ) of Material.

If CG3 of Sold to party is different with MG , then system should through Error message & should not allow to save the Sales Order.

Please suggest me what best to be done. I am a SD consultant.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks a lot.

0 Kudos

A standard way to do this is to use product attributes.In material master you can define product attributes in the sales org 2 view. Next, within the customer master, you can define the product attributes a customer would accept. Finally, in the order type configuration, you can define that if the attributes don't match, the system should display an error message (or a warning message). So, you can do the check you are looking for without doing any ABAP work. See if that could work for you.

Former Member
0 Kudos

Try User exit MV45AFZB, Form Routine USEREXIT_CHECK_VBAK