Error message
Direct postings are blocked for this cost center. Please unblock them in SAP S/4HANA.Affected ERP integrations
SAP S/4HANA®
Cause
When exporting an expense, you may encounter an error indicating that direct postings are blocked for the selected cost center.
In SAP S/4HANA, a Cost Center represents an organizational department or unit that incurs expenses, such as Marketing, HR, or Sales. To manage company budgets or handle internal restructuring, financial administrators can block a cost center from receiving direct expenses.
If Payhawk tries to export an expense to a cost center that has its posting privileges locked for that specific date, SAP will reject the transaction to protect the budget.
Solution
Before making changes in SAP, double-check how the expense is categorized in Payhawk:
Open the affected expense and look at the Cost Center field.
Verify if the correct department or team was selected.
If the expense was accidentally tagged to an old, inactive, or incorrect cost center, update it to a valid one to resolve the issue immediately.
If the cost center selection is correct and your business intends for this department to absorb the expense, an administrator will need to lift the posting block within SAP S/4HANA.
SAP S/4HANA Public Cloud Edition
To resolve the issue in SAP S/4HANA Public Cloud Edition:
Log into your SAP Fiori launchpad and open the Manage Cost Centers app.
Search for the Cost Center ID associated with the expense.
Open the cost center details and navigate to the Control Data or Indicators section.
Locate the block indicator for Actual Primary Costs (or Block Direct Postings) and turn it OFF by unchecking it.
Save your changes.
SAP S/4HANA Private Cloud Edition
To resolve the issue in SAP S/4HANA Private Cloud Edition:
Run transaction code
KS02(Change Cost Center).Enter the Cost Center number and your Controlling Area, then click Enter.
Navigate to the Control tab.
In the Lock section, look for the Actual primary costs checkbox. If it is checked, uncheck it to remove the restriction.
Click Save to update the cost center master data.
Next steps
Once the cost center has been unblocked in SAP S/4HANA, return to Payhawk and follow the steps:
Log in to the Payhawk Web Portal.
Navigate to the Expenses app.
Locate the pending expense and click Review to successfully re-export the transaction.