public interface LedgerService extends BatchService<LedgerServiceBatch>
The service enables you to retrieve ledger master data. It contains a header and nodes with business information. You can read ledgers, their properties like leading ledger and their names in the respective language..
Reference: SAP API Business Hub
OData Service: | OP_API_LEDGER_SRV |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVICE_PATH
If no other path was provided via the
withServicePath(String) method, this is the default service path
used to access the endpoint. |
Modifier and Type | Method and Description |
---|---|
LedgerFluentHelper |
getAllLedger()
Fetch multiple
Ledger
entities. |
LedgerTextFluentHelper |
getAllLedgerText()
Fetch multiple
LedgerText entities. |
LedgerByKeyFluentHelper |
getLedgerByKey(String ledger)
Fetch a single
Ledger
entity using key fields. |
LedgerTextByKeyFluentHelper |
getLedgerTextByKey(String ledger,
String language)
Fetch a single
LedgerText entity using key fields. |
LedgerService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
batch
static final String DEFAULT_SERVICE_PATH
withServicePath(String)
method, this is the default service path
used to access the endpoint.@Nonnull LedgerService withServicePath(@Nonnull String servicePath)
servicePath
- Service path that will override the default.@Nonnull LedgerFluentHelper getAllLedger()
Ledger
entities.@Nonnull LedgerByKeyFluentHelper getLedgerByKey(String ledger)
Ledger
entity using key fields.ledger
- Ledger in General Ledger Accounting
Constraints: Not nullable, Maximum length: 2
Ledger
entity
using key fields. This fluent helper allows methods which modify the underlying query to be called before
executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull LedgerTextFluentHelper getAllLedgerText()
LedgerText
entities.LedgerText
entities. This fluent helper allows methods which modify the underlying query to be called before
executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull LedgerTextByKeyFluentHelper getLedgerTextByKey(String ledger, String language)
LedgerText
entity using key fields.ledger
- Ledger in General Ledger Accounting
Constraints: Not nullable, Maximum length: 2
language
- Language Key
Constraints: Not nullable, Maximum length: 2
LedgerText
entity using key fields. This fluent helper allows methods which modify the underlying query to be called
before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.