https://userapps.support.sap.com/sap/support/knowledge/en/3697458
3697458 - Cash discount field issue in FB01 - error F5172 | SAP Knowledge Base Article
The cash discount field in transaction FB01 is not functioning as expected. Error message F5172 is displayed, prompting the user to fill the cash discount...