--- title: "SAP cost center blocked for Administrators - Payhawk Help Center" slug: "direct-postings-are-blocked-for-this-cost-center-please-unblock-them" description: "Resolve SAP S/4HANA cost center posting errors by unblocking restrictions and ensuring correct expense categorization in Payhawk for smooth transactions." updated: 2026-10-27T15:07:41Z published: 2026-10-27T15:07:41Z canonical: "payhawk.com/direct-postings-are-blocked-for-this-cost-center-please-unblock-them" --- > ## Documentation Index > Fetch the complete documentation index at: https://payhawk.com/help/llms.txt > Use this file to discover all available pages before exploring further. # Direct postings are blocked for this cost center. Please unblock them in SAP S/4HANA. ## Error message ```plaintext 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: 1. Open the affected expense and look at the **Cost Center** field. 2. Verify if the correct department or team was selected. 3. 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: 1. Log into your SAP Fiori launchpad and open the **Manage Cost Centers** app. 2. Search for the Cost Center ID associated with the expense. 3. Open the cost center details and navigate to the **Control Data** or **Indicators** section. 4. Locate the block indicator for **Actual Primary Costs** (or **Block Direct Postings**) and turn it **OFF** by unchecking it. 5. Save your changes. ### SAP S/4HANA Private Cloud Edition To resolve the issue in SAP S/4HANA Private Cloud Edition: 1. Run transaction code `KS02` (Change Cost Center). 2. Enter the Cost Center number and your Controlling Area, then click **Enter**. 3. Navigate to the **Control** tab. 4. In the Lock section, look for the **Actual primary costs** checkbox. If it is checked, uncheck it to remove the restriction. 5. 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: 1. Log in to the [Payhawk Web Portal](https://portal.payhawk.com). 2. Navigate to **Spend**. 3. Locate the pending expense and click **Review** to successfully re-export the transaction.