Hello,
As Mallinath Suggested when you have such a case where one material code is having different valuation then best way of approach is use of Split valuation where in suppose for eg you are doing Split valuation based on batches each batch will carry its value ifyou are selling it or you are doing a stock transfer forone plant to another.
If in case you want to configure hope the below link helps you to configure Split valuation