Interface CostCenterTestService
- All Superinterfaces:
BatchService<CostCenterTestServiceBatch>
- All Known Implementing Classes:
DefaultCostCenterTestService
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
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.If no other path was provided via thewithServicePath(String)method, this is the default service path used to access the endpoint. -
Method Summary
Modifier and TypeMethodDescriptioncreateCostCenter(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.Methods inherited from interface com.sap.cloud.sdk.datamodel.odata.helper.batch.BatchService
batch
-
Field Details
-
DEFAULT_SERVICE_PATH
Deprecated.If no other path was provided via thewithServicePath(String)method, this is the default service path used to access the endpoint.- See Also:
-
-
Method Details
-
withServicePath
Deprecated.Overrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
getAllCostCenter
Deprecated.Fetch multipleCostCenterentities.- 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 CostCenterByKeyFluentHelper getCostCenterByKey(String companyCode, String costCenterID, LocalDateTime validityEndDate) Deprecated.Fetch a singleCostCenterentity using key fields.- 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.Create a newCostCenterentity and save it to the S/4HANA system.- 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.Update an existingCostCenterentity and save it to the S/4HANA system.- 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.Deletes an existingCostCenterentity in the S/4HANA system.- 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.Fetch multipleCostCenterTextentities.- 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 CostCenterTextByKeyFluentHelper getCostCenterTextByKey(String companyCode, String costCenterID, LocalDateTime validityEndDate, String language) Deprecated.Fetch a singleCostCenterTextentity using key fields.- 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
language- SAP Language Key (2-letter code) for Unicode languages.Constraints: Not nullable, Maximum length: 2
validityEndDate- Date indicating up to when an entry is valid.Constraints: 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.
-
createCostCenterText
@Nonnull CostCenterTextCreateFluentHelper createCostCenterText(@Nonnull CostCenterText costCenterText) Deprecated.Create a newCostCenterTextentity and save it to the S/4HANA system.- 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 CostCenterTextUpdateFluentHelper updateCostCenterText(@Nonnull CostCenterText costCenterText) Deprecated.Update an existingCostCenterTextentity and save it to the S/4HANA system.- 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 CostCenterTextDeleteFluentHelper deleteCostCenterText(@Nonnull CostCenterText costCenterText) Deprecated.Deletes an existingCostCenterTextentity in the S/4HANA system.- 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.
-