Automate Usage Decision of Inspection Lot when material is moved out of one Storage Location to another
I have a business scenario. We receive a production material from a different location into plant via trucks and immediately move the stock into a storage location A in the plant. Once the stock is moved to this storage location, we need to create a Inspection lot (Material/batch specific) and have an inspection for 72 hours. Further when this stocks moves from storage location A to storage location B the stock in the inspection lot needs to be decremented and move from Quality to unrestricted. Further we want to close the inspection lot by doing a Auto UD when the inspection lot Qty becomes '0".
Anand Rao replied
BAPIs would be there but how can system will come to know how much quantity should be posted automatically in case of partial stock posting?
But, as you are mentioning -you are using RF guns for scanning (hopefully barcode which reads the quantity and other details like storage location, material document or inspection lot; which are required to execute movement in background)_ possibly you can automate it if you have separate identifiers for unrestricted stock and block stock in this scanning system.
You can explore BAPI_INSPLOT_SETUSAGEDECISION for stock data export parameter. Else simply you can pass the details using RFC as to execute QA11 or QA12 transactions in background. Needs intervention of ABAP consultant!