P_MPStructureElement
Master Project Structure Element
P_MPStructureElement is a Composite CDS View that provides data about "Master Project Structure Element" in SAP S/4HANA. It reads from 4 data sources (I_MasterProjectItemList, I_SDItemOrganization, I_SDItemOrganization, I_MstrProjStrctrElmntWBC) and exposes 29 fields with key field MasterProject. Part of development package VDM_CPM_WS.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_MasterProjectItemList | MPItem | union |
| I_SDItemOrganization | SalesOrg | left_outer |
| I_SDItemOrganization | SDItem | inner |
| I_MstrProjStrctrElmntWBC | StructureElement1 | from |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMPSTRELM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MasterProject | I_MstrProjStrctrElmntWBC | MasterProject | |
| MasterProjectUUID | I_MstrProjStrctrElmntWBC | MasterProjectUUID | ||
| MasterProjectName | I_MstrProjStrctrElmntWBC | MasterProjectName | ||
| MasterProjectType | I_MstrProjStrctrElmntWBC | MasterProjectType | ||
| MasterProjectIsConfidential | I_MstrProjStrctrElmntWBC | MasterProjectIsConfidential | ||
| MasterProjectOrganization | I_MstrProjStrctrElmntWBC | MasterProjectOrganization | ||
| WBSElementIsBillingElement | I_MstrProjStrctrElmntWBC | WBSElementIsBillingElement | ||
| UserIsInvolved | I_MstrProjStrctrElmntWBC | UserIsInvolved | ||
| ControllingObjectDescription | I_MstrProjStrctrElmntWBC | ControllingObjectDescription | ||
| ControllingObject | ||||
| ControllingObjectExternalID | ||||
| ControllingObjectType | ||||
| SalesDocument | I_SDItemOrganization | SalesDocument | ||
| SalesDocumentItem | I_SDItemOrganization | SalesDocumentItem | ||
| MasterProject | ||||
| MasterProjectUUID | I_MasterProjectItemList | MasterProjectUUID | ||
| MasterProjectName | I_MasterProjectItemList | MasterProjectName | ||
| MasterProjectType | I_MasterProjectItemList | MasterProjectType | ||
| MasterProjectIsConfidential | I_MasterProjectItemList | MasterProjectIsConfidential | ||
| MasterProjectOrganization | I_MasterProjectItemList | MasterProjectOrganization | ||
| WBSElementIsBillingElement | ||||
| UserIsInvolved | I_MasterProjectItemList | UserIsInvolved | ||
| ControllingObjectDescription | I_SDItemOrganization | SalesDocumentItemText | ||
| ControllingObject | ||||
| ControllingObjectExternalID | ||||
| ControllingObjectType | I_MasterProjectItemList | MasterProjectItemObjectType | ||
| SalesDocument | I_SDItemOrganization | SalesDocument | ||
| SalesDocumentItem | I_SDItemOrganization | SalesDocumentItem | ||
| SDDocumentCategory | I_SDItemOrganization | SDDocumentCategory |
@AbapCatalog.sqlViewName: 'PMPSTRELM'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@VDM.private:true
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_MPStructureElement as
select from I_MstrProjStrctrElmntWBC as StructureElement1
left outer join I_SDItemOrganization as SalesOrg on StructureElement1.ObjectInternalID = SalesOrg.WBSElement
{
key StructureElement1.MasterProject,
StructureElement1.MasterProjectUUID,
StructureElement1.MasterProjectName,
StructureElement1.MasterProjectType,
StructureElement1.MasterProjectIsConfidential,
StructureElement1.MasterProjectOrganization,
StructureElement1.WBSElementIsBillingElement,
StructureElement1.UserIsInvolved,
// SalesOrg.SalesDocumentItemText as ControllingObjectDescription,
// CONCAT(CONCAT(SalesOrg.SalesDocument, '-'), SalesOrg.SalesDocumentItem) as ControllingObject,
// CONCAT(CONCAT(SalesOrg.SalesDocument, '-'), SalesOrg.SalesDocumentItem) as ControllingObjectExternalID,
// cast('SOI' as /cpd/pws_ws_mp_rel_obj) as ControllingObjectType,
StructureElement1.ControllingObjectDescription,
cast(StructureElement1.ControllingObject as abap.char(34)) as ControllingObject,
cast(StructureElement1.ControllingObjectExternalID as abap.char(34)) as ControllingObjectExternalID,
cast(StructureElement1.ControllingObjectType as /cpd/pws_ws_mp_rel_obj) as ControllingObjectType,
SalesOrg.SalesDocument,
SalesOrg.SalesDocumentItem,
SalesOrg.SDDocumentCategory
}
where
SalesOrg.SalesDocument is not null
union select from I_MasterProjectItemList as MPItem
inner join I_SDItemOrganization as SDItem on MPItem.MasterProjectItem = SDItem.SalesDocument
{
key MPItem.MasterProject,
MPItem.MasterProjectUUID,
MPItem.MasterProjectName,
MPItem.MasterProjectType,
MPItem.MasterProjectIsConfidential,
MPItem.MasterProjectOrganization,
cast('' as ps_fakkz preserving type ) as WBSElementIsBillingElement,
MPItem.UserIsInvolved,
SDItem.SalesDocumentItemText as ControllingObjectDescription,
cast(SDItem.SalesDocument as abap.char(34)) as ControllingObject,
cast(SDItem.SalesDocument as abap.char(34)) as ControllingObjectExternalID,
MPItem.MasterProjectItemObjectType as ControllingObjectType,
SDItem.SalesDocument,
SDItem.SalesDocumentItem,
SDItem.SDDocumentCategory
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA