SAP Knowledge Base Article - Public

2927662 - G/L account requires a valid tax code

Symptom

When trying to post a journal entry using the SAP SOAP journal entry posting API, the error 'G/L Account &&& requires a valid tax code' is raised.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

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

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 configuration ID 150001.
  • In the case of tax accounts such as accounts with tax category '<' or '>', this error message is expected. A tax code must be set, so you must add a tax code or use another account.

See Also

Further technical information can be found on help portal.

Journal Entry - Post (Synchronous)
Journal Entry - Post (Asynchronous)

Keywords

API, Journal Entry - Post, Tax Code, G/L Account, Posting without Tax Allowed, Tax Category, Manage G/L Account Master Data, SAP SOAP, API, flag, Manage G/L Account Master Data , KBA , FI-FIO-GL-2CL , Fiori UI for General Ledger Accounting (Public Cloud) , How To

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions