Error message
G/L account [G/L Account Number] is missing an Item Category. Assign an item category on SAP S/4HANA.Affected ERP integrations
SAP S/4HANA®
Cause
When exporting an expense, you may hit an error stating that there is no item category assigned to the selected General Ledger (G/L) account.
Behind the scenes, SAP S/4HANA uses a feature called Document Splitting to automatically organize your financial data into balance sheets or segments such as tracking expenses versus tax. For this to work, SAP S/4HANA requires every G/L account to be classified under a specific Item Category, for example, Expense, Tax, or Vendor. If the G/L account used for your Payhawk expense hasn’t been assigned an item category in SAP S/4HANA, the system doesn’t know how to process the transaction and will reject it.
Solution
Before diving into SAP S/4HANA, make sure the expense is categorized correctly in Payhawk:
Log in to the Payhawk Web Portal.
Navigate to the Expenses app.
Open the affected expense by clicking on it and look at the category or G/L account mapped to it.
Verify if this is the correct account for this type of expense. If the wrong G/L account was selected by mistake, change it to the correct one and you may bypass the error entirely.
If the G/L account is correct, a configuration adjustment is needed in SAP S/4HANA to give that specific account its missing classification.
SAP S/4HANA Public Cloud Edition
To resolve the issue in SAP S/4HANA Public Cloud Edition:
Log into your SAP Fiori launchpad with configuration permissions.
Open the Manage Your Solution app and go to Configure Your Solution, or use the Implementation Cockpit / Central Business Configuration depending on your setup.
Search for the configuration step titled Classify G/L Accounts for Document Splitting.
Locate your Chart of Accounts and add a new entry for the specific G/L account code.
Assign the appropriate Item Category (such as
02000for Expenses).Save the changes.
SAP S/4HANA Private Cloud Edition
To resolve the issue in SAP S/4HANA Private Cloud Edition:
Use transaction code
SPROand click SAP Reference IMG.Navigate to Financial Accounting > General Ledger Accounting > Business Transactions > Document Splitting > Classify G/L Accounts for Document Splitting.
Alternatively, you can use the direct transaction code
GSP_LZG.Enter your Chart of Accounts, click New Entries, and enter the G/L account number.
In the Item Category column, assign the correct classification code, for example, Expense, or Cash Account.
Save the configuration to a transport request.
Next steps
Once the G/L account has been properly classified in SAP S/4HANA, go back to Payhawk and follow the steps:
Log in to the Payhawk Web Portal.
Go to the Expenses app.
Locate the pending expense and click Review to re-try the export.