@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultProfitCenterService") public class DefaultProfitCenterService extends Object implements ProfitCenterService
This service enables you to display profit center master data to be consumed in SAP Fiori apps and on other user interfaces.
Reference: SAP API Business Hub
OData Service: | API_PROFITCENTER_SRV |
API Version: | 1 |
Communication Scenario: | SAP Business Objects Cloud for Planning Integration (SAP_COM_0087) |
Scope Items: | oData Integration with SAP Business Objects Cloud for Planning (1YB) |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultProfitCenterService()
Creates a service using
ProfitCenterService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
ProfitCenterFluentHelper |
getAllProfitCenter()
Fetch multiple
ProfitCenter entities. |
ProfitCenterTextFluentHelper |
getAllProfitCenterText()
Fetch multiple
ProfitCenterText entities. |
ProfitCenterByKeyFluentHelper |
getProfitCenterByKey(String controllingArea,
String profitCenter,
LocalDateTime validityEndDate)
Fetch a single
ProfitCenter entity using key fields. |
ProfitCenterTextByKeyFluentHelper |
getProfitCenterTextByKey(String language,
String controllingArea,
String profitCenter,
LocalDateTime validityEndDate)
Fetch a single
ProfitCenterText entity using key fields. |
DefaultProfitCenterService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultProfitCenterService()
ProfitCenterService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultProfitCenterService withServicePath(@Nonnull String servicePath)
ProfitCenterService
withServicePath
in interface ProfitCenterService
servicePath
- Service path that will override the default.@Nonnull public ProfitCenterFluentHelper getAllProfitCenter()
ProfitCenterService
ProfitCenter
entities.getAllProfitCenter
in interface ProfitCenterService
ProfitCenter
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 ProfitCenterByKeyFluentHelper getProfitCenterByKey(String controllingArea, String profitCenter, LocalDateTime validityEndDate)
ProfitCenterService
ProfitCenter
entity using key fields.getProfitCenterByKey
in interface ProfitCenterService
controllingArea
- Uniquely identifies a controlling area.Constraints: Not nullable, Maximum length: 4
profitCenter
- Key which together with the controlling area uniquely identifies a profit center.Constraints: Not nullable, Maximum length: 10
validityEndDate
- Date indicating up to when an entry is valid.Constraints: Not nullable, Precision: 0
ProfitCenter
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 ProfitCenterTextFluentHelper getAllProfitCenterText()
ProfitCenterService
ProfitCenterText
entities.getAllProfitCenterText
in interface ProfitCenterService
ProfitCenterText
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 ProfitCenterTextByKeyFluentHelper getProfitCenterTextByKey(String language, String controllingArea, String profitCenter, LocalDateTime validityEndDate)
ProfitCenterService
ProfitCenterText
entity using key fields.getProfitCenterTextByKey
in interface ProfitCenterService
language
- The language key indicatesConstraints: Not nullable, Maximum length: 2
controllingArea
- Uniquely identifies a controlling area.Constraints: Not nullable, Maximum length: 4
profitCenter
- Key which together with the controlling area uniquely identifies a profit center.Constraints: Not nullable, Maximum length: 10
validityEndDate
- Date indicating up to when an entry is valid.Constraints: Not nullable, Precision: 0
ProfitCenterText
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.