Class DefaultCostCenterTestService
- All Implemented Interfaces:
BatchService<CostCenterTestServiceBatch>,CostCenterTestService
This service enables you to read cost center master data. Please note that this service uses a data model where the cost center is defined per company code. This data model has been replaced with a data model where the cost center is defined per controlling area. With this change also a new service reflecting the new data model has been created and this service is deprecated. It is highly recommended to use the new service instead of this one..
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | FCO_PI_COST_CENTER |
| API Version: | 1 |
| Communication Scenario: | Employee Integration (SAP_COM_0001) |
| Scope Items: | Core HR with SAP SuccessFactors Employee Central (JB1) |
| Authentication Methods: | x509 |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.CostCenterTestService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingCostCenterTestService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.createCostCenter(CostCenter costCenter) Deprecated.Create a newCostCenterentity and save it to the S/4HANA system.createCostCenterText(CostCenterText costCenterText) Deprecated.Create a newCostCenterTextentity and save it to the S/4HANA system.deleteCostCenter(CostCenter costCenter) Deprecated.Deletes an existingCostCenterentity in the S/4HANA system.deleteCostCenterText(CostCenterText costCenterText) Deprecated.Deletes an existingCostCenterTextentity in the S/4HANA system.Deprecated.Fetch multipleCostCenterentities.Deprecated.Fetch multipleCostCenterTextentities.getCostCenterByKey(String companyCode, String costCenterID, LocalDateTime validityEndDate) Deprecated.Fetch a singleCostCenterentity using key fields.getCostCenterTextByKey(String companyCode, String costCenterID, LocalDateTime validityEndDate, String language) Deprecated.Fetch a singleCostCenterTextentity using key fields.updateCostCenter(CostCenter costCenter) Deprecated.Update an existingCostCenterentity and save it to the S/4HANA system.updateCostCenterText(CostCenterText costCenterText) Deprecated.Update an existingCostCenterTextentity and save it to the S/4HANA system.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.
-
Constructor Details
-
DefaultCostCenterTestService
public DefaultCostCenterTestService()Deprecated.Creates a service usingCostCenterTestService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:CostCenterTestServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceCostCenterTestService- 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<CostCenterTestServiceBatch>
-
getAllCostCenter
Deprecated.Description copied from interface:CostCenterTestServiceFetch multipleCostCenterentities.- Specified by:
getAllCostCenterin interfaceCostCenterTestService- 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 companyCode, String costCenterID, LocalDateTime validityEndDate) Deprecated.Description copied from interface:CostCenterTestServiceFetch a singleCostCenterentity using key fields.- Specified by:
getCostCenterByKeyin interfaceCostCenterTestService- Parameters:
companyCode- The company code is an organizational unit within financial accounting.Constraints: Not nullable, Maximum length: 4
costCenterID- 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
- 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.
-
createCostCenter
Deprecated.Description copied from interface:CostCenterTestServiceCreate a newCostCenterentity and save it to the S/4HANA system.- Specified by:
createCostCenterin interfaceCostCenterTestService- Parameters:
costCenter-CostCenterentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
CostCenterentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateCostCenter
Deprecated.Description copied from interface:CostCenterTestServiceUpdate an existingCostCenterentity and save it to the S/4HANA system.- Specified by:
updateCostCenterin interfaceCostCenterTestService- Parameters:
costCenter-CostCenterentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
CostCenterentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteCostCenter
Deprecated.Description copied from interface:CostCenterTestServiceDeletes an existingCostCenterentity in the S/4HANA system.- Specified by:
deleteCostCenterin interfaceCostCenterTestService- Parameters:
costCenter-CostCenterentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
CostCenterentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllCostCenterText
Deprecated.Description copied from interface:CostCenterTestServiceFetch multipleCostCenterTextentities.- Specified by:
getAllCostCenterTextin interfaceCostCenterTestService- 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 companyCode, String costCenterID, LocalDateTime validityEndDate, String language) Deprecated.Description copied from interface:CostCenterTestServiceFetch a singleCostCenterTextentity using key fields.- Specified by:
getCostCenterTextByKeyin interfaceCostCenterTestService- Parameters:
companyCode- The company code is an organizational unit within financial accounting.Constraints: Not nullable, Maximum length: 4
costCenterID- 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
language- SAP Language Key (2-letter code) for Unicode languages.Constraints: Not nullable, Maximum length: 2
- 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.
-
createCostCenterText
@Nonnull public CostCenterTextCreateFluentHelper createCostCenterText(@Nonnull CostCenterText costCenterText) Deprecated.Description copied from interface:CostCenterTestServiceCreate a newCostCenterTextentity and save it to the S/4HANA system.- Specified by:
createCostCenterTextin interfaceCostCenterTestService- Parameters:
costCenterText-CostCenterTextentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
CostCenterTextentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateCostCenterText
@Nonnull public CostCenterTextUpdateFluentHelper updateCostCenterText(@Nonnull CostCenterText costCenterText) Deprecated.Description copied from interface:CostCenterTestServiceUpdate an existingCostCenterTextentity and save it to the S/4HANA system.- Specified by:
updateCostCenterTextin interfaceCostCenterTestService- Parameters:
costCenterText-CostCenterTextentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
CostCenterTextentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteCostCenterText
@Nonnull public CostCenterTextDeleteFluentHelper deleteCostCenterText(@Nonnull CostCenterText costCenterText) Deprecated.Description copied from interface:CostCenterTestServiceDeletes an existingCostCenterTextentity in the S/4HANA system.- Specified by:
deleteCostCenterTextin interfaceCostCenterTestService- Parameters:
costCenterText-CostCenterTextentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
CostCenterTextentity. To perform execution, call theexecutemethod on the fluent helper object.
-