@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultLedgerService") public class DefaultLedgerService extends Object implements LedgerService
The service enables you to retrieve ledgers, their properties like leading ledger and their names in the respective language..
Reference: SAP API Business Hub
OData Service: | API_LEDGER_SRV |
API Version: | 1 |
Communication Scenario: | SAP Analytics Cloud for Planning Integration (SAP_COM_0087), Finance - Cloud Consolidation Data Collection Integration (SAP_COM_0241) |
Scope Items: | Import Connection setup with SAP Analytics Cloud (1YB), Group Reporting - Data from SAP Group Reporting Data Collection (287) |
Authentication Methods: | Basic, x509, OAuth2 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultLedgerService()
Creates a service using
LedgerService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultLedgerServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
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. |
DefaultLedgerService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultLedgerService()
LedgerService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultLedgerService withServicePath(@Nonnull String servicePath)
LedgerService
withServicePath
in interface LedgerService
servicePath
- Service path that will override the default.@Nonnull public DefaultLedgerServiceBatch batch()
batch
in interface BatchService<LedgerServiceBatch>
@Nonnull public LedgerFluentHelper getAllLedger()
LedgerService
Ledger
entities.getAllLedger
in interface LedgerService
Ledger
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 public LedgerByKeyFluentHelper getLedgerByKey(String ledger)
LedgerService
Ledger
entity using key
fields.getLedgerByKey
in interface LedgerService
ledger
- Identifies a 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 public LedgerTextFluentHelper getAllLedgerText()
LedgerService
LedgerText
entities.getAllLedgerText
in interface LedgerService
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 public LedgerTextByKeyFluentHelper getLedgerTextByKey(String ledger, String language)
LedgerService
LedgerText
entity
using key fields.getLedgerTextByKey
in interface LedgerService
ledger
- Identifies a ledger in General Ledger Accounting.
Constraints: Not nullable, Maximum length: 2
language
- The language key indicates
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 © 2020 SAP SE. All rights reserved.