Functionality The function module or BAPI allows you to allocate sample devices to anexisting sample lot>. The function module requires the following parameters.
- X_LOT
Number of lot to which sample devices> are to beallocated. This parameter is required.
- X_DATE
Date of sample drawing. If you do not enter a date, the current date isused.
- X_SAMPLE_STATUS
Sample device ID. You can enter the following values: 1 - sample device of first drawing A - replacement sample device of first drawing 2 - sample device of second drawing B - replacement sample device of second drawing If you do not specify a value, 1 is used.
- T_DEVICES
Table of equipment numbers of sample devices to be allocated to thelot. You must maintain this table. The function module returns the parameter RETURN. If an error occurs,this parameter contains the error message.Notes Devices cannot already be allocated to another lot. The devices of the first drawing must be allocated before those of thesecond drawing. In every case, primary sample devices are alwaysallocated first. Description In case errors occur, this structure contains information such as:
- Message type (Field TYPE)
- Message code (Field CODE)
- Message text (Field MESSAGE)
If errors occur, the message type is set to 'S'. Otherwise thestructure is empty.Description Date when the sample drawing was executed. Default Current date. Description Number of the lot to which the devices to be imported must be allocatedas sample devices (mandatory parameter). Default None Description The sample device status, which must be assigned to devices. Value range Values '1', 'A', '2' and 'B' are permissible. '1' - sample device from the first sample drawing 'A' - alternative sample device from the first sample drawing '2' - sample device from the second sample drawing 'B' - alternative sample device from the second sample drawing Default If you do not enter a value, the system automatically uses value '1'. Description Table containing data for the sample devices to be imported. You must enter the equipment numbers here for the relative devices(mandatory parameter).
|