Class DefaultCostRateService
- All Implemented Interfaces:
BatchService<CostRateServiceBatch>,CostRateService
This service contains plan cost rate, actual cost rate and service cost rate. For each type you can read a list of existing cost rates, create a new one, update or delete an existing one. During creation or update, the information is used to create a new cost rate or to update an existing one - including all necessary checks for restricted values and authorizations. Created or updated cost rates are included in the response. An existing cost rate that needs to be modified or deleted is identified by the mandatory parameter - AccountingCostRateUUID. If there are any issues, the system displays error messages in the response..
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | API_FCO_COST_RATE_SRV |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Finance - Activity Type Integration(SAP_COM_0129) |
| Scope Items: | Overhead Cost Accounting(J54) |
| Authentication Methods: | x509 |
| Business Object: | Accounting Cost Rate |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.CostRateService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingCostRateService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.createActualCostRate(ActualCostRate actualCostRate) Deprecated.Create a newActualCostRateentity and save it to the S/4HANA system.createPlanCostRate(PlanCostRate planCostRate) Deprecated.Create a newPlanCostRateentity and save it to the S/4HANA system.createServiceCostRate(ServiceCostRate serviceCostRate) Deprecated.Create a newServiceCostRateentity and save it to the S/4HANA system.deleteActualCostRate(ActualCostRate actualCostRate) Deprecated.Deletes an existingActualCostRateentity in the S/4HANA system.deletePlanCostRate(PlanCostRate planCostRate) Deprecated.Deletes an existingPlanCostRateentity in the S/4HANA system.deleteServiceCostRate(ServiceCostRate serviceCostRate) Deprecated.Deletes an existingServiceCostRateentity in the S/4HANA system.getActualCostRateByKey(UUID accountingCostRateUUID) Deprecated.Fetch a singleActualCostRateentity using key fields.Deprecated.Fetch multipleActualCostRateentities.Deprecated.Fetch multiplePlanCostRateentities.Deprecated.Fetch multipleServiceCostRateentities.getPlanCostRateByKey(UUID accountingCostRateUUID) Deprecated.Fetch a singlePlanCostRateentity using key fields.getServiceCostRateByKey(UUID accountingCostRateUUID) Deprecated.Fetch a singleServiceCostRateentity using key fields.updateActualCostRate(ActualCostRate actualCostRate) Deprecated.Update an existingActualCostRateentity and save it to the S/4HANA system.updatePlanCostRate(PlanCostRate planCostRate) Deprecated.Update an existingPlanCostRateentity and save it to the S/4HANA system.updateServiceCostRate(ServiceCostRate serviceCostRate) Deprecated.Update an existingServiceCostRateentity and save it to the S/4HANA system.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.
-
Constructor Details
-
DefaultCostRateService
public DefaultCostRateService()Deprecated.Creates a service usingCostRateService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:CostRateServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceCostRateService- 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<CostRateServiceBatch>
-
getAllActualCostRate
Deprecated.Description copied from interface:CostRateServiceFetch multipleActualCostRateentities.- Specified by:
getAllActualCostRatein interfaceCostRateService- Returns:
- A fluent helper to fetch multiple
ActualCostRateentities. 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.
-
getActualCostRateByKey
Deprecated.Description copied from interface:CostRateServiceFetch a singleActualCostRateentity using key fields.- Specified by:
getActualCostRateByKeyin interfaceCostRateService- Parameters:
accountingCostRateUUID- Cost Rate UUIDConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
ActualCostRateentity 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.
-
createActualCostRate
@Nonnull public ActualCostRateCreateFluentHelper createActualCostRate(@Nonnull ActualCostRate actualCostRate) Deprecated.Description copied from interface:CostRateServiceCreate a newActualCostRateentity and save it to the S/4HANA system.- Specified by:
createActualCostRatein interfaceCostRateService- Parameters:
actualCostRate-ActualCostRateentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
ActualCostRateentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateActualCostRate
@Nonnull public ActualCostRateUpdateFluentHelper updateActualCostRate(@Nonnull ActualCostRate actualCostRate) Deprecated.Description copied from interface:CostRateServiceUpdate an existingActualCostRateentity and save it to the S/4HANA system.- Specified by:
updateActualCostRatein interfaceCostRateService- Parameters:
actualCostRate-ActualCostRateentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
ActualCostRateentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteActualCostRate
@Nonnull public ActualCostRateDeleteFluentHelper deleteActualCostRate(@Nonnull ActualCostRate actualCostRate) Deprecated.Description copied from interface:CostRateServiceDeletes an existingActualCostRateentity in the S/4HANA system.- Specified by:
deleteActualCostRatein interfaceCostRateService- Parameters:
actualCostRate-ActualCostRateentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
ActualCostRateentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllPlanCostRate
Deprecated.Description copied from interface:CostRateServiceFetch multiplePlanCostRateentities.- Specified by:
getAllPlanCostRatein interfaceCostRateService- Returns:
- A fluent helper to fetch multiple
PlanCostRateentities. 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.
-
getPlanCostRateByKey
Deprecated.Description copied from interface:CostRateServiceFetch a singlePlanCostRateentity using key fields.- Specified by:
getPlanCostRateByKeyin interfaceCostRateService- Parameters:
accountingCostRateUUID- Cost Rate UUIDConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
PlanCostRateentity 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.
-
createPlanCostRate
@Nonnull public PlanCostRateCreateFluentHelper createPlanCostRate(@Nonnull PlanCostRate planCostRate) Deprecated.Description copied from interface:CostRateServiceCreate a newPlanCostRateentity and save it to the S/4HANA system.- Specified by:
createPlanCostRatein interfaceCostRateService- Parameters:
planCostRate-PlanCostRateentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
PlanCostRateentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updatePlanCostRate
@Nonnull public PlanCostRateUpdateFluentHelper updatePlanCostRate(@Nonnull PlanCostRate planCostRate) Deprecated.Description copied from interface:CostRateServiceUpdate an existingPlanCostRateentity and save it to the S/4HANA system.- Specified by:
updatePlanCostRatein interfaceCostRateService- Parameters:
planCostRate-PlanCostRateentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
PlanCostRateentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deletePlanCostRate
@Nonnull public PlanCostRateDeleteFluentHelper deletePlanCostRate(@Nonnull PlanCostRate planCostRate) Deprecated.Description copied from interface:CostRateServiceDeletes an existingPlanCostRateentity in the S/4HANA system.- Specified by:
deletePlanCostRatein interfaceCostRateService- Parameters:
planCostRate-PlanCostRateentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
PlanCostRateentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllServiceCostRate
Deprecated.Description copied from interface:CostRateServiceFetch multipleServiceCostRateentities.- Specified by:
getAllServiceCostRatein interfaceCostRateService- Returns:
- A fluent helper to fetch multiple
ServiceCostRateentities. 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.
-
getServiceCostRateByKey
@Nonnull public ServiceCostRateByKeyFluentHelper getServiceCostRateByKey(UUID accountingCostRateUUID) Deprecated.Description copied from interface:CostRateServiceFetch a singleServiceCostRateentity using key fields.- Specified by:
getServiceCostRateByKeyin interfaceCostRateService- Parameters:
accountingCostRateUUID- Cost Rate UUIDConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
ServiceCostRateentity 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.
-
createServiceCostRate
@Nonnull public ServiceCostRateCreateFluentHelper createServiceCostRate(@Nonnull ServiceCostRate serviceCostRate) Deprecated.Description copied from interface:CostRateServiceCreate a newServiceCostRateentity and save it to the S/4HANA system.- Specified by:
createServiceCostRatein interfaceCostRateService- Parameters:
serviceCostRate-ServiceCostRateentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
ServiceCostRateentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateServiceCostRate
@Nonnull public ServiceCostRateUpdateFluentHelper updateServiceCostRate(@Nonnull ServiceCostRate serviceCostRate) Deprecated.Description copied from interface:CostRateServiceUpdate an existingServiceCostRateentity and save it to the S/4HANA system.- Specified by:
updateServiceCostRatein interfaceCostRateService- Parameters:
serviceCostRate-ServiceCostRateentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
ServiceCostRateentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteServiceCostRate
@Nonnull public ServiceCostRateDeleteFluentHelper deleteServiceCostRate(@Nonnull ServiceCostRate serviceCostRate) Deprecated.Description copied from interface:CostRateServiceDeletes an existingServiceCostRateentity in the S/4HANA system.- Specified by:
deleteServiceCostRatein interfaceCostRateService- Parameters:
serviceCostRate-ServiceCostRateentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
ServiceCostRateentity. To perform execution, call theexecutemethod on the fluent helper object.
-