cancel
Showing results for 
Search instead for 
Did you mean: 

Different vendor material group should not allow in one scheduled agreement

Former Member
0 Kudos

Hi All,

I have one requirement

In Info record (me11) we have a filed called as Vendor material group. Suppose i have 4 material and mat-1 is having vendor material group is 001

similarly mat-2 is 002, mat-3 is 003 and again mat-4 is 001. These things i have maintained in Info record.

When i create scheduled agreement in me31L system won't restrict me to create all the material.

But my client requirement is when i will put mat-1 in line item 10 and mat-2 in line item 20 my system won't allow me to create scheduling agmt because both the material is in different vendor material group. If i put mat-1 in line item 10 and mat-4 in line item 20 then my system will allow me to do the agmt.

What is it solution please help me out.

Thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

This message was moderated.

former_member187965
Active Contributor
0 Kudos

Hi,

Use user exit and put a validation as below,

As soon as user enters the first material code, pass this material code (MATNR) to EINA table and pick Vendor Mat. Grp (WGLIF). Now, you have the vendor mat grp value for first material. Repeat the process for next materials and compare the vendor mat grp value of these materials with first one, if it is same then allow the user to proceed and if it is different then put a error message.

Former Member
0 Kudos

Thanx Shailesh for your reply. Could you please elaborate in details means which user exit should i use and what would be my functional spec for this requirement. I am new into this system. Kindly help me out.

Thanks.