@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultGeneralLedgerAccountService") public class DefaultGeneralLedgerAccountService extends Object implements GeneralLedgerAccountService
This service enables you to retrieve G/L accounts in chart of accounts and their names in the respective language..
Reference: SAP API Business Hub
OData Service: | API_GLACCOUNTINCHARTOFACCOUNTS_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 |
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 |
---|---|
DefaultGeneralLedgerAccountServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
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 DefaultGeneralLedgerAccountServiceBatch batch()
batch
in interface BatchService<GeneralLedgerAccountServiceBatch>
@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 indicates
Constraints: 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 © 2020 SAP SE. All rights reserved.