@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 CodeConstraints: Not nullable, Maximum length: 4
costCenterID
- Cost CenterConstraints: Not nullable, Maximum length: 10
validityEndDate
- Valid ToConstraints: 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 CodeConstraints: Not nullable, Maximum length: 4
costCenterID
- Cost CenterConstraints: Not nullable, Maximum length: 10
validityEndDate
- Valid ToConstraints: Not nullable, Precision: 0
language
- Language KeyConstraints: 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 © 2018 SAP SE. All rights reserved.