Calling convention: GetSAPNR("ProductName": String)
Description: Reads the new SAP material number from the PRODUCT table. Despite the registered parameter name, the implementation uses the argument as Product_Id, not as a product name.
Parameters:
ProductName: registered as a product name, but currently bound to the Integer Product_Id query parameter.
Returns: MATNR_NEW as String, NULL for a NULL argument or no matching product, and ??? after a field conversion error. The registration omits a return type.
Availability: Default; requires the PRODUCT.MATNR_NEW field.
Example:
SAPNumber := GetSAPNR(ProductID);