cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic Inspection plan assignment to Inspection lot

former_member196438
Participant
0 Kudos

Hi

I have multiple inspection plans valid for the same date, also I use ECN to upload the inspection plans. I know that system will not select the inspection plan automatically during the lot generation. But since the business have to maintain multiple inspection plans and also need to select the inspection plan automatically, we have planned to write a code to achieve this requirement.

We need to select inspection plan based on the revision level mentioned in the purchase order. For that revision level an ECN number will be assigned, for that ECN number an inspection plan will be maintained and this inspection plan can be assigned to the lot. I couldn't find an appropriate user exit to write this code and assign the inspection plan to the inspection lot. Kindly suggest me how to proceed with this.

Note: I can also maintain the vendor in materail assignment tab in inspection plan to make the inspection plan automatically to the inspection lot. But the business wants to achieve this through code.

Accepted Solutions (0)

Answers (1)

Answers (1)

anand_rao3
Active Contributor

It is obvious that if the multiple plans exits and they have the same usage then system does not understand which one should be assigned to the inspection lot and leaves the lot in CRTD status. It is then the user who has to manually assign the appropriate plan in the lot in QA02. The question here is why do you have the multiple inspection plans for the same material with same usage? Whether your inspection parameters vary lot to lot or PO to PO?


Below possibilities are very well possible in standard SAP. You need not develop a separate code if your case is one of below

  • If you want separate plans per vendor then you can assign the vendor in material assignment tab. The respective plan will automatically be assigned to that vendor
  • If you have revision levels for material, then you can create inspection plan per revision. And the respective plan gets assigned automatically to that material with that revision level.
  • You can try customizing new usage type. This would be situational call.

But if the situation is really challenging then you should explore exit QAAT0001  which is used to govern the conditions at the time of lot creation.

Anand