cancel
Showing results for 
Search instead for 
Did you mean: 

Stock inconsistency between MM and QM with No inspection stock but inspection lot status is SPRQ

0 Kudos

Hi,

I have an issue for an inspection lot, Its current status is UD ICCO SPRQ PRII STUP. GR material document cancellation has been carried out with movement type 102 and stock is reversed but inspection lot is not cancelled. Now we want to close this inspection lot. how it can be possible?

When we go to post the stock by QA12, Error is :Message No. M7021 KL quality inspection at 283.700,00 ST fallen short of: A7E10055436000 8100 0001 K

It was vendor consignment stock.

Is there any report or SNOTE which can be helpful to close this inspection lot?

Best Regards,

Parveen Verma

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Dear All,

This problem has resolved by writing Code for enhancement QEVA0008 and implemented in Include ZXQEVU10.

Information on the effect of the user exit: It enables us to reset the usage decision in transactions QA12 ("Change usage decision with history") and QA14 ("Change usage decision without history"). The function is executed when you choose the "Customer function" pushbutton in these transactions.

Here is some code reference included in ZXQEVU10:

DATA: v_tcode like sy-tcode.

SELECT SINGLE TCODE FROM /SIE/SSA_QM_T001

INTO v_tcode

WHERE TCODE EQ SY-TCODE AND

PLANT EQ I_QALS-WERK.

if SY-SUBRC EQ '0'.

CALL FUNCTION 'QAST_PROCESS_ACTIVITY'.

EXPORT

I_DIALOG = 'X

I_OBJNR = I_QALS-OBJNR

I_PROCESS = 'SQM68'

EXCEPTIONS

NOT_ALLOWED = 1

ACTIVITY_NOT_ALLOWED = 2 OTHERS = 3.

E_EXIT_ACTIVE = 'X'.

ENDIF.

Best Regards,

Parveen

Answers (3)

Answers (3)

former_member42743
Active Contributor
0 Kudos

When you say you did the reversal, what transaction did you use? If you used MIGO to simply remove the inventory, that won't work.

To get lots to cancel you should use MBST while referencing the original material document that created the inspection lot. Once you use MBST you can then go to QA02 for the inspection lot and select from the menu select Inspection lot-->Functions-->Cancel Lot.

The reversal doesn't automatically do the cancellation.

If you used MIGO to get rid of the inventory, run MBST on THAT material doc to bring back the inventory. Then run MBST again for the material document that created the inspection lot. Then cancel the lot.

Craig

JL23
Active Contributor

MIGO is the successor of MBST, in MIGO you would simple select the action "Cancellation" and the reference "material document" and have the exact some result. Another way in MIGO should not be possible because of the famous QA495 message.

former_member42743
Active Contributor

It depends on the stock. If the stock is allowed to be used "at risk" and is not posted to QI, the stock can be moved, deleted, etc..

The stock posting is still required in the inspection lot but if the material is not there you HAVE to post the stock to unrestricted. If the stock is still there, the insp. lot can grab it and post it to blocked stock or wherever.

So it can depend on where the stock was.

Yes. I keep forgetting you do the MBST in MIGO now. (still old school). But if he didn't reference the material number and the stock was in unrestricted and not QI he can post it of without reference to the original material doc.

JL23
Active Contributor
0 Kudos

There is an OSS note describing a similar situation and this has a fix to prevent that it happens again:

2138259 - Material document cancelation does not reduce inspection lot quantity

but there is not anything mentioned how to clear the inconsistency and to close the inspection lot. Maybe you have to open a call at SAP support,

former_member2091
Participant
0 Kudos

Hi,

Please check SAP NOTE 2186161