cancel
Showing results for 
Search instead for 
Did you mean: 

Customer material Information records

Former Member
0 Kudos

I have a requirement that When creating a new Customer Material Information Record (CMIR -- VD51), it has  to give you a warning message if you try to set up the cross reference against a material  number that was Inactive (Obsolete, Not for sale, etc).Basically it should throw a Error/Warning Message to the user while creating Customer master information records for materials which are not for sale.

Need help on this requirement please .

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Dear Kumar,

Please use User Exit program MV45AFZB and at include FORM USEREXIT_CUST_MATERIAL_READ put the logic with the help of your ABAPER as if MARA-LVORM = 'X' then this means that Deletion Flag is set at Material and it'll show an error message if such material will be used. Rest i think ABAPER will be enough smart to cater it in a detailed way. Do update with your findings. Thanks and have a good day.

Former Member
0 Kudos

Thanks Ammarah..I ll update u soon on this development.

Shiva_Ram
Active Contributor
0 Kudos

I did not come across any user exit for VD51/VD52. Can you check with an ABAP'er on using Business Transaction Events (BTE's) mentioned in OSS Note 626931 - FAQ: Customer material info record

Regards,

former_member186385
Active Contributor
0 Kudos

Hi,

Check the Function Module RV_CUSTOMER_MATERIAL_READ ( if any enhancement point is available)

by comparing the field MARA- MSTAE

either you have to hard code the Required values in it or use some Z table to hold the values

If MARA-MSTAE = Obsolete or not for sale

throw error message

check with your ABAPer to develop the code as per the logic

regards,

santosh

former_member184080
Active Contributor
0 Kudos

Check this thread http://scn.sap.com/thread/2121751

Sai Krishna.

former_member184080
Active Contributor
0 Kudos

Check this thread http://scn.sap.com/thread/2121751

Sai Krishna.

Lakshmipathi
Active Contributor
0 Kudos

Try with the following exit

  • USEREXIT_CUST_MATERIAL_READ in program MV45AFZB

G. Lakshmipathi