@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCostCenterTestService") public class DefaultCostCenterTestService extends Object implements CostCenterTestService
Cost Center Data Provider.
Reference: SAP API Business Hub
OData Service: | FCO_PI_COST_CENTER |
API Version: | 1 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultCostCenterTestService()
Creates a service using
CostCenterTestService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
CostCenterFluentHelper |
getAllCostCenter()
Fetch multiple
CostCenter
entities. |
CostCenterTextFluentHelper |
getAllCostCenterText()
Fetch multiple
CostCenterText entities. |
CostCenterByKeyFluentHelper |
getCostCenterByKey(String companyCode,
String costCenterID,
LocalDateTime validityEndDate)
Fetch a single
CostCenter
entity using key fields. |
CostCenterTextByKeyFluentHelper |
getCostCenterTextByKey(String companyCode,
String costCenterID,
LocalDateTime validityEndDate,
String language)
Fetch a single
CostCenterText entity using key fields. |
DefaultCostCenterTestService |
withServicePath(String servicePath)
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 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
- Company Code
Constraints: Not nullable, Maximum length: 4
costCenterID
- Cost Center
Constraints: Not nullable, Maximum length: 10
validityEndDate
- Valid To
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()
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
- Company Code
Constraints: Not nullable, Maximum length: 4
costCenterID
- Cost Center
Constraints: Not nullable, Maximum length: 10
validityEndDate
- Valid To
Constraints: Not nullable, Precision: 0
language
- Language Key
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.Copyright © 2019 SAP SE. All rights reserved.