@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCostRateService") public class DefaultCostRateService extends Object implements 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 API Business Hub
OData Service: | API_FCO_COST_RATE_SRV |
API Version: | 1 |
Communication Scenario: | Finance - Activity Type Integration (SAP_COM_0129) |
Scope Items: | Overhead Cost Accounting (J54) |
Authentication Methods: | Basic, x509 |
Business Object: | AccountingCostRate |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultCostRateService()
Creates a service using
CostRateService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultCostRateServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
ActualCostRateCreateFluentHelper |
createActualCostRate(ActualCostRate actualCostRate)
Create a new
ActualCostRate
entity and save it to the S/4HANA system. |
PlanCostRateCreateFluentHelper |
createPlanCostRate(PlanCostRate planCostRate)
Create a new
PlanCostRate
entity and save it to the S/4HANA system. |
ServiceCostRateCreateFluentHelper |
createServiceCostRate(ServiceCostRate serviceCostRate)
Create a new
ServiceCostRate
entity and save it to the S/4HANA system. |
ActualCostRateDeleteFluentHelper |
deleteActualCostRate(ActualCostRate actualCostRate)
Deletes an existing
ActualCostRate entity in the S/4HANA system. |
PlanCostRateDeleteFluentHelper |
deletePlanCostRate(PlanCostRate planCostRate)
Deletes an existing
PlanCostRate entity in the S/4HANA system. |
ServiceCostRateDeleteFluentHelper |
deleteServiceCostRate(ServiceCostRate serviceCostRate)
Deletes an existing
ServiceCostRate entity in the S/4HANA system. |
ActualCostRateByKeyFluentHelper |
getActualCostRateByKey(UUID accountingCostRateUUID)
Fetch a single
ActualCostRate
entity using key fields. |
ActualCostRateFluentHelper |
getAllActualCostRate()
Fetch multiple
ActualCostRate
entities. |
PlanCostRateFluentHelper |
getAllPlanCostRate()
Fetch multiple
PlanCostRate
entities. |
ServiceCostRateFluentHelper |
getAllServiceCostRate()
Fetch multiple
ServiceCostRate entities. |
PlanCostRateByKeyFluentHelper |
getPlanCostRateByKey(UUID accountingCostRateUUID)
Fetch a single
PlanCostRate
entity using key fields. |
ServiceCostRateByKeyFluentHelper |
getServiceCostRateByKey(UUID accountingCostRateUUID)
Fetch a single
ServiceCostRate entity using key fields. |
ActualCostRateUpdateFluentHelper |
updateActualCostRate(ActualCostRate actualCostRate)
Update an existing
ActualCostRate entity and save it to the S/4HANA system. |
PlanCostRateUpdateFluentHelper |
updatePlanCostRate(PlanCostRate planCostRate)
Update an existing
PlanCostRate
entity and save it to the S/4HANA system. |
ServiceCostRateUpdateFluentHelper |
updateServiceCostRate(ServiceCostRate serviceCostRate)
Update an existing
ServiceCostRate entity and save it to the S/4HANA system. |
DefaultCostRateService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultCostRateService()
CostRateService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultCostRateService withServicePath(@Nonnull String servicePath)
CostRateService
withServicePath
in interface CostRateService
servicePath
- Service path that will override the default.@Nonnull public DefaultCostRateServiceBatch batch()
batch
in interface BatchService<CostRateServiceBatch>
@Nonnull public ActualCostRateFluentHelper getAllActualCostRate()
CostRateService
ActualCostRate
entities.getAllActualCostRate
in interface CostRateService
ActualCostRate
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 ActualCostRateByKeyFluentHelper getActualCostRateByKey(UUID accountingCostRateUUID)
CostRateService
ActualCostRate
entity using key fields.getActualCostRateByKey
in interface CostRateService
accountingCostRateUUID
- Cost Rate UUID
Constraints: Not nullable
ActualCostRate
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 ActualCostRateCreateFluentHelper createActualCostRate(@Nonnull ActualCostRate actualCostRate)
CostRateService
ActualCostRate
entity and save it to the S/4HANA system.createActualCostRate
in interface CostRateService
actualCostRate
- ActualCostRate
entity object that will be created in the S/4HANA system.ActualCostRate
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ActualCostRateUpdateFluentHelper updateActualCostRate(@Nonnull ActualCostRate actualCostRate)
CostRateService
ActualCostRate
entity and save it to the S/4HANA system.updateActualCostRate
in interface CostRateService
actualCostRate
- ActualCostRate
entity object that will be updated in the S/4HANA system.ActualCostRate
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ActualCostRateDeleteFluentHelper deleteActualCostRate(@Nonnull ActualCostRate actualCostRate)
CostRateService
ActualCostRate
entity in the S/4HANA system.deleteActualCostRate
in interface CostRateService
actualCostRate
- ActualCostRate
entity object that will be deleted in the S/4HANA system.ActualCostRate
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PlanCostRateFluentHelper getAllPlanCostRate()
CostRateService
PlanCostRate
entities.getAllPlanCostRate
in interface CostRateService
PlanCostRate
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 PlanCostRateByKeyFluentHelper getPlanCostRateByKey(UUID accountingCostRateUUID)
CostRateService
PlanCostRate
entity using key fields.getPlanCostRateByKey
in interface CostRateService
accountingCostRateUUID
- Cost Rate UUID
Constraints: Not nullable
PlanCostRate
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 PlanCostRateCreateFluentHelper createPlanCostRate(@Nonnull PlanCostRate planCostRate)
CostRateService
PlanCostRate
entity and save it to the S/4HANA system.createPlanCostRate
in interface CostRateService
planCostRate
- PlanCostRate
entity
object that will be created in the S/4HANA system.PlanCostRate
entity. To
perform execution, call the
execute
method on the fluent helper object.@Nonnull public PlanCostRateUpdateFluentHelper updatePlanCostRate(@Nonnull PlanCostRate planCostRate)
CostRateService
PlanCostRate
entity and save it to the S/4HANA system.updatePlanCostRate
in interface CostRateService
planCostRate
- PlanCostRate
entity
object that will be updated in the S/4HANA system.PlanCostRate
entity. To
perform execution, call the
execute
method on the fluent helper object.@Nonnull public PlanCostRateDeleteFluentHelper deletePlanCostRate(@Nonnull PlanCostRate planCostRate)
CostRateService
PlanCostRate
entity in the S/4HANA system.deletePlanCostRate
in interface CostRateService
planCostRate
- PlanCostRate
entity
object that will be deleted in the S/4HANA system.PlanCostRate
entity. To
perform execution, call the
execute
method on the fluent helper object.@Nonnull public ServiceCostRateFluentHelper getAllServiceCostRate()
CostRateService
ServiceCostRate
entities.getAllServiceCostRate
in interface CostRateService
ServiceCostRate
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 ServiceCostRateByKeyFluentHelper getServiceCostRateByKey(UUID accountingCostRateUUID)
CostRateService
ServiceCostRate
entity using key fields.getServiceCostRateByKey
in interface CostRateService
accountingCostRateUUID
- Cost Rate UUID
Constraints: Not nullable
ServiceCostRate
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 ServiceCostRateCreateFluentHelper createServiceCostRate(@Nonnull ServiceCostRate serviceCostRate)
CostRateService
ServiceCostRate
entity and save it to the S/4HANA system.createServiceCostRate
in interface CostRateService
serviceCostRate
- ServiceCostRate
entity object that will be created in the S/4HANA system.ServiceCostRate
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ServiceCostRateUpdateFluentHelper updateServiceCostRate(@Nonnull ServiceCostRate serviceCostRate)
CostRateService
ServiceCostRate
entity and save it to the S/4HANA system.updateServiceCostRate
in interface CostRateService
serviceCostRate
- ServiceCostRate
entity object that will be updated in the S/4HANA system.ServiceCostRate
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ServiceCostRateDeleteFluentHelper deleteServiceCostRate(@Nonnull ServiceCostRate serviceCostRate)
CostRateService
ServiceCostRate
entity in the S/4HANA system.deleteServiceCostRate
in interface CostRateService
serviceCostRate
- ServiceCostRate
entity object that will be deleted in the S/4HANA system.ServiceCostRate
entity. To perform execution, call the
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.