@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCostCenterTestService") @Deprecated public class DefaultCostCenterTestService extends Object implements 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 API Business Hub
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 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultCostCenterTestService()
Deprecated.
Creates a service using
CostCenterTestService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultCostCenterTestServiceBatch |
batch()
Deprecated.
Instantiate a new FluentHelper instance for a single OData batch request.
|
CostCenterCreateFluentHelper |
createCostCenter(CostCenter costCenter)
Deprecated.
Create a new
CostCenter
entity and save it to the S/4HANA system. |
CostCenterTextCreateFluentHelper |
createCostCenterText(CostCenterText costCenterText)
Deprecated.
Create a new
CostCenterText entity and save it to the S/4HANA system. |
CostCenterDeleteFluentHelper |
deleteCostCenter(CostCenter costCenter)
Deprecated.
Deletes an existing
CostCenter entity in the S/4HANA system. |
CostCenterTextDeleteFluentHelper |
deleteCostCenterText(CostCenterText costCenterText)
Deprecated.
Deletes an existing
CostCenterText entity in the S/4HANA system. |
CostCenterFluentHelper |
getAllCostCenter()
Deprecated.
Fetch multiple
CostCenter
entities. |
CostCenterTextFluentHelper |
getAllCostCenterText()
Deprecated.
Fetch multiple
CostCenterText entities. |
CostCenterByKeyFluentHelper |
getCostCenterByKey(String companyCode,
String costCenterID,
LocalDateTime validityEndDate)
Deprecated.
Fetch a single
CostCenter
entity using key fields. |
CostCenterTextByKeyFluentHelper |
getCostCenterTextByKey(String companyCode,
String costCenterID,
LocalDateTime validityEndDate,
String language)
Deprecated.
Fetch a single
CostCenterText entity using key fields. |
CostCenterUpdateFluentHelper |
updateCostCenter(CostCenter costCenter)
Deprecated.
Update an existing
CostCenter entity and save it to the S/4HANA system. |
CostCenterTextUpdateFluentHelper |
updateCostCenterText(CostCenterText costCenterText)
Deprecated.
Update an existing
CostCenterText entity and save it to the S/4HANA system. |
DefaultCostCenterTestService |
withServicePath(String servicePath)
Deprecated.
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultCostCenterTestService()
CostCenterTestService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultCostCenterTestService withServicePath(@Nonnull String servicePath)
CostCenterTestService
withServicePath
in interface CostCenterTestService
servicePath
- Service path that will override the default.@Nonnull public DefaultCostCenterTestServiceBatch batch()
batch
in interface BatchService<CostCenterTestServiceBatch>
@Nonnull public CostCenterFluentHelper getAllCostCenter()
CostCenterTestService
CostCenter
entities.getAllCostCenter
in interface CostCenterTestService
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 companyCode, String costCenterID, LocalDateTime validityEndDate)
CostCenterTestService
CostCenter
entity using key fields.getCostCenterByKey
in interface CostCenterTestService
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
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 CostCenterCreateFluentHelper createCostCenter(@Nonnull CostCenter costCenter)
CostCenterTestService
CostCenter
entity and save it to the S/4HANA system.createCostCenter
in interface CostCenterTestService
costCenter
- CostCenter
entity object that will be created in the S/4HANA system.CostCenter
entity.
To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CostCenterUpdateFluentHelper updateCostCenter(@Nonnull CostCenter costCenter)
CostCenterTestService
CostCenter
entity and save it to the S/4HANA system.updateCostCenter
in interface CostCenterTestService
costCenter
- CostCenter
entity object that will be updated in the S/4HANA system.CostCenter
entity.
To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CostCenterDeleteFluentHelper deleteCostCenter(@Nonnull CostCenter costCenter)
CostCenterTestService
CostCenter
entity in the S/4HANA system.deleteCostCenter
in interface CostCenterTestService
costCenter
- CostCenter
entity object that will be deleted in the S/4HANA system.CostCenter
entity.
To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CostCenterTextFluentHelper getAllCostCenterText()
CostCenterTestService
CostCenterText
entities.getAllCostCenterText
in interface CostCenterTestService
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 companyCode, String costCenterID, LocalDateTime validityEndDate, String language)
CostCenterTestService
CostCenterText
entity using key fields.getCostCenterTextByKey
in interface CostCenterTestService
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
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.@Nonnull public CostCenterTextCreateFluentHelper createCostCenterText(@Nonnull CostCenterText costCenterText)
CostCenterTestService
CostCenterText
entity and save it to the S/4HANA system.createCostCenterText
in interface CostCenterTestService
costCenterText
- CostCenterText
entity object that will be created in the S/4HANA system.CostCenterText
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CostCenterTextUpdateFluentHelper updateCostCenterText(@Nonnull CostCenterText costCenterText)
CostCenterTestService
CostCenterText
entity and save it to the S/4HANA system.updateCostCenterText
in interface CostCenterTestService
costCenterText
- CostCenterText
entity object that will be updated in the S/4HANA system.CostCenterText
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CostCenterTextDeleteFluentHelper deleteCostCenterText(@Nonnull CostCenterText costCenterText)
CostCenterTestService
CostCenterText
entity in the S/4HANA system.deleteCostCenterText
in interface CostCenterTestService
costCenterText
- CostCenterText
entity object that will be deleted in the S/4HANA system.CostCenterText
entity. To perform execution, call the
execute
method on the fluent helper object.Copyright © 2020 SAP SE. All rights reserved.