cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic inspection lot issue

Former Member
0 Kudos

Hi experts,

We are a very discreet manufacturing company with very configurable products. Currently, we have QM configure to inspection type 03 (inspection during production) to automatically create an inspection lot when production order is release. The materials that need inspection are ticked for insp.setup in Material master QM view. We've created Master inspection characteristics (MIC) and assigned them to master routing operations. Because the fact that our materials are configurable (say material A may get a component B that requires inspection, and the same material A sometimes may not get component B ) we use dependencies on our master routing to determine if an inspection operation should be pulled to the order.

The issue we are having is that for materials that are ticked in MM view for inspection, sometimes based on dependency doesn't require inspection and does not require inspection lot, but sometimes it does require inspection based on the dependence set on the routing. How do we set up the system so that when a material that is ticked to get inspection lot in MM, but do not require inspection based on object dependencies not get an inspection lot automatically assigned.

Any suggestion will help.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

anand_rao3
Active Contributor
0 Kudos

I do not have much idea bout the configurable material but I think there should not be any option apart from manually deactivating the inspection type in material master before you release the order. System on its own can not come to know when to create the lot and when it shouldn't.

Let's wait for the experts to have more thoughts on this!

Anand

Former Member
0 Kudos

If you deactivate inspection on material master, the material no longer meet auto inspection lot generation. Which is not what we want because if a order with Material A and component B comes thru, it will not generate inspection lot for inspection to be done.

anand_rao3
Active Contributor
0 Kudos

Yes you are right and I also said the same thing. It would be a manual control. System on its own can not come to know when to generate an inspection lot and when it shouldn't! So whenever you are using component B in the order make sure that you have activated 03 in A. And whenever you are using any component other than B, make sure that you deactivate inspection type 03 in A. Manual work is often tedious and perhaps this option may not be suitable to you.

Explore if the exit QAAT001  along with its sub-components allow you to set your own logic on the basis of components used in an order.  You can suppress the inspection lot generation. Of course you need to maintain somewhere in Z table that on which occasions you want the lot should't be generated. To be explored with ABAP for feasibility.

One question -

Whether it is the child component that decides the quality of finished goods? I mean you seem to be sure that when A is manufactured with B you need inspection and when you manufacture A with C you don't want inspection (being C as a good quality product)? Don't you consider other operational parameters? You have also mentioned below part


Because again based on dependencies (whether material A has component B or not), the inspection operation and MIC on the master routing will not get pulled to the order. therefore inspection will never get done for those orders

It means your complete set up (including routing operations) changes when you replace C with B? Should't then a new material code be created instead of operating A? I guess Nitin has also the same query! As I said I have't worked on configuration materials earlier, I want to understand how this process works!

Anand

anand_rao3
Active Contributor
0 Kudos

The point that just strikes to my mind -  Do you have separate routing for A for such instances? If yes then possibly we have an alternative.

  1. You can use Dynamic Modification Rule in the routing to skip the inspection lot. Give some bigger interval for number of SKIPs so that the maximum lots would be created with status SKIP
  2. And using QA16 you can give mass UD to such lots.

So when the routing X is chosen at the time of order creation (instance - when you are using B) it would create a normal inspection lot and you need to inspect but when the routing Y is chosen at the time of order creation (instance - when you are using C) then also it would create a lot but with SKIP status and you need not inspect it.

Anand

Former Member
0 Kudos

Anand,


We do not have separate routing for A. Also, manually triggering on and off the inspection type, will not work for us as i mentioned we have hundreds of these orders per day. So I will explore the Exit suggestion that you mentioned and get back to you.


Thank you for your reply.


Rocky

Former Member
0 Kudos

Hi Anand,

I just want to get back to this post on our solution. We decided to activate exit QAAT001 --> Component EXIT_SAPLQAAT_002.

Thank you for your help!

Rocky

anand_rao3
Active Contributor
0 Kudos

Thanks for updating! Glad to know that this is acceptable!

Regards,

Anand

Former Member
0 Kudos

Hi Rocky,

Just saw your post, i know this is very old but we are also trying to activate QAAT0001 for our requirement but somehow this not working for us.

We are trying to restrict lot creation for lot origin 01 based on some some condition. but when we do MIGO system throws error (Change the inspection stock of material in QM only)


Also after implementing this exit inspection lot with origin are getting created at all (no error message) not sure why it is affecting 03 lot.


can you please help in this.


Thanks in advance for your help!

Former Member
0 Kudos

We are trying to restrict lot creation for lot origin 01 based on some some condition. but when we do MIGO system throws error (Change the inspection stock of material in QM only)

Activating this exit may cause inconsistency between MM and QM. Execute the report ZQEVAC20 contained in note 48815 to repair any inconsistencies which may exist. Also SAP notes 86638 and 212238 will help you as well.



Also after implementing this exit inspection lot with origin are getting created at all (no error message) not sure why it is affecting 03 lot.


This exit loops thru all the inspection origins that are active. Did you check to make sure inspection lot creation is only restricted to lot origin 01?

Example :

IF i_tq32-herkunft = '01'.

  add your condition X here..

  If X = 'True

     e_no_inspection = 'X'.

  endif.

ENDIF.

Former Member
0 Kudos

Thanks for your reply!

our scenario is working fine now for inspection lot origin 01. but inspection with origin 03 are not being created at the time of order release and yes we have put the condition IF i_tq32-herkunft = '01'. in the beginning  itself.

Not able to figure out whats wrong with in- process inspection lot.

Former Member
0 Kudos

Did you activate function module EXIT_SAPLQPL1_005 -->  ZXQAAU02? If not, you need to activate it and put code below in the include.

e_tq32 = i_tq32.

Let me know if this work for you or if you already did it. Thanks.

Former Member
0 Kudos

We have activated and written our logic and code in FM "EXIT_SAPLQAAT_002--> ZXQAAU01 " not in EXIT_SAPLQPL1_005--> ZXQAAU02.

is it necessary to add mentioned code in it??

Answers (1)

Answers (1)

nitin_jinagal
Active Contributor
0 Kudos

It'll probably be tricky to find a logic to block or create inspection lot for such process. I worked on one such process long ago where inspection lots were blocked on the basis of W/c for the common material.

What I understand that A, as a finished good, will need an inspection on the basis of BoM component. If it is B, you need an inspection lot for A. When it is something else, you don't want to generate inspection lots for A, Correct?

Please share what is the ultimate need? As final inspection on the basis of BoM component is bit tricky and it gets even more complicated when your finished product is same. How do you differentiate between two finished products (Two A's) whether they are produced from B or non-B?

NJ

Former Member
0 Kudos

Nitin Jinagal

You are correct on the second paragraph. Material A (as a finished good) will need an inspection on the basis of BoM component B. If B exist as component for A, I need an inspection lot created for A. When A doesn't contain component B or contain something else I don't want to generate inspection lot for A. Because again based on dependencies (whether material A has component B or not), the inspection operation and MIC on the master routing will not get pulled to the order. therefore inspection will never get done for those orders.

The goal is to change system so it doesn't create inspection lot for those orders with Material A that doesn't contain component B. Production will never do inspection for those orders. When an inspection lot is created, the order is set an ILAS system status. Our need is to be able to close all TECO production order in a timely manner because we are on actual costing and it affects our P&L at month end. We cannot close an order without first setting the Usage Decision on the inspection lot. There are a lot of orders that fall in this scenario where an inspection lot is automatically created but really does not need an inspection at all.

Thank you for your reply, any suggestion will help.

Regard

RV