Hi,
You can do this via enhancement for collective result recording.
Create BDC for QE72 & then BAPI_INSPOPER_RECORDRESULTS can be used to achieve this.
- Get the selection screen and fetch the inspection lot number on the basis of input material and batch. QALS table can be used here.
Once you get all inspection lot numbers, call BAPI_INSPOPER_GETDETAIL to read the MICs to be recorded (from the first inspection lot) - User can select all/required inspection lots and enter the values for the MICs. Store this data in an internal table.
- Now call BAPI_INSPOPER_RECORDRESULTS. This would copy the results in all/selected inspection lots.
This is very basic logic and I have shared this on the basis of my understanding of your requirement.
If this gets OK, you can further use BAPI_INSPLOT_SETUSAGEDECISION to get rid of QA16 for collective UD.
ntn