HistHookMaterialInput
- Last UpdatedJun 06, 2017
- 1 minute read
Description:
The HistHookMaterialInput function is called during the material consumption at the time of batch execution. When the function is called, it creates an entry into the MaterialInput table of the BatchHistory database.
Syntax
char* HistHookMaterialInput(char* szBatchServerName, char* szBatchKey, H_CLB* pCLB, char* szPhaseKey, char* szMtrlKey, H_MaterialInput* pMaterialInput)
Parameters:
-
szBatchServerName
-
Type: char*
-
Description: Contains the name of the batch server configured in system parameters
-
-
szBatchKey
-
Type: char*
-
Description: Contains the unique identification string for the batch
-
-
pCLB
-
Type: H_CLB*
-
Description: Points to the structure that contains the information of campaign, lot, and batch
-
-
szPhaseKey
-
Type: char*
-
Description: Contains the unique identification string for a phase
-
-
szMtrlKey
-
Type: char*
-
Description: Contains the unique identification string for the material
-
-
pMaterialInput
-
Type: H_MaterialInput*
-
Description: Points to the structure of H_MaterialInput that refers to the MaterialInput table of the BatchHistory database.
-
Return type: char*
This function returns an insert query for the MaterialInput table of the BatchHistory database. The returned string must remain allocated (that is, it must return a static buffer).