Phanikumar,
"Your" post looks very similar (and in concept the same) to Ed Shortt's solution Apr 6, 2012!
The great master Ed has explain the solution elegantly with much much more depth and completeness.
Did you copy the solution from Ed's post?
Restricting a material for only one customer - Toolbox for IT Groups
Ed Shortt's post:
I read the comments about an enhancement with a customer table with the sold-to and the material and use a user exit…. But I challenged myself to do it with standard SAP without enhancements
And I am happy to share with you, that I was able to do so, and here I share the solution
1-Create an Item Category Group value ZEDS (Ed Shortt’s special Item Category Group for materials to be part of this restriction)
2-Create an Item Category Usage ZCUS (Ed Shortt’s special to control when the Usage is allowed)
3-Then, for the sales documents you want to allow this (e.g. “OR”), go into item category determination and setup document type OR with usage ZCUS and Item category Group ZEDS pointing to your item category (e.g.TAN)
e.g. OR ZCUS ZEDS TAN
4-then in the material master records that you want to restrict, go into the Sales Org: General/Plant Data view and assign ZEDS Item Category Group
5-Go into VD51 and create a CMIR (Customer Material info Record) for your sales org, the customer you want to allow to buy this material and the restricted material number …. and set the usage ZCUS in the CMIR and Save
From now on, for any customer that you want to allow to buy this material, just create a CMIR and setup usage ZCUS and that will be your approval to sell that material to that customer
If you want to create more materials restricted this way, just add the ZEDS item category Group in the material master and voila it is not possible to be entered on the OR unless you create the corresponding CMIR
If in the future, you want to graduate the material, to allow it to be sold to any customer, just change the item category group in the material master and flag for deletion the CMIR (or remove the usage) and now, it will be possible to sell it to everybody.
Any other customer that tries to but a material with the ZEDS item category group and they do not have the CMIR with the ZCUS usage, will get a "Item category determination not defined" message
As an alternative, you could map the item category determination ZEDS (Without the 'usage') to an item category that behaves like a text-item ....so no delivery or billing is allowed but it does not fail on inbound EDI for example, or allows you to record who tried to order it, but got the “No Confirmation” text item (Maybe incomplete because missing pricing).
You could also add a specific billing block "Z1-Not Allowed" to the text-item (item category) to easilly identify the sales doc items that tried to enter a material that is not allowed for that customer)
Obviouslly, if you have multiple item category requirements for your different material procurement types (TAN, TAS, TAB, TAD, etc.),
You will need as many ZEDS (Ed Shortt’s special item category groups like ZED1 = TAN, ZED2 = TAS, ZED3 = TAB, etc.) item category groups available to map each one to the corresponding and correct material to perform the correct item category determination
The person/goup doing the material setup, should know how we should procure (internally or externally, drop-ship or back-to-back, MTO vs. MTS, etc.) to enter the correct value during material master creation/extension in the cases of Restricted materials
All Standard SAP configuration .... no need for enhancement at all ....!!!!!!!! :-)
Hope it helps,
Ed.
Regards and good luck