P_ProjSchedMilestoneVersAttrib

DDL: P_PROJSCHEDMILESTONEVERSATTRIB SQL: PMLSTVERSATTR Type: view COMPOSITE

P_ProjSchedMilestoneVersAttrib is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_ProjectMilestoneVersionData) and exposes 19 fields with key fields ProjectMilestone, Version. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_ProjectMilestoneVersionData ProjectMilestone from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_WBSElementVersionData _WBSElement _WBSElement.WBSElementInternalID = $projection.WBSElementInternalID and _WBSElement.Version = $projection.Version

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PMLSTVERSATTR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY ProjectMilestone ProjectMilestone Milestone no.
KEY Version Version XML Vers.
ProjectMilestoneInternalID ProjectMilestoneInternalID Sort pos.
MilestoneDescription MilestoneDescription Text
ScheduledBasicDate ScheduledBasicDate
ActualEndDate ActualEndDate Actual Finish
CompletionRateInPercent CompletionRateInPercent
WBSElementInternalID WBSElementInternalID WBS Internal ID
ProjectNetworkInternalID ProjectNetworkInternalID Plan No.f.Oper.
NetworkActivityInternalID NetworkActivityInternalID Counter
OrderCategory OrderCategory Order Category
MilestoneObjectID Milestone no.
ProjectObjectendasProjectObject
CreationDate CreationDate Time Stamp
CreatedByUser CreatedByUser User Name
LastChangeDate LastChangeDate Time Stamp
FixedBasicDate FixedBasicDate
AuthorizationGroup AuthorizationGroup AuthorizGroup
_WBSElement _WBSElement

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 P_ProjSchedMilestoneVersAttrib.
-- 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.
-- SQL view name: PMLSTVERSATTR

CREATE VIEW P_ProjSchedMilestoneVersAttrib AS
SELECT
  ProjectMilestone,
  Version,
  ProjectMilestoneInternalID,
  MilestoneDescription,
  ScheduledBasicDate,
  ActualEndDate,
  CompletionRateInPercent,
  WBSElementInternalID,
  ProjectNetworkInternalID,
  NetworkActivityInternalID,
  OrderCategory,
  cast(ProjectMilestone as j_objnr) AS MilestoneObjectID,
  case when WBSElementInternalID is not initial then ProjectMilestone._WBSElement._Project.ProjectObject else _ProjectNetworkVersion._Project.ProjectObject end as ProjectObject AS ProjectObjectendasProjectObject,
  CreationDate,
  CreatedByUser,
  LastChangeDate,
  FixedBasicDate,
  AuthorizationGroup
FROM I_ProjectMilestoneVersionData AS ProjectMilestone
LEFT OUTER JOIN I_WBSElementVersionData AS _WBSElement ON _WBSElement.WBSElementInternalID = WBSElementInternalID AND _WBSElement.Version = Version  -- association [0..1]
;