@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCompanyCodeService") public class DefaultCompanyCodeService extends Object implements CompanyCodeService
The service enables you to retrieve company codes and their properties like name, country and currency. .
Reference: SAP API Business Hub
OData Service: | API_COMPANYCODE_SRV |
API Version: | 1 |
Communication Scenario: | SAP Analytics Cloud for Planning Integration (SAP_COM_0087), SAP Analytics Cloud for Liquidity Planning Integration (SAP_COM_0443), Employee Central Financial Master Data Integration (SAP_COM_0441), Finance - Cloud Consolidation Data Collection Integration (SAP_COM_0241) |
Scope Items: | Import Connection setup with SAP Analytics Cloud (1YB), Liquidity Planning (3L5), Financial Master Data for SAP SuccessFactors Employee Central (4AJ), Core HR with SAP SuccessFactors Employee Central (JB1), Group Reporting - Data from SAP Group Reporting Data Collection (287) |
Authentication Methods: | Basic, x509 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultCompanyCodeService()
Creates a service using
CompanyCodeService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultCompanyCodeServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
CompanyCodeFluentHelper |
getAllCompanyCode()
Fetch multiple
CompanyCode
entities. |
CompanyCodeByKeyFluentHelper |
getCompanyCodeByKey(String companyCode)
Fetch a single
CompanyCode
entity using key fields. |
DefaultCompanyCodeService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultCompanyCodeService()
CompanyCodeService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultCompanyCodeService withServicePath(@Nonnull String servicePath)
CompanyCodeService
withServicePath
in interface CompanyCodeService
servicePath
- Service path that will override the default.@Nonnull public DefaultCompanyCodeServiceBatch batch()
batch
in interface BatchService<CompanyCodeServiceBatch>
@Nonnull public CompanyCodeFluentHelper getAllCompanyCode()
CompanyCodeService
CompanyCode
entities.getAllCompanyCode
in interface CompanyCodeService
CompanyCode
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 CompanyCodeByKeyFluentHelper getCompanyCodeByKey(String companyCode)
CompanyCodeService
CompanyCode
entity using key fields.getCompanyCodeByKey
in interface CompanyCodeService
companyCode
- The company code is an organizational unit within financial accounting.
Constraints: Not nullable, Maximum length: 4
CompanyCode
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.