SAP Knowledge Base Article - Public

2927662 - Error in document: G/L account requires a valid tax code.

Symptom

When trying to post a journal entry using the SAP SOAP journal entry posting API you encounter error messages such as 'Error in document: ... G/L account ... requires a valid tax code.'

Environment

  • Financial Accounting (FI)
  • SAP S/4HANA Finance
  • SAP S/4HANA Cloud
  • SAP Fiori 

Reproducing the Issue

Make a posting to a tax account, or tax relevant G/L account using the SAP SOAP journal entry posting API

Cause

In S/4HANA Cloud Release 2005 an error in the SAP SOAP journal entry posting API was corrected, because postings on G/L accounts could be made without tax codes, even if the account is tax relevant and the "Posting without Tax allowed" flag in G/L account master data was not set.

Resolution

To create documents without a tax code on tax relevant G/L accounts, please set the flag "Posting without Tax allowed" (company code specific setting) in app 'Manage G/L Account Master Data' (App ID F0731A) or SSCUI 150001.

In the case of tax accounts, such as accounts with tax category '<' or '>', this error message is expected, as a tax code must be set. Hence in this case, you must add a tax code or use another account.

See Also

Further technical information can be found on help.sap.com:

Sync API: https://help.sap.com/viewer/b978f98fc5884ff2aeb10c8fdeb8a43b/LATEST/en-US/92fed0579212c525e10000000a4450e5.html
Async API: https://help.sap.com/viewer/b978f98fc5884ff2aeb10c8fdeb8a43b/LATEST/en-US/21101cf9-c430-4427-9382-fcd463496e14.html

Keywords

API, post journal entry, tax code, error, regression, 2005, journal entries, FF827, discount, , KBA , FI-FIO-GL , Fiori UI for General Ledger Accounting , Product Enhancement

Product

SAP S/4HANA Cloud 2005