@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultChartOfAccountsService") public class DefaultChartOfAccountsService extends Object implements ChartOfAccountsService
This service enables you to read chart of accounts master data in an API call. It is based on the OData protocol, and can be consumed in Fiori apps and on other user interfaces.
Reference: SAP API Business Hub
OData Service: | API_CHARTOFACCOUNTS_SRV |
API Version: | 1 |
Communication Scenario: | SAP Business Objects Cloud for Planning Integration (SAP_COM_0087) |
Scope Items: | oData Integration with SAP Business Objects Cloud for Planning (1YB) |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultChartOfAccountsService()
Creates a service using
ChartOfAccountsService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
ChartOfAccountsFluentHelper |
getAllChartOfAccounts()
Fetch multiple
ChartOfAccounts entities. |
ChartOfAccountsTextFluentHelper |
getAllChartOfAccountsText()
Fetch multiple
ChartOfAccountsText entities. |
ChartOfAccountsByKeyFluentHelper |
getChartOfAccountsByKey(String chartOfAccounts)
Fetch a single
ChartOfAccounts entity using key fields. |
ChartOfAccountsTextByKeyFluentHelper |
getChartOfAccountsTextByKey(String chartOfAccounts,
String language)
Fetch a single
ChartOfAccountsText entity using key fields. |
DefaultChartOfAccountsService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultChartOfAccountsService()
ChartOfAccountsService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultChartOfAccountsService withServicePath(@Nonnull String servicePath)
ChartOfAccountsService
withServicePath
in interface ChartOfAccountsService
servicePath
- Service path that will override the default.@Nonnull public ChartOfAccountsFluentHelper getAllChartOfAccounts()
ChartOfAccountsService
ChartOfAccounts
entities.getAllChartOfAccounts
in interface ChartOfAccountsService
ChartOfAccounts
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 ChartOfAccountsByKeyFluentHelper getChartOfAccountsByKey(String chartOfAccounts)
ChartOfAccountsService
ChartOfAccounts
entity using key fields.getChartOfAccountsByKey
in interface ChartOfAccountsService
chartOfAccounts
- Chart of AccountsConstraints: Not nullable, Maximum length: 4
ChartOfAccounts
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 ChartOfAccountsTextFluentHelper getAllChartOfAccountsText()
ChartOfAccountsService
ChartOfAccountsText
entities.getAllChartOfAccountsText
in interface ChartOfAccountsService
ChartOfAccountsText
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 ChartOfAccountsTextByKeyFluentHelper getChartOfAccountsTextByKey(String chartOfAccounts, String language)
ChartOfAccountsService
ChartOfAccountsText
entity using key fields.getChartOfAccountsTextByKey
in interface ChartOfAccountsService
chartOfAccounts
- Key that uniquely identifies a chart of accounts.Constraints: Not nullable, Maximum length: 4
language
- The language key indicatesConstraints: Not nullable, Maximum length: 2
ChartOfAccountsText
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 © 2018 SAP SE. All rights reserved.