cancel
Showing results for 
Search instead for 
Did you mean: 

Restriction of Inspection lot during delivery

Former Member
0 Kudos

Hi All,

Is it possible to use exit QAAT0001 to control inspection lot during delivery.

Requirement is to create inspection lot during delivery for material say "X" if it is at storage "ABC". But if the same material "X" is at storage location "DEF", it should not create Inspection lot.

Kindly suggest there are any other ways to do this.

Thnaks in advance.

Regards,

Satyajit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

User exit QAAT001 is used to control inspection type. for example you can assign inspection type Z1 instead of 01 based on some conditions.

Note : if you try to prevent inspection lot creation, you will have problem moving quantity from Q to un-restricted ( as SAP needs inspection lot number to move quantity out of Q status)

For your requirements try these steps

1. Activate user exit QAAT001 to change inspection type to Z1 if storage location is DEF. Inspection type will be 01 when storage location is ABC.

2. Set inspection type Z1 such that, quantity is posted to un-restricted directly.

3. Activate inspection types z1 and 01 for the material.

4. Set background program to auto UD inspection lots (z1 type).

Let me know if process does not work for you.

Former Member
0 Kudos

Hi all,

Thanks for the response and sorry for the late reply from me.

This control we only want it at the time of delivery. I mean when we create delivery, inspection lot is created. Here the stock is already at unrestricted. But, if we do not do UD for the lot, we will not be able to do PGI.

At present we have written code for this exit, like the given below...

e_tq32 = i_tq32.

  • restriction for delivery inspection.

IF i_werks = '7110' AND

i_lgort = 'SLDD' AND

i_tq32-art = '1000'.

e_no_inspection = 'X'.

ENDIF.

Bu it is still not working. It is creating inspection lot for both the storage location

Regards,

Satyajit

Answers (4)

Answers (4)

Former Member
0 Kudos

thnx

former_member207800
Active Contributor
0 Kudos

First of all it was my misunderstanding about 'EXIT_SAPLQAAT_002'.

I checked it but it does not work for inspection origin '10'.

It seems only work for specific inspection type (01, 05, 08) related goods movement.

I hope you can find good solution.

Regards

Luke

Former Member
0 Kudos

Yes, Kim. I have also tested it and i found this exit is not working for inspection type 10.

Will post once i get nay solution

Rgd,

Satyajit

former_member207800
Active Contributor
0 Kudos

Yes, it is possible using the function module 'EXIT_SAPLQAAT_002' of QAAT0001

E_TQ32 = I_TQ32.

Then use I_TQ32-ART (inspection type), I_LGORT (storage location), E_NO_INSPECTION (create lot or not).

Regards

Luke

Former Member
0 Kudos

As I understand this user exit is "Inspection type determination different from variant 01 " which will not help for the control on Inspection & stock type.