SAP Message AZ057 - Error in determination of BOM ID

Diagnosis
An error occurred when calling the module BOM_SELECT_NEXT_IDinternally.