Class DefaultProfitCenterService
- All Implemented Interfaces:
BatchService<ProfitCenterServiceBatch>,ProfitCenterService
This service enables you to read profit center master data in an API call. It is based on the OData protocol and can be consumed in SAP Fiori apps and other user interfaces. .
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | API_PROFITCENTER_SRV |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | SAP Analytics Cloud for Planning Integration(SAP_COM_0087), Public Sector API Integration(SAP_COM_0761) |
| Scope Items: | Import Connection setup with SAP Analytics Cloud(1YB), Government Budget Planning(6UC) |
| Authentication Methods: | x509 |
| Business Object: | Profit Center |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.ProfitCenterService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingProfitCenterService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.Deprecated.Fetch multiplePrftCtrCompanyCodeAssignmententities.Deprecated.Fetch multipleProfitCenterentities.Deprecated.Fetch multipleProfitCenterTextentities.getPrftCtrCompanyCodeAssignmentByKey(String controllingArea, String profitCenter, String companyCode) Deprecated.Fetch a singlePrftCtrCompanyCodeAssignmententity using key fields.getProfitCenterByKey(String controllingArea, String profitCenter, LocalDateTime validityEndDate) Deprecated.Fetch a singleProfitCenterentity using key fields.getProfitCenterTextByKey(String language, String controllingArea, String profitCenter, LocalDateTime validityEndDate) Deprecated.Fetch a singleProfitCenterTextentity using key fields.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.
-
Constructor Details
-
DefaultProfitCenterService
public DefaultProfitCenterService()Deprecated.Creates a service usingProfitCenterService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:ProfitCenterServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceProfitCenterService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Deprecated.- Specified by:
batchin interfaceBatchService<ProfitCenterServiceBatch>
-
getAllPrftCtrCompanyCodeAssignment
Deprecated.Description copied from interface:ProfitCenterServiceFetch multiplePrftCtrCompanyCodeAssignmententities.- Specified by:
getAllPrftCtrCompanyCodeAssignmentin interfaceProfitCenterService- Returns:
- A fluent helper to fetch multiple
PrftCtrCompanyCodeAssignmententities. 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.
-
getPrftCtrCompanyCodeAssignmentByKey
@Nonnull public PrftCtrCompanyCodeAssignmentByKeyFluentHelper getPrftCtrCompanyCodeAssignmentByKey(String controllingArea, String profitCenter, String companyCode) Deprecated.Description copied from interface:ProfitCenterServiceFetch a singlePrftCtrCompanyCodeAssignmententity using key fields.- Specified by:
getPrftCtrCompanyCodeAssignmentByKeyin interfaceProfitCenterService- Parameters:
controllingArea- Controlling AreaConstraints: Not nullable, Maximum length: 4
profitCenter- Profit CenterConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
PrftCtrCompanyCodeAssignmententity 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.
-
getAllProfitCenter
Deprecated.Description copied from interface:ProfitCenterServiceFetch multipleProfitCenterentities.- Specified by:
getAllProfitCenterin interfaceProfitCenterService- Returns:
- A fluent helper to fetch multiple
ProfitCenterentities. 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.
-
getProfitCenterByKey
@Nonnull public ProfitCenterByKeyFluentHelper getProfitCenterByKey(String controllingArea, String profitCenter, LocalDateTime validityEndDate) Deprecated.Description copied from interface:ProfitCenterServiceFetch a singleProfitCenterentity using key fields.- Specified by:
getProfitCenterByKeyin interfaceProfitCenterService- Parameters:
controllingArea- Controlling AreaConstraints: Not nullable, Maximum length: 4
profitCenter- Profit CenterConstraints: Not nullable, Maximum length: 10
validityEndDate- Valid To DateConstraints: Not nullable, Precision: 0
- Returns:
- A fluent helper to fetch a single
ProfitCenterentity 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.
-
getAllProfitCenterText
Deprecated.Description copied from interface:ProfitCenterServiceFetch multipleProfitCenterTextentities.- Specified by:
getAllProfitCenterTextin interfaceProfitCenterService- Returns:
- A fluent helper to fetch multiple
ProfitCenterTextentities. 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.
-
getProfitCenterTextByKey
@Nonnull public ProfitCenterTextByKeyFluentHelper getProfitCenterTextByKey(String language, String controllingArea, String profitCenter, LocalDateTime validityEndDate) Deprecated.Description copied from interface:ProfitCenterServiceFetch a singleProfitCenterTextentity using key fields.- Specified by:
getProfitCenterTextByKeyin interfaceProfitCenterService- Parameters:
language- Language KeyConstraints: Not nullable, Maximum length: 2
controllingArea- Controlling AreaConstraints: Not nullable, Maximum length: 4
profitCenter- Profit CenterConstraints: Not nullable, Maximum length: 10
validityEndDate- Valid To DateConstraints: Not nullable, Precision: 0
- Returns:
- A fluent helper to fetch a single
ProfitCenterTextentity 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.
-