cancel
Showing results for 
Search instead for 
Did you mean: 

SAP QM Can't Cancel Good Receipt material QI stock

anitaarifin04
Participant
0 Kudos

Dear SAP Expert,

I have a case where :

1. I execute  GR material as QI stock through MIGO (Mvt 101) without inspection lot because inspection type has not been set in material master .
2. I add master data inspection type 01 in material master 
3. I canceled GR and there was error "Change the inspection stock of material (Material number) in QM only". Stock still in Quality Inspection and Invoice has been canceled.

Alternative solutions that have been tested :
1. Disable inspection type in master material and do MIGO cancellation.
The result = still appear error Change the inspection stock of material (Material) in QM only. Meanwhile inspection type 05 can't be disabled 

2. Implement SAP notes 48815 - Checking possible inconsistencies between MM and QM
The result = still appear error Change the inspection stock of material (Material) in QM only.

What is the best solution for this case?

Thanks before

Regards
Anita A.


<br>

Accepted Solutions (0)

Answers (3)

Answers (3)

JL23
Active Contributor
0 Kudos

I went into transaction SE91, entered the message QA142 and clicked Where-used and found just 1 program: LQPLSI01

Knowing German language would help too 😉

For deactivation SAP is basically checking whether the inspection type is referenced in a quality info record and if this is not the case then it checks if you have Q-stock. Which is the case as you said you posted your stock into quality while QM was not active.

The German comment then explains "if there is Q-stock it can be ASSUMED that inspection lots exists" and then the error QA142 is triggered.

Remains the question why SAP can ASSUME that inspection lot exists.

I scrolled a little up in the coding and saw the section for Activation, and here is a routine that checks if you have Q-stock while you try to activate quality inspection. And if you have (which should be your case) then SAP is automatically creating inspection lots for this quantity.

If that fails then you would also get QA142 and you could not activate the inspection type.

As you have activated it, i hope you did not do it with the help of the debugger or other ABAP tools, you should have those inspection lots.

Inspection lots are stored in table QALS. Use SE16N and check if you have records in that table for your material number.

Let us know what you found

anitaarifin04
Participant
0 Kudos

Hai Mr. Jurgen,

Thanks for help. I still wonder if there is inspection stock from Mvt 101 ( inspection type 001) but why I can't deactivated inspection type 005 ( I use inspection type 005 for Mvt 501 ) with error message QA142 ?

Thanks and regards

Anita A.

former_member42743
Active Contributor
0 Kudos

Delete the 01 inspection type in the material master. Process the stock to unrestricted stock.

Turn your 01 inspection type back on.

You shouldn't make and changes/additions to inspection types unless QI stock is totally empty. i.e zero. Also, any existing inspection lots must be fully processed, i.e. a UD and of course, all stock posted out of QI.

I'm a bit confused by your posting because I'm not sure exactly what you want the final state of your system to be. 01 active or inactive?

anitaarifin04
Participant
0 Kudos

Hi Mr.Craig,

I want to cancel Good Receipt for QI stock ( notes : Good receipt executed when QM inspection type 001 is not active) but I can't because QM inspection type active now.

I search in forum for the solution and I found that one of solution is Delete the 01 inspection type in the material master and cancel Good Receipt. But when I execute in system it still contains error because there is inspection type 005 which still active and it can't be disabled.

my final state is Cancel Good receipt and inspection type 001 active.

regards

Anita

former_member42743
Active Contributor

All stock relevant inspection types need to be deleted.

This includes, 01, 02, 04, 05, 06, 08, 09

And any other inspection types that control stock. On the QM main screen is an indicator called "inspection setup". You must get to the point that this is no longer set. This is controlled automatically when you have inspection types maintained. It is actually that flag the results in all the different error messages.

Until then, SAP will give you the error about inspection stock and inspection setups.

Craig

anitaarifin04
Participant
0 Kudos

Dear Mr.Craig,

I try to deleted all inspection type but there is an error " inspection stock is exist" for inspection type 005.

I also check inspection lot ( Tcode QA33) but there is no inspection lot was created for all origin.

I tried to transfer QI stock to unrestricted used stock with MIGO, there is error change the inspection stock of material (Material)in QM only.

What is the solution for this case?

Because I can't move that stock using MM/QM process.

Thanks and Best regards

Anita A.

former_member42743
Active Contributor

You have to post the 05 stock out of QI by the inspection lot that it created when it went into QI.

You can never use MIGO to transfer QI stock out of QI if any stock relevant inspection type is active.

Craig

anitaarifin04
Participant
0 Kudos

Dear Mr. Craig,

I check in QA33 and QVM2 for that material number but there is no outstanding inspection lot for all origin.

There is no inspection lot because QI stock posted by MIGO GR - QI stock.

So my problem can be categorized :

1. I want to cancel GR QI Stock but there is error "Change the inspection stock of material (Material number) in QM only" but there is no inspection lot.

2. I want to deactivate inspection type in inspection setup, so I can cancel GR but there is error " To deactive QM, the inspection stock for the material must be empty "

So what should I do?

Thanks and regards

Anita A.

former_member42743
Active Contributor

It's a chicken/egg thing huh?

Try this.

First, in the plant QM settings in QM config, on the Insp. Lot Creation tab, make sure the 0800 inspection type is in the field InspTypeForInspStock.

Then run QA08 and add inspection type 04 to the material. Use the "activate insp. type" tab. Make sure to click on "Activate despite insp. stock". I also always click on the change documents.

After this is done, the qty in insp. stock should now have an inspection lot of 0800. Process the lot, post the stock to unrestricted.

Now use MM02 and go into the material and under the inspection set up, delete ALL inspection types.

After doing so, on the QM main screen the field "Post to inspection stock" should now appear. Make sure this is NOT checked.

Now you can use MIGO to move the material back into QI.

Now use MBST to reverse your original posting. That should resolve the issue.

Now go back to the material master and add in any inspection types you want to use in your normal business.

anitaarifin04
Participant
0 Kudos

Dear Mr. Craig,

Thanks for help.

Actually it's not chicken/egg things. But it's about wall paint things.

I wanna ask from your statement " After this is done, the qty in insp. stock should now have an inspection lot of 0800. Process the lot, post the stock to unrestricted."

How can I post the stock to unrestricted used stock?With MIGO mvt 321/322? or with another way?

Thanks and best regards

Anita A.

former_member42743
Active Contributor
0 Kudos

By making a UD for the inspection lot in QA11. In QA11 go to the stock posting tab and enter the qty on the stock line you want it to go to. That is like really basic QM functionality. Do you not have anyone familiar with QM there?

anitaarifin04
Participant
0 Kudos

dear Mr.craig,

Thanks for help. Actually this case can be solved by SAP notes 48815- Checking possible inconsistencies between MM and QM. Today they implement that notes in production system and problem can be solved

thanks and regards

Anita

former_member42743
Active Contributor
0 Kudos

Yes, that's an old note. You should find numerous postinsg on it.

Sorry we didn't suggest that earlier. But the it wasn't clear from the discussion the real issue.

milton_gallegos
Active Participant
0 Kudos

Dear Anita

Could you tell us what funcion you used in the second step? MM02 or QA08?

Milton

anitaarifin04
Participant
0 Kudos

Hai Mr. Milton,

I use transaction code MM02 for add master data inspection type 001 in material master

Thanks and regards

Anita A.