AfterCombinedLotInsert

Problem to be solved
A composite container can only hold one sublot at a time. When two different sublots of two different lots are combined within this type of container the OnGenerateCustomLotName insertion point is called. Assume that a new lot name is returned. The Material Server will create a new lot, but how should the lot attributes and custom properties be initialized?
A different insertion point is provided for initializing this new lot to provide an initialization routine that has access to the data of the two lots being combined.
Specifics about this routine
This insertion point is called when sublots of different lots are combined within a composite container and the name of the lot for the new sublot does not exist within the database.
These are the parameters for this function:
Param Name
Data Type
Description
DistributedLotName
String
Lot Name specified for the distribution
ExistingLotName
String
Lot Name of existing Lot in the Composite Container
CombinedLotName
String
Custom Lot Name derived from the OnGenerateCustomLotName insertion call
LotMaterialName
String
Material Name that the Lot is derived from
LotMaterialID
Long
Material ID for the Material
This is provided so the insertion code author has the fully qualified key to retrieve the Lot information (LotName + MaterialID).
This event is fired only during the execution of the
DistributeSubLot
and
MaterialDistributionComplete
methods. These are the only two places within the Material Server that a combination of Lot and/or Label can occur.
Related insertion points
Other insertion points that could work with this function include:
  • OnGenerateCustomLotName
  • AfterLotInsert
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal