Description: Finds operating units for a plant that satisfy product process-safety and technical requirements, then updates scenario utilization rows.
Calling convention: CIP_HC_CollectOpUnits_New(ProductID, PlantID, ProductID, ScenarioID, Volume)
Parameters:
ProductID: first argument is read but not used after assignment.
PlantID: plant whose operating units are searched.
ProductID: the duplicated third registration name is misleading; this value is used to read the PRODUKTE record and acts as the effective product/project ID.
ScenarioID: scenario used for utilization calculations.
Volume: required by the implementation but read into an otherwise unused variable.
Returns: Comma-separated matching operating-unit IDs as String, an empty String when none match, or NULL after initial validation. The registration omits a return type.
Availability: Default registration, but specific to the legacy HC schema; deletes and inserts UTILISATION2SCENARIO rows.
Example:
OpUnitIDs := CIP_HC_CollectOpUnits_New(1, 2, 1, 6, 100);