Symptom
It is required to post Journal Entries to a specific ledger with Journal Entry - Post (Synchronous) / Journal Entry - Post (Asynchronous) or Journal Entry by Ledger API.
Environment
SAP S/4HANA Cloud Public Edition
Cause
It is not possible to post Journal Entries to only specific ledger with Journal Entry - Post (Synchronous) / Journal Entry - Post (Asynchronous) or Journal Entry by Ledger API.
There is even no Ledger element in SOAP API.
Resolution
Workaround:
A Ledger Group can be created which only includes the specific ledger. (for example, 0L Ledger Group just includes 0L Ledger).
Then the Journal Entry can be posted to this specific ledger (for example: 0L) with API Journal Entry by Ledger - Post.
See Also
SAP Blog Posts:
Guidelines for API Journal Entry – Post
Guidelines for Journal Entry by Ledger – Post (Asynchronous)
SAP Help Portal:
Journal Entry - Post (Synchronous)
Keywords
journal entry post api, API, journal entry - post, journal entry by ledger, journal entry by ledger API, specific ledger , KBA , AC-INT-2CL , Accounting Interface (Public Cloud) , Problem