https://userapps.support.sap.com/sap/support/knowledge/en/2786681
2786681 - No GL account re-determination after change the product category in Confirmation | SAP...
Confirmation is created with limit Purchase Order. Try to change the product category and the GL account is not updated from the customizing settings.