public interface 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) |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVICE_PATH
If no other path was provided via the
withServicePath(String) method, this is the default service path
used to access the endpoint. |
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. |
CommercialProjectService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
static final String DEFAULT_SERVICE_PATH
withServicePath(String)
method, this is the default service path
used to access the endpoint.@Nonnull CommercialProjectService withServicePath(@Nonnull String servicePath)
servicePath
- Service path that will override the default.@Nonnull ProjectCreateFluentHelper createProject(@Nonnull Project project)
Project
entity
and save it to the S/4HANA system.@Nonnull ProjectUpdateFluentHelper updateProject(@Nonnull Project project)
Project
entity and save it to the S/4HANA system.@Nonnull WorkPackageCreateFluentHelper createWorkPackage(@Nonnull WorkPackage workPackage)
WorkPackage
entity and save it to the S/4HANA system.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 WorkPackageUpdateFluentHelper updateWorkPackage(@Nonnull WorkPackage workPackage)
WorkPackage
entity and save it to the S/4HANA system.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 WorkPackageDeleteFluentHelper deleteWorkPackage(@Nonnull WorkPackage workPackage)
WorkPackage
entity in the S/4HANA system.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 WorkItemCreateFluentHelper createWorkItem(@Nonnull WorkItem workItem)
WorkItem
entity and save it to the S/4HANA system.@Nonnull WorkItemDeleteFluentHelper deleteWorkItem(@Nonnull WorkItem workItem)
WorkItem
entity in the S/4HANA system.@Nonnull DemandCreateFluentHelper createDemand(@Nonnull Demand demand)
Demand
entity
and save it to the S/4HANA system.@Nonnull DemandUpdateFluentHelper updateDemand(@Nonnull Demand demand)
Demand
entity and save it to the S/4HANA system.@Nonnull DemandDeleteFluentHelper deleteDemand(@Nonnull Demand demand)
Demand
entity in the S/4HANA system.Copyright © 2019 SAP SE. All rights reserved.