Calling convention: SCM_Calc_Sales_Outstanding("Buchungsperiode": String, ProductID: Integer, DataID: Integer, "Geschaeftsart": String): Float
Description: Calculates outstanding-sales percentage from open versus total booking revenue for a product and its business subset, then updates the specified record.
Parameters:
Buchungsperiode: booking period used to filter booking data.
ProductID: product identifier.
DataID: current-object record to update.
Geschaeftsart: business type used for the subset calculation.
Returns: Product outstanding-sales percentage when total revenue is positive; otherwise NULL. The function also updates the subset field.
Availability: Default; SCM-specific and dependent on the current object's virtual SQL and the buchungen/Product schemas.
Example:
Outstanding := SCM_Calc_Sales_Outstanding("2026-08", ProductID, DataID, "Retail");