Food allergens rollup
- Clears any previously saved allergens.
- Retrieves the BOM record based on the BOM code input parameter.
- Loops through all of the component products in the BOM.
- If the component is a manufactured product, the rollup finds the production BOM based on the code and searches the components. When the component calculation is complete, the allergens are added to the product record and the date and BOM code associated with the rollup are updated.
- If the component is a non-manufactured product (purchased), the rollup will look up the allergens stored on that product record.
- Builds a list of allergens associated with the parent product. Each allergen is added to the list once.
- Writes the final allergens list, the date of the rollup, and the BOM code to the product header record.
Prerequisites
Refer to documentation Implementation
Screen management
Entry screen
Product reference range (field ITMREFDEB) |
By default, the product is automatically taken from the current record and is not modifiable. |
BOM code (field BOMALT) |
By default, the BOM code is automatically taken from the current record and is not modifiable. |