In some cases, the quality engineer must reset the sample calculation of an inspection lot to assign new inspection specifications:

In our example, the system created one inspection lot and automatically assigned Inspection Plan A. The calculated sample size is 10 PC. After discovering an error, the quality engineer uses the Reset Sample Calculation function, resets the sample calculation of the lot, and assigns a new inspection plan, Inspection Plan B, with a different set of operations and characteristics. In the sample calculation, the system now calculates a sample size of 15 PC.
As explained above, when you create an inspection lot, the system automatically tries to assign an inspection plan to the inspection lot, that is, provided that you've configured the inspection type accordingly. Technically, when the inspection plan is assigned to the inspection lot, the system copies the data from the inspection plan into the inspection lot record. Any changes that the quality planner makes afterward to the inspection plan are not reflected in the inspection lot. Assuming that you discover an error in your master data or you discover that the system has assigned the wrong inspection plan, you might want to remove the assignment of the inspection plan to the inspection lot and reassign the new inspection plan version with the correct master data. To do so, the Reset Sample Calculation function in SAP S/4HANA can be used. After resetting the sample determination, you can reassign the inspection plan (for example, the corrected inspection plan) or a different inspection plan to the inspection lot and reexecute the sample calculation.
However, because you can only reset the sample determination under certain conditions, the system first checks whether the inspection lot status allows you to execute this function. The following image shows some prerequisites that must be fulfilled if you want to reset the sample determination for an inspection lot:
