Calling convention: GetSAPProductName("SAPNR": String): Integer
Description: Resolves a product ID from the new SAP material number in the PRODUCT table. The public name is misleading because no product name is returned.
Parameters:
SAPNR: value matched against PRODUCT.MATNR_NEW.
Returns: Matching Integer product ID, NULL for a NULL or empty argument or no match, and -1 after a field conversion error.
Availability: Default; requires the PRODUCT.MATNR_NEW field.
Example:
ProductID := GetSAPProductName("00012345");