Ansicht
Dokumentation
/CPD/ADD_MP_ITEM - Assign a New Business Object to a Master Project
BAL Application Log Documentation BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
Functionality
You use this function module to assign a business object to a master project.
To assign a business object, you require the following information:
- The ID of the master project
- The ID of the business object you want to assign
- The object link of the business object (see Customizing for SAP Commercial Project Management under Master Data > Define Object Links and Logical Systems)
- The reporting attributes for the object type (see Customizing for SAP Commercial Project Management under Master Data > Make Settings for Master Projects > Assign ObjAttr. and RepAttr. Profiles)
Use the following fields to retrieve the ID of the following business object types:
Business Object Type | Table | Field for Business Object ID |
---|---|---|
PS Project Definition | PROJ | OBJNR |
CRM Opportunity | CRMD_OPPORT_H | GUID |
cProject Header | DPR_PROJECT | GUID |
Sales Contract | VBAK | VBELN |
Sales Inquiry | VBAK | VBELN |
Sales Header | VBAK | VBELN |
Sales Quotation | VBAK | VBELN |
This function module uses BOPF services to complete the processing.
The assignment of a business object to a master project also requires the creation of reporting attributes. Therefore, after the assignment of each business object, this function module also calls the function module Update Reporting Attribute Values (/CPD/UPDATE_MP_ITEM_REP_ATTR) to create the corresponding reporting attributes for the business object.
Example
Notes
- To assign business objects to a master project, you require necessary authorizations to change master projects.
- Object links for business objects are defined in Customizing for SAP Commercial Project Management under Master Data > Define Object Links and Logical Systems.
Further information
Parameters
ET_MESSAGESET_RETURN
IT_MOD_ITEM
IT_MP_ITEMS
I_MP_ID
Exceptions
Function Group
/SAPLMP_SERVICESSUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up Vendor Master (General Section)
This documentation is copyright by SAP AG.
Length: 3559 Date: 20240426 Time: 114054 sap01-206 ( 39 ms )