@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 in an external system.
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 - Project-Based Services (1A8), Customer Project Management - Project-Based Services (J11) |
Authentication Methods: | Basic, x509 |
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 |
---|---|
DefaultCommercialProjectServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
CustProjSlsOrdCreateFluentHelper |
createCustProjSlsOrd(CustProjSlsOrd custProjSlsOrd)
Create a new
CustProjSlsOrd entity and save it to the S/4HANA system. |
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. |
CustProjSlsOrdFluentHelper |
getAllCustProjSlsOrd()
Fetch multiple
CustProjSlsOrd entities. |
CustProjSlsOrdItemFluentHelper |
getAllCustProjSlsOrdItem()
Fetch multiple
CustProjSlsOrdItem entities. |
CustProjSlsOrdItemWorkPckgFluentHelper |
getAllCustProjSlsOrdItemWorkPckg()
Fetch multiple
CustProjSlsOrdItemWorkPckg entities. |
CustProjSlsOrdItmBillgPlnItmFluentHelper |
getAllCustProjSlsOrdItmBillgPlnItm()
Fetch multiple
CustProjSlsOrdItmBillgPlnItm entities. |
DemandFluentHelper |
getAllDemand()
Fetch multiple
Demand
entities. |
ProjectFluentHelper |
getAllProject()
Fetch multiple
Project
entities. |
WorkItemFluentHelper |
getAllWorkItem()
Fetch multiple
WorkItem
entities. |
WorkPackageFluentHelper |
getAllWorkPackage()
Fetch multiple
WorkPackage entities. |
CustProjSlsOrdByKeyFluentHelper |
getCustProjSlsOrdByKey(String customerProject)
Fetch a single
CustProjSlsOrd entity using key fields. |
CustProjSlsOrdItemByKeyFluentHelper |
getCustProjSlsOrdItemByKey(String customerProject,
String salesOrderItem)
Fetch a single
CustProjSlsOrdItem entity using key fields. |
CustProjSlsOrdItemWorkPckgByKeyFluentHelper |
getCustProjSlsOrdItemWorkPckgByKey(String customerProject,
String salesOrderItem,
String workPackage)
Fetch a single
CustProjSlsOrdItemWorkPckg entity using key fields. |
CustProjSlsOrdItmBillgPlnItmByKeyFluentHelper |
getCustProjSlsOrdItmBillgPlnItmByKey(String customerProject,
String salesOrderItem,
String billingPlanItem)
Fetch a single
CustProjSlsOrdItmBillgPlnItm entity using key fields. |
DemandByKeyFluentHelper |
getDemandByKey(String projectID,
String workPackageID,
String workPackageName,
String resType,
String resourceId,
String workitem,
String delvryServOrg)
Fetch a single
Demand entity
using key fields. |
ProjectByKeyFluentHelper |
getProjectByKey(String projectID)
Fetch a single
Project
entity using key fields. |
WorkItemByKeyFluentHelper |
getWorkItemByKey(String projectID,
String workitem,
String workPackageID,
String workPackageName)
Fetch a single
WorkItem
entity using key fields. |
WorkPackageByKeyFluentHelper |
getWorkPackageByKey(String projectID,
String workPackageID,
String workPackageName)
Fetch a single
WorkPackage entity using key fields. |
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. |
WorkItemUpdateFluentHelper |
updateWorkItem(WorkItem workItem)
Update an existing
WorkItem 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 DefaultCommercialProjectServiceBatch batch()
batch
in interface BatchService<CommercialProjectServiceBatch>
@Nonnull public CustProjSlsOrdFluentHelper getAllCustProjSlsOrd()
CommercialProjectService
CustProjSlsOrd
entities.getAllCustProjSlsOrd
in interface CommercialProjectService
CustProjSlsOrd
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 CustProjSlsOrdByKeyFluentHelper getCustProjSlsOrdByKey(String customerProject)
CommercialProjectService
CustProjSlsOrd
entity using key fields.getCustProjSlsOrdByKey
in interface CommercialProjectService
customerProject
- Identifies a master project.
Constraints: Not nullable, Maximum length: 40
CustProjSlsOrd
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 CustProjSlsOrdCreateFluentHelper createCustProjSlsOrd(@Nonnull CustProjSlsOrd custProjSlsOrd)
CommercialProjectService
CustProjSlsOrd
entity and save it to the S/4HANA system.createCustProjSlsOrd
in interface CommercialProjectService
custProjSlsOrd
- CustProjSlsOrd
entity object that will be created in the S/4HANA system.CustProjSlsOrd
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustProjSlsOrdItemFluentHelper getAllCustProjSlsOrdItem()
CommercialProjectService
CustProjSlsOrdItem
entities.getAllCustProjSlsOrdItem
in interface CommercialProjectService
CustProjSlsOrdItem
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 CustProjSlsOrdItemByKeyFluentHelper getCustProjSlsOrdItemByKey(String customerProject, String salesOrderItem)
CommercialProjectService
CustProjSlsOrdItem
entity using key fields.getCustProjSlsOrdItemByKey
in interface CommercialProjectService
customerProject
- Identifies a master project.
Constraints: Not nullable, Maximum length: 40
salesOrderItem
- Sales Order Item
Constraints: Not nullable, Maximum length: 6
CustProjSlsOrdItem
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 CustProjSlsOrdItemWorkPckgFluentHelper getAllCustProjSlsOrdItemWorkPckg()
CommercialProjectService
CustProjSlsOrdItemWorkPckg
entities.getAllCustProjSlsOrdItemWorkPckg
in interface CommercialProjectService
CustProjSlsOrdItemWorkPckg
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 CustProjSlsOrdItemWorkPckgByKeyFluentHelper getCustProjSlsOrdItemWorkPckgByKey(String customerProject, String salesOrderItem, String workPackage)
CommercialProjectService
CustProjSlsOrdItemWorkPckg
entity using key fields.getCustProjSlsOrdItemWorkPckgByKey
in interface CommercialProjectService
customerProject
- Identifies a master project.
Constraints: Not nullable, Maximum length: 40
salesOrderItem
- Sales Order Item
Constraints: Not nullable, Maximum length: 6
workPackage
- Plan Item
Constraints: Not nullable, Maximum length: 50
CustProjSlsOrdItemWorkPckg
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 CustProjSlsOrdItmBillgPlnItmFluentHelper getAllCustProjSlsOrdItmBillgPlnItm()
CommercialProjectService
CustProjSlsOrdItmBillgPlnItm
entities.getAllCustProjSlsOrdItmBillgPlnItm
in interface CommercialProjectService
CustProjSlsOrdItmBillgPlnItm
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 CustProjSlsOrdItmBillgPlnItmByKeyFluentHelper getCustProjSlsOrdItmBillgPlnItmByKey(String customerProject, String salesOrderItem, String billingPlanItem)
CommercialProjectService
CustProjSlsOrdItmBillgPlnItm
entity using key fields.getCustProjSlsOrdItmBillgPlnItmByKey
in interface CommercialProjectService
customerProject
- Identifies a master project.
Constraints: Not nullable, Maximum length: 40
salesOrderItem
- Sales Order Item
Constraints: Not nullable, Maximum length: 6
billingPlanItem
- Item for billing plan/invoice plan/payment cards
Constraints: Not nullable, Maximum length: 6
CustProjSlsOrdItmBillgPlnItm
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 ProjectFluentHelper getAllProject()
CommercialProjectService
Project
entities.getAllProject
in interface CommercialProjectService
Project
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 ProjectByKeyFluentHelper getProjectByKey(String projectID)
CommercialProjectService
Project
entity using key fields.getProjectByKey
in interface CommercialProjectService
projectID
- Identifies a master project.
Constraints: Not nullable, Maximum length: 40
Project
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 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 WorkPackageFluentHelper getAllWorkPackage()
CommercialProjectService
WorkPackage
entities.getAllWorkPackage
in interface CommercialProjectService
WorkPackage
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 WorkPackageByKeyFluentHelper getWorkPackageByKey(String projectID, String workPackageID, String workPackageName)
CommercialProjectService
WorkPackage
entity using key fields.getWorkPackageByKey
in interface CommercialProjectService
projectID
- Identifies a master project.
Constraints: Not nullable, Maximum length: 40
workPackageID
- Plan Item
Constraints: Not nullable, Maximum length: 50
workPackageName
- Plan Item Description
Constraints: Not nullable, Maximum length: 60
WorkPackage
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 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 WorkItemFluentHelper getAllWorkItem()
CommercialProjectService
WorkItem
entities.getAllWorkItem
in interface CommercialProjectService
WorkItem
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 WorkItemByKeyFluentHelper getWorkItemByKey(String projectID, String workitem, String workPackageID, String workPackageName)
CommercialProjectService
WorkItem
entity using key fields.getWorkItemByKey
in interface CommercialProjectService
projectID
- Identifies a master project.
Constraints: Not nullable, Maximum length: 40
workitem
- Work Item ID
Constraints: Not nullable, Maximum length: 10
workPackageID
- Plan Item
Constraints: Not nullable, Maximum length: 50
workPackageName
- Plan Item Description
Constraints: Not nullable, Maximum length: 60
WorkItem
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 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 WorkItemUpdateFluentHelper updateWorkItem(@Nonnull WorkItem workItem)
CommercialProjectService
WorkItem
entity and save it to the S/4HANA system.updateWorkItem
in interface CommercialProjectService
workItem
- WorkItem
entity
object that will be updated 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 DemandFluentHelper getAllDemand()
CommercialProjectService
Demand
entities.getAllDemand
in interface CommercialProjectService
Demand
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 DemandByKeyFluentHelper getDemandByKey(String projectID, String workPackageID, String workPackageName, String resType, String resourceId, String workitem, String delvryServOrg)
CommercialProjectService
Demand
entity
using key fields.getDemandByKey
in interface CommercialProjectService
projectID
- Identifies a master project.
Constraints: Not nullable, Maximum length: 40
workPackageID
- Plan Item
Constraints: Not nullable, Maximum length: 50
workPackageName
- Plan Item Description
Constraints: Not nullable, Maximum length: 60
resType
- Used to uniquely identify the resource type.
Constraints: Not nullable, Maximum length: 4
resourceId
- Used to uniquely identify a resource.
Constraints: Not nullable, Maximum length: 40
workitem
- Work Item ID
Constraints: Not nullable, Maximum length: 10
delvryServOrg
- This field links master project data with the company code and plant.
Constraints: Not nullable, Maximum length: 5
Demand
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 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.