Hi Esha,
Please can you go through one of my previous threads - https://scn.sap.com/thread/3688208. This threads speaks about differentiating the scope for MvT 322 with a custom copy MvT, Z22 and try to separate out both the processes to cater across specific scenarios. This will help you decide your To-Be solution process in light of the business process followed.
I am a bit confused with your statement "...Here issue is that inspection lot is not required on HALB material against stock uploaded only required against ROH material during stock uploaded.." Please can you suggest if you are speaking about MvT 561/563/565 for stock upload or you are speaking about materials issue returns via MvT 262? I guess you are talking about differential behavior required for MvT 262 for ROH and HALB. Please correct me if this is not true.
I believe putting MvT 262 in ONJJ (MM-configuration) as "QM not active" will solve your purpose, reason being for the same MvT 262 for ROH materials you need inspection lots to be created, but for the same MvT 262 for HALB material, it seems you do not need inspection lots created. If you make this change directly in OMJJ, it will be applicable at header level, which will not fix your issue.
You can try the below customized approaches (please read the attached thread on a similar case for different MvT..) and suggest if this is fixing your issue -
Approach - A (QM is Active now for MvT 262...)
a) In MB1A/MIGO find user exits which is called to post materials to inspection stocks.
b) When MvT 262 is called, please put a check in that exit to validate what is the material type.
c) If material Type is ROH, then perform as per OMJJ setup, and exit the "IF" loop.
d) If Material type in HALB, you can "SKIP" inspection lot creation at all for those materials.
e) With this approach, the existing config need not be changed in OMJJ.
Approach - B
a) If you ACTIVATE the check for "QM NOT ACTIVE" for MvT 262, then it is a global change.
b) Call the same MB1A/MIGO user exit to check and validate material types as ROH or HALB.
c) If it is ROH, then you need to override the standard SAP selection and make MvT 262 as "QM Active", so that inspection lot is created.
d) If the material is "HALB", the SKIP any further processing and exit the loop. Then this will not create inspection lots for HALB materials.
Please choose the better alternative amongst both and proceed accordingly.
Thanks,
Arijit
Message was edited by: Arijit Banerjee