This website is not affiliated with, sponsored by, or approved by SAP AG.

Keeping the inspection active for 04 inspection type

Logistics QM

Moderators: thx4allthefish, Snowy, Ha Tran

Keeping the inspection active for 04 inspection type

Postby Bertha » Thu Aug 16, 2012 5:37 am

Hello,

I have the following requirement and wonder if anyone have had it before:

Settings: inspection type 04, control inspection lot: 2:for each material/batch and storage location (lot summary).

For the inspection lot created at goods receipt from the process order, if a new goods receipt is posted for the same material/batch and storage location combination:
a) if stock for the inspection lot was completely credited without UD posting, then a new inspection lot created for the new goods receipt
b) if a positive UD was posted and stock is completely credited, then new stock is posted as unrestricted-use
c) if a negative UD was posted and stock is completely credited, then a new inspection lot is created for the new goods receipt (or posted to blocked if oss note 165508 has been applied)

requeriment: to keep the inspection active, (keep status SPRQ-quantity posting required) so any new goods receipt will be posted into the same inspection lot while the process order is not closed.

1. can I change the message "Inspection is still active. Remaining sample quantity is equal to &1 &2" into an error message so the user will not discharge completely the inspection lot? (there is already a job scheduled which discards the sampled quantity when the process orders are closed)
or
2. can I manipulate system status SPCO-stock posting completed into SPRQ-quantity posting required with or without having posted a UD?

(since this is an already live system no big changes in the way they currently use the system can be put in place)

Bertha
Bertha
 
Posts: 29
Joined: Wed Apr 05, 2006 4:00 am
Location: Spain

Re: Keeping the inspection active for 04 inspection type

Postby Craig » Thu Aug 16, 2012 7:16 am

The only way I can see you maybe meeting this requirement is as follows.

I'm not sure how your batch job for posting works. I don't know if that is doing it via the inspection lot or via the deducting it directly from stock when the process order is closed.

So what I would suggest is to make the batch job use the inspection lot for this process.

That way, you can use the UD check user exit to check the lot quantities. If new lot quantity < sample qty calculated for the lot, block the saving of the UD.

Program the exit that if the user is "BATCH" (or whatever account your running your batch job by), to ignore the check.

This way, only the batch job can do the final stock posting of the sample.

What I don't like about that is that there is no way to "adjust" the sample qty if you take more or less sample than required. So I would setup a second stock posting line that is identical to the normal sample stock posting line, and if used, the user exit triggers a warning message that the "stock posting violates standard procedures, lot levels maybe incorrect. Do you want to continue?" You might even want to trigger an email as well to a supervisor or maybe a write the info of the user and quantities into the UD long text for documentation purposes.

Craig
Craig
 
Posts: 5940
Joined: Sun Oct 20, 2002 11:07 pm
Location: Heading back to the Milky Way...

Re: Keeping the inspection active for 04 inspection type

Postby Bertha » Thu Aug 16, 2012 8:43 am

Craig, thanks for your quick reply.

The current job closes the inspection by discharging it completely when it finds that the related process order is TECO.
They are working with fixed size sample and they are happy about it, so that's not a problem and in case the consumption is greater they can always increase the sample consumption VMENGE (what they could not do is decreasing it, but that's ok)

The only problem I see with the user exit, or maybe I am considering the wrong one, is that, as I see it, QEVA0010 cannot be used when only stock postings are saved in QA11 without UD selection, which is ok, but in that case the user could just discharge completely the inspection lot despite the warning message, and that is what I would like to avoid.
is that the user exist you were suggesting?

Bertha
Bertha
Bertha
 
Posts: 29
Joined: Wed Apr 05, 2006 4:00 am
Location: Spain

Re: Keeping the inspection active for 04 inspection type

Postby Craig » Thu Aug 16, 2012 11:27 am

I'm sure one of the following user exits would be triggered even if just the stock posting is done.

Just have your programmer enter a simple text message into each one in a test environment and see which ones are called when saving a stock posting only. Then use one of them.

Craig

QEVA0001 Enhancement: Quantity posting for usage decision
QEVA0002 Calculation of share of scrap in inspection lot
QEVA0003 Calculate "Next inspection date" for batch
QEVA0004 Exit for changing information line in usage decision header
QEVA0007 UD: Control of compulsory comment or long text presetting
QEVA0009 UD: Predefinition of quantity to be posted to sample stock
QEVA0010 UD: Usage decision check
Craig
 
Posts: 5940
Joined: Sun Oct 20, 2002 11:07 pm
Location: Heading back to the Milky Way...

Re: Keeping the inspection active for 04 inspection type

Postby Bertha » Mon Aug 20, 2012 3:54 am

Thanks Craig... I will check it... have a nice day!
Bertha
Bertha
 
Posts: 29
Joined: Wed Apr 05, 2006 4:00 am
Location: Spain


Return to Logistics QM

Who is online

Users browsing this forum: No registered users and 5 guests




This website is not affiliated with, sponsored by, or approved by SAP AG.