@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCompanyCodeService") public class DefaultCompanyCodeService extends Object implements CompanyCodeService
This service enables you to read company code 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_COMPANYCODE_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 |
---|
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 © 2019 SAP SE. All rights reserved.