SalesOrderflow > Settings > Ledger settings
If you turn on the setting, you also have to map the corresponding code for it in the datamapping.
You can use CTRL + F to search the field costCenter. You need to map SO_HDR:COST_CODE in the left field. Don't forget to save the settings.