@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultGeneralLedgerAccountService") public class DefaultGeneralLedgerAccountService extends Object implements GeneralLedgerAccountService
This service enables you to read G/L account 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_GLACCOUNTINCHARTOFACCOUNTS_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 |
---|
DefaultGeneralLedgerAccountService()
Creates a service using
GeneralLedgerAccountService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
GLAccountInChartOfAccountsFluentHelper |
getAllGLAccountInChartOfAccounts()
Fetch multiple
GLAccountInChartOfAccounts entities. |
GLAccountTextFluentHelper |
getAllGLAccountText()
Fetch multiple
GLAccountText entities. |
GLAccountInChartOfAccountsByKeyFluentHelper |
getGLAccountInChartOfAccountsByKey(String chartOfAccounts,
String gLAccount)
Fetch a single
GLAccountInChartOfAccounts entity using key fields. |
GLAccountTextByKeyFluentHelper |
getGLAccountTextByKey(String chartOfAccounts,
String gLAccount,
String language)
Fetch a single
GLAccountText entity using key fields. |
DefaultGeneralLedgerAccountService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultGeneralLedgerAccountService()
GeneralLedgerAccountService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultGeneralLedgerAccountService withServicePath(@Nonnull String servicePath)
GeneralLedgerAccountService
withServicePath
in interface GeneralLedgerAccountService
servicePath
- Service path that will override the default.@Nonnull public GLAccountInChartOfAccountsFluentHelper getAllGLAccountInChartOfAccounts()
GeneralLedgerAccountService
GLAccountInChartOfAccounts
entities.getAllGLAccountInChartOfAccounts
in interface GeneralLedgerAccountService
GLAccountInChartOfAccounts
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 GLAccountInChartOfAccountsByKeyFluentHelper getGLAccountInChartOfAccountsByKey(String chartOfAccounts, String gLAccount)
GeneralLedgerAccountService
GLAccountInChartOfAccounts
entity using key fields.getGLAccountInChartOfAccountsByKey
in interface GeneralLedgerAccountService
chartOfAccounts
- Key that uniquely identifies a chart of accounts.Constraints: Not nullable, Maximum length: 4
gLAccount
- The G/L account number identifies the G/L account in a chart of accounts.Constraints: Not nullable, Maximum length: 10
GLAccountInChartOfAccounts
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 GLAccountTextFluentHelper getAllGLAccountText()
GeneralLedgerAccountService
GLAccountText
entities.getAllGLAccountText
in interface GeneralLedgerAccountService
GLAccountText
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 GLAccountTextByKeyFluentHelper getGLAccountTextByKey(String chartOfAccounts, String gLAccount, String language)
GeneralLedgerAccountService
GLAccountText
entity using key fields.getGLAccountTextByKey
in interface GeneralLedgerAccountService
chartOfAccounts
- Key that uniquely identifies a chart of accounts.Constraints: Not nullable, Maximum length: 4
gLAccount
- The G/L account number identifies the G/L account in a chart of accounts.Constraints: Not nullable, Maximum length: 10
language
- The language key indicatesConstraints: Not nullable, Maximum length: 2
GLAccountText
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.