Class DefaultCostCenterService
java.lang.Object
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCostCenterService
- All Implemented Interfaces:
BatchService<CostCenterServiceBatch>,CostCenterService
@Named("com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCostCenterService")
@Deprecated
public class DefaultCostCenterService
extends Object
implements CostCenterService
Deprecated.
The service and all its related classes are deprecated. Please use the odata generator to generate the
VDM.
This service enables you to read cost center master data from SAP S/4HANA Cloud system. This service is based on the OData protocol and can be consumed in SAP Fiori apps and other user interfaces. .
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | API_COSTCENTER_SRV |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | SAP Analytics Cloud for Planning Integration(SAP_COM_0087), Public Sector API Integration(SAP_COM_0761) |
| Scope Items: | Import Connection setup with SAP Analytics Cloud(1YB), Government Budget Planning(6UC) |
| Authentication Methods: | x509 |
| Business Object: | Cost Center |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.CostCenterService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingCostCenterService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.Deprecated.Fetch multipleCostCenterentities.Deprecated.Fetch multipleCostCenterTextentities.getCostCenterByKey(String controllingArea, String costCenter, LocalDateTime validityEndDate) Deprecated.Fetch a singleCostCenterentity using key fields.getCostCenterTextByKey(String costCenter, String controllingArea, String language, LocalDateTime validityEndDate) Deprecated.Fetch a singleCostCenterTextentity using key fields.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.
-
Constructor Details
-
DefaultCostCenterService
public DefaultCostCenterService()Deprecated.Creates a service usingCostCenterService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:CostCenterServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceCostCenterService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Deprecated.- Specified by:
batchin interfaceBatchService<CostCenterServiceBatch>
-
getAllCostCenter
Deprecated.Description copied from interface:CostCenterServiceFetch multipleCostCenterentities.- Specified by:
getAllCostCenterin interfaceCostCenterService- Returns:
- A fluent helper to fetch multiple
CostCenterentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getCostCenterByKey
@Nonnull public CostCenterByKeyFluentHelper getCostCenterByKey(String controllingArea, String costCenter, LocalDateTime validityEndDate) Deprecated.Description copied from interface:CostCenterServiceFetch a singleCostCenterentity using key fields.- Specified by:
getCostCenterByKeyin interfaceCostCenterService- Parameters:
controllingArea- Controlling AreaConstraints: Not nullable, Maximum length: 4
costCenter- Cost CenterConstraints: Not nullable, Maximum length: 10
validityEndDate- Valid To DateConstraints: Not nullable, Precision: 0
- Returns:
- A fluent helper to fetch a single
CostCenterentity 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 theexecutemethod on the fluent helper object.
-
getAllCostCenterText
Deprecated.Description copied from interface:CostCenterServiceFetch multipleCostCenterTextentities.- Specified by:
getAllCostCenterTextin interfaceCostCenterService- Returns:
- A fluent helper to fetch multiple
CostCenterTextentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getCostCenterTextByKey
@Nonnull public CostCenterTextByKeyFluentHelper getCostCenterTextByKey(String costCenter, String controllingArea, String language, LocalDateTime validityEndDate) Deprecated.Description copied from interface:CostCenterServiceFetch a singleCostCenterTextentity using key fields.- Specified by:
getCostCenterTextByKeyin interfaceCostCenterService- Parameters:
costCenter- Cost CenterConstraints: Not nullable, Maximum length: 10
controllingArea- Controlling AreaConstraints: Not nullable, Maximum length: 4
language- Language KeyConstraints: Not nullable, Maximum length: 2
validityEndDate- Valid To DateConstraints: Not nullable, Precision: 0
- Returns:
- A fluent helper to fetch a single
CostCenterTextentity 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 theexecutemethod on the fluent helper object.
-