HistHookMaterialInputChange
- Last UpdatedNov 03, 2021
- 1 minute read
Description:
The HistHookMaterialInputChange function is called during the changes in formula of input quantities for batch. When the function is called, it creates an entry into the MaterialInputChange table of the BatchHistory database.
Syntax
char* HistHookMaterialInputChange(char* szBatchServerName, char* szBatchKey, H_CLB* pCLB, char* szPhaseKey, H_MaterialInputChange* pMaterialInputChange)
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
-
-
pMaterialInputChange
-
Type: H_MaterialInputChange*
-
Description: Points to the structure of H_MaterialInputChange that refers to the MaterialInputChange table of the BatchHistory database
-
Return Type: char*
This function returns an insert query for the MaterialInputChange table of the BatchHistory database. The returned string must remain allocated (that is, it must return a static buffer).