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 currently not possible to post Journal Entries to a specific ledger with Journal Entry - Post (Synchronous) / Journal Entry - Post (Asynchronous) or Journal Entry by Ledger API as there is no Ledger element in SOAP API.
Resolution
As a 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 Documentations:
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
SAP Knowledge Base Article - Public