@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultCompanyCodeService") public class DefaultCompanyCodeService extends Object implements CompanyCodeService
The service enables you to retrieve company code master data. It contains a header and nodes with business information. You can read company codes and their properties like name, country and currency..
Reference: SAP API Business Hub
OData Service: | OP_API_COMPANYCODE_SRV |
API Version: | 1 |
Minimum ERP Version: | 2020 |
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
- Company Code
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 © 2021 SAP SE. All rights reserved.