Description: Rebuilds the TEMP_ALLOCATION_BUILDING table with plants belonging to a site and returns their IDs.
Calling convention: CIP_HC_CollectBuilding(SiteID)
Parameters:
SiteID: site identifier used to select rows from PLANT.
Returns: Comma-separated plant DATA_ID values as String, or -1 when no plant matches. NULL input displays a message and can leave the result undefined.
Availability: Default registration, but specific to the legacy HC allocation schema; deletes and repopulates a shared temporary table.
Example:
PlantIDs := CIP_HC_CollectBuilding(1);