Sampling Procedure 
The sampling procedure is used to select and subsequently inspect a random number of inspection-relevant sample devices drawn from a larger number of devices.
The sampling procedure is divided into the following phases:
Lot creation
You create a lot master record that contains the lot data.
Allocation of devices to the lot
You determine the scope of the lot by allocating devices to the lot. When you do this, you must take into account the similarity of devices so that inspection results are as representative of the entire lot as possible.
You can perform this function more than once.
Determination of lot devices
You prepare for lot drawing by creating a table of devices allocated to the lot. This serves as a basis for drawing sample devices.
Drawing sample devices
The sample devices are drawn from the devices allocated to the lot. The number of sample devices and spare sample devices is dependent upon the lot size, the lot type or other legal requirements.
The number is a default value and is not checked by SAP. You can define a user-specific check of the number using customer exit (BAdI CHECK_NUMBER_OF_SAMPLE_DEVICES).
Renewal of lot certification
If the sample devices meet the criteria for re-certifying the entire lot, the lot status in the lot master record is changed and the lot is re-certified.