Calling convention: GetProductSAPMatNrNew(ProductID: Integer): String
Description: Reads the new SAP material number from the PRODUCT table by product ID.
Parameters:
ProductID: product identifier.
Returns: String: MatNR_NEW as text, or NULL for a NULL or empty argument or when no product is found. A conversion error produces an empty string.
Availability: Default; requires the PRODUCT.MatNR_NEW field.
Example:
SAPMaterialNumber := GetProductSAPMatNrNew(ProductID);