@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCommercialProjectService") public class DefaultCommercialProjectService extends Object implements CommercialProjectService
This service enables you to create and update commercial projects in a SAP S/4HANA Cloud system. For example, you can use this service to create a customer or internal project based on an opportunity or a quotation.
Reference: SAP API Business Hub
OData Service: | _CPD_SC_PROJ_ENGMT_CREATE_UPD_SRV |
API Version: | 1 |
Communication Scenario: | Commercial Project Integration (SAP_COM_0054) |
Scope Items: | Internal Project Management (1A8), Customer Project Management (J11) |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultCommercialProjectService()
Creates a service using
CommercialProjectService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DemandCreateFluentHelper |
createDemand(Demand demand)
Create a new
Demand entity
and save it to the S/4HANA system. |
ProjectCreateFluentHelper |
createProject(Project project)
Create a new
Project entity
and save it to the S/4HANA system. |
WorkItemCreateFluentHelper |
createWorkItem(WorkItem workItem)
Create a new
WorkItem
entity and save it to the S/4HANA system. |
WorkPackageCreateFluentHelper |
createWorkPackage(WorkPackage workPackage)
Create a new
WorkPackage entity and save it to the S/4HANA system. |
DemandDeleteFluentHelper |
deleteDemand(Demand demand)
Deletes an existing
Demand
entity in the S/4HANA system. |
WorkItemDeleteFluentHelper |
deleteWorkItem(WorkItem workItem)
Deletes an existing
WorkItem entity in the S/4HANA system. |
WorkPackageDeleteFluentHelper |
deleteWorkPackage(WorkPackage workPackage)
Deletes an existing
WorkPackage entity in the S/4HANA system. |
DemandUpdateFluentHelper |
updateDemand(Demand demand)
Update an existing
Demand
entity and save it to the S/4HANA system. |
ProjectUpdateFluentHelper |
updateProject(Project project)
Update an existing
Project
entity and save it to the S/4HANA system. |
WorkPackageUpdateFluentHelper |
updateWorkPackage(WorkPackage workPackage)
Update an existing
WorkPackage entity and save it to the S/4HANA system. |
DefaultCommercialProjectService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultCommercialProjectService()
CommercialProjectService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultCommercialProjectService withServicePath(@Nonnull String servicePath)
CommercialProjectService
withServicePath
in interface CommercialProjectService
servicePath
- Service path that will override the default.@Nonnull public ProjectCreateFluentHelper createProject(@Nonnull Project project)
CommercialProjectService
Project
entity
and save it to the S/4HANA system.createProject
in interface CommercialProjectService
project
- Project
entity
object that will be created in the S/4HANA system.Project
entity. To
perform execution, call the
execute
method on the fluent helper object.@Nonnull public ProjectUpdateFluentHelper updateProject(@Nonnull Project project)
CommercialProjectService
Project
entity and save it to the S/4HANA system.updateProject
in interface CommercialProjectService
project
- Project
entity
object that will be updated in the S/4HANA system.Project
entity. To
perform execution, call the
execute
method on the fluent helper object.@Nonnull public WorkPackageCreateFluentHelper createWorkPackage(@Nonnull WorkPackage workPackage)
CommercialProjectService
WorkPackage
entity and save it to the S/4HANA system.createWorkPackage
in interface CommercialProjectService
workPackage
- WorkPackage
entity object that will be created in the S/4HANA system.WorkPackage
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public WorkPackageUpdateFluentHelper updateWorkPackage(@Nonnull WorkPackage workPackage)
CommercialProjectService
WorkPackage
entity and save it to the S/4HANA system.updateWorkPackage
in interface CommercialProjectService
workPackage
- WorkPackage
entity object that will be updated in the S/4HANA system.WorkPackage
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public WorkPackageDeleteFluentHelper deleteWorkPackage(@Nonnull WorkPackage workPackage)
CommercialProjectService
WorkPackage
entity in the S/4HANA system.deleteWorkPackage
in interface CommercialProjectService
workPackage
- WorkPackage
entity object that will be deleted in the S/4HANA system.WorkPackage
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public WorkItemCreateFluentHelper createWorkItem(@Nonnull WorkItem workItem)
CommercialProjectService
WorkItem
entity and save it to the S/4HANA system.createWorkItem
in interface CommercialProjectService
workItem
- WorkItem
entity
object that will be created in the S/4HANA system.WorkItem
entity.
To perform execution, call the
execute
method on the fluent helper object.@Nonnull public WorkItemDeleteFluentHelper deleteWorkItem(@Nonnull WorkItem workItem)
CommercialProjectService
WorkItem
entity in the S/4HANA system.deleteWorkItem
in interface CommercialProjectService
workItem
- WorkItem
entity
object that will be deleted in the S/4HANA system.WorkItem
entity.
To perform execution, call the
execute
method on the fluent helper object.@Nonnull public DemandCreateFluentHelper createDemand(@Nonnull Demand demand)
CommercialProjectService
Demand
entity
and save it to the S/4HANA system.createDemand
in interface CommercialProjectService
demand
- Demand
entity
object that will be created in the S/4HANA system.Demand
entity. To
perform execution, call the
execute
method on the fluent helper object.@Nonnull public DemandUpdateFluentHelper updateDemand(@Nonnull Demand demand)
CommercialProjectService
Demand
entity and save it to the S/4HANA system.updateDemand
in interface CommercialProjectService
demand
- Demand
entity
object that will be updated in the S/4HANA system.Demand
entity. To
perform execution, call the
execute
method on the fluent helper object.@Nonnull public DemandDeleteFluentHelper deleteDemand(@Nonnull Demand demand)
CommercialProjectService
Demand
entity in the S/4HANA system.deleteDemand
in interface CommercialProjectService
demand
- Demand
entity
object that will be deleted in the S/4HANA system.Demand
entity. To
perform execution, call the
execute
method on the fluent helper object.Copyright © 2019 SAP SE. All rights reserved.