Documentation Index

Fetch the complete documentation index at: https://payhawk.document360.io/llms.txt

Use this file to discover all available pages before exploring further.

Still waiting weeks after close for invoices? Agent Fetch finds them automatically. | Learn more

Failed to export into SAP S/4HANA. This G/L account cannot be used for this type of transaction.

Prev Next

Error message

Failed to export into SAP S/4HANA. This G/L account cannot be used for this type of transaction.

Affected ERP integrations

  • SAP S/4HANA®

Cause

When exporting an expense, you may hit an error indicating that the item category assigned to your G/L account is not allowed for this specific accounting transaction.

SAP S/4HANA uses accounting rulebooks, called Document Splitting rules, to ensure financial balanced entries. Every type of transaction, such as a supplier invoice, has a strict list of allowed Item Categories, for example, Expense, Tax, or Vendor.

This error happens because the General Ledger (G/L) account selected for the expense is classified in SAP S/4HANA under an Item Category that is completely unexpected or blocked for supplier invoices. For example, if an expense account was accidentally classified as a Revenue or Asset item category, SAP S/4HANA will reject the transaction because those categories don't belong in a standard supplier expense posting.

Solution

Before making changes in SAP S/4HANA, verify if the correct account was selected in Payhawk:

  1. Log in to the Payhawk Web Portal.

  2. Navigate to the Expenses app.

  3. Open the affected expense by clicking on it and check the assigned category or G/L account.

  4. Ensure you haven't accidentally selected a revenue, balance sheet, or bank account for a standard business expense.

  5. If a mistake was made, updating the expense to a proper expense G/L account in Payhawk will usually fix the issue immediately.

If the G/L account selection is correct for this business use case, an accountant or system administrator needs to correct how that G/L account is classified inside 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 with configuration access.

  2. Open your configuration environment, such as Central Business Configuration or Manage Your Solution.

  3. Search for and open the configuration step: Classify G/L Accounts for Document Splitting.

  4. Look up the specific G/L account code listed in your error notes.

  5. Review the Item Category assigned to it. If it is incorrect, change it to a category that is compatible with supplier postings, such as 02000 for Expense.

  6. Save your changes.

SAP S/4HANA Private Cloud Edition

To resolve the issue in SAP S/4HANA Private Cloud Edition:

  1. Run transaction code GSP_LZG, or go to SPRO > Financial Accounting > General Ledger Accounting > Business Transactions > Document Splitting > Classify G/L Accounts for Document Splitting.

  2. Enter your Chart of Accounts and locate the affected G/L account.

  3. Check the Item Category column. If it is misclassified, update it to the correct category, for example, Expense.

  4. If the item category must remain as it is, an administrator will need to update the transaction variant rules in transaction GSP_RD (Define Document Splitting Rules) to allow that specific item category for your invoice type.

  5. Save the configuration to a transport request.

Next steps

Once the G/L account classification has been fixed in SAP S/4HANA or the correct category has been assigned in Payhawk, go back to Payhawk and follow the steps:

  1. Log in to the Payhawk Web Portal.

  2. Go to the Expenses app.

  3. Locate the pending expense and click Review to re-try the export.