I_EntProjElmntSalesDocument

DDL: I_ENTPROJELMNTSALESDOCUMENT Type: view_entity COMPOSITE

Enterprise Project Element Sales Order Document

I_EntProjElmntSalesDocument is a Composite CDS View that provides data about "Enterprise Project Element Sales Order Document" in SAP S/4HANA. It reads from 1 data source (R_EnterpriseProjectElement) and exposes 8 fields with key fields SalesDocument, ProjectElementUUID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
R_EnterpriseProjectElement projectelement from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_EnterpriseProject _EnterpriseProject _EnterpriseProject.ProjectUUID = projectelement.ProjectUUID
[0..1] I_SalesDocumentItem _SalesOrderDocItem _SalesOrderDocItem.WBSElement = projectelement.WBSElementInternalID

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Enterprise Project Element Sales Order Document view
Metadata.ignorePropagatedAnnotations true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument _SalesOrderDocItem SalesDocument SD Document
KEY ProjectElementUUID R_EnterpriseProjectElement ProjectElementUUID Obj Link Entity GUID
WBSElementInternalID WBSElementInternalID WBS Internal ID
ProjectUUID R_EnterpriseProjectElement ProjectUUID Project UUID
ProfitCenter ProfitCenter Profit Center
ControllingArea ControllingArea Controlling Area
ProjectCategory _EnterpriseProject ProjectCategory Proj. Category
_EnterpriseProject _EnterpriseProject

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view I_EntProjElmntSalesDocument.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.

CREATE VIEW I_EntProjElmntSalesDocument AS
SELECT
  _SalesOrderDocItem.SalesDocument AS SalesDocument,
  projectelement.ProjectElementUUID AS ProjectElementUUID,
  WBSElementInternalID,
  projectelement.ProjectUUID AS ProjectUUID,
  ProfitCenter,
  ControllingArea,
  _EnterpriseProject.ProjectCategory AS ProjectCategory
FROM R_EnterpriseProjectElement AS projectelement
LEFT OUTER JOIN I_EnterpriseProject AS _EnterpriseProject ON _EnterpriseProject.ProjectUUID = projectelement.ProjectUUID  -- association [1..1]
LEFT OUTER JOIN I_SalesDocumentItem AS _SalesOrderDocItem ON _SalesOrderDocItem.WBSElement = projectelement.WBSElementInternalID  -- association [0..1]
;