SAP Knowledge Base Article - Public

3643140 - Error "Posting period &1 &2 not open for variant &4 and ledger &3" occurs when canceling the billing document using the API - SAP S/4HANA Cloud Public Edition

Symptom

Error "Posting period &1 &2 not open for variant &4 and ledger &3" occurs when canceling the billing document using the API API_BILLING_DOCUMENT_SRV.

Environment

SAP S/4HANA Cloud Public Edition

Cause

One possible cause is that the posting period is closed. And the API does not support any date related parameters for the canceling billing documents. 

Resolution

  • Open posting period in the "Manage Posting Periods" app to allow posting in order to use the API to cancel the billing document.    
  • If not opening the posting period is what you intend, then this scenario is not supported and the error is expected. 

See Also

Keywords

posting period, error, SAP_COM_0120, billing document, manage posting periods, API, reversal posting date, posting period, ledger, cancel billing document, API_BILLING_DOCUMENT_SRV , KBA , SD-BIL-IV-IF-2CL , External Billing (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions