@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCostCenterService") public class DefaultCostCenterService extends Object implements CostCenterService
This service enables you to read cost center master data in an API call. It is based on the OData protocol and can be consumed in SAP Fiori apps and other user interfaces..
Reference: SAP API Business Hub
OData Service: | API_COSTCENTER_SRV |
API Version: | 1 |
Communication Scenario: | SAP Analytics Cloud for Planning Integration (SAP_COM_0087) |
Scope Items: | Import Connection setup with SAP Analytics Cloud (1YB) |
Authentication Methods: | Basic, x509 |
Business Object: | CostCenter |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultCostCenterService()
Creates a service using
CostCenterService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultCostCenterServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
CostCenterFluentHelper |
getAllCostCenter()
Fetch multiple
CostCenter
entities. |
CostCenterTextFluentHelper |
getAllCostCenterText()
Fetch multiple
CostCenterText entities. |
CostCenterByKeyFluentHelper |
getCostCenterByKey(String controllingArea,
String costCenter,
LocalDateTime validityEndDate)
Fetch a single
CostCenter
entity using key fields. |
CostCenterTextByKeyFluentHelper |
getCostCenterTextByKey(String costCenter,
String controllingArea,
String language,
LocalDateTime validityEndDate)
Fetch a single
CostCenterText entity using key fields. |
DefaultCostCenterService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultCostCenterService()
CostCenterService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultCostCenterService withServicePath(@Nonnull String servicePath)
CostCenterService
withServicePath
in interface CostCenterService
servicePath
- Service path that will override the default.@Nonnull public DefaultCostCenterServiceBatch batch()
batch
in interface BatchService<CostCenterServiceBatch>
@Nonnull public CostCenterFluentHelper getAllCostCenter()
CostCenterService
CostCenter
entities.getAllCostCenter
in interface CostCenterService
CostCenter
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 CostCenterByKeyFluentHelper getCostCenterByKey(String controllingArea, String costCenter, LocalDateTime validityEndDate)
CostCenterService
CostCenter
entity using key fields.getCostCenterByKey
in interface CostCenterService
controllingArea
- Uniquely identifies a controlling area.
Constraints: Not nullable, Maximum length: 4
costCenter
- A key that uniquely identifies a cost center.
Constraints: Not nullable, Maximum length: 10
validityEndDate
- Date indicating up to when an entry is valid.
Constraints: Not nullable, Precision: 0
CostCenter
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 CostCenterTextFluentHelper getAllCostCenterText()
CostCenterService
CostCenterText
entities.getAllCostCenterText
in interface CostCenterService
CostCenterText
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 CostCenterTextByKeyFluentHelper getCostCenterTextByKey(String costCenter, String controllingArea, String language, LocalDateTime validityEndDate)
CostCenterService
CostCenterText
entity using key fields.getCostCenterTextByKey
in interface CostCenterService
costCenter
- A key that uniquely identifies a cost center.
Constraints: Not nullable, Maximum length: 10
controllingArea
- Uniquely identifies a controlling area.
Constraints: Not nullable, Maximum length: 4
language
- The language key indicates
Constraints: Not nullable, Maximum length: 2
validityEndDate
- Date indicating up to when an entry is valid.
Constraints: Not nullable, Precision: 0
CostCenterText
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.