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. [Field Name] is a required field for the G/L account.

Prev Next

Error message

Failed to export into SAP S/4HANA. [Field Name] is a required field for the G/L account.

Affected ERP integrations

  • SAP S/4HANA®

Cause

When exporting an expense, you may encounter an error indicating that a specific field is mandatory for the selected General Ledger (G/L) account, for example, Branch(FS) is a required field for the G/L account.

In SAP S/4HANA, every G/L account is assigned to a rulebook named a Field Status Group. This group controls exactly which pieces of information are mandatory, optional, or hidden when posting a financial transaction.

This error happens because your company’s SAP configuration requires a specific field, such as a Branch, Profit Center, Assignment Number, or Text field, to be populated whenever a transaction hits this G/L account. SAP rejected the transaction, because Payhawk attempted to export the expense without data in that specific field.

Solution

If your organization doesn't want this specific field to be mandatory for external data transfers or API postings, a financial configuration administrator can make it optional in SAP.

SAP S/4HANA Public Cloud Edition

To resolve this issue in SAP S/4HANA Public Cloud Edition:

  1. Log into your SAP Fiori launchpad and open the Manage G/L Account Master Data app to check which group the account uses. Search for your account, view the Company Code Data tab, and note the Field Status Group code, for example, YB01.

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

  3. Search for and open the configuration step named Define Field Status Variants.

  4. Locate your Field Status Variant, navigate to the Field Status Groups folder, and select the group code you noted in step 1.

  5. Find the specific field mentioned in your error message and change its rule from Required Entry to Optional Entry.

  6. Save your changes.

SAP S/4HANA Private Cloud Edition

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

  1. Run transaction code FS00 (Centrally Maintain G/L Account).

  2. Enter the G/L account and Company Code, then click the Create/bank/interest tab to find the account's Field status group code.

  3. Run transaction code OBC4 (Maintain Field Status Variants).

  4. Select your company's Field Status Variant and double-click the Field status groups folder on the left.

  5. Double-click the specific Field Status Group code you found in step 1.

  6. Double-click the category where your field belongs, for example, General data or Additional account assignments.

  7. Locate the field listed in the error message and change the radio button from Required Entry to Optional Entry.

  8. Click Save and assign the changes to a transport request.

Next steps

  1. Log in to the Payhawk Web Portal.

  2. Navigate to the Expenses app.

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