N_ChangeRecordObjPgPurOrd

DDL: N_CHANGERECORDOBJPGPURORD SQL: NCHGRECREFPPU Type: view Package: VDM_PLMB_CR

Change Record Reference Object Page Pur Ord

N_ChangeRecordObjPgPurOrd is a CDS View that provides data about "Change Record Reference Object Page Pur Ord" in SAP S/4HANA. It reads from 2 data sources (I_PurchaseOrder, I_ChgRecdRefPurOrdBsc) and exposes 29 fields with key field ChangeRecordReferenceUUID. It has 9 associations to related views. Part of development package VDM_PLMB_CR.

Data Sources (2)

SourceAliasJoin Type
I_PurchaseOrder PurOrder left_outer
I_ChgRecdRefPurOrdBsc reference_puo from

Associations (9)

CardinalityTargetAliasCondition
[1..1] C_ChangeRecordObjPg _ChangeRecordObjPg $projection.ChangeRecordUUID = _ChangeRecordObjPg.ChangeRecordUUID
[1..1] I_PurchaseOrder _PurchaseOrderVH $projection.PurchaseOrder = _PurchaseOrderVH.PurchaseOrder
[1..*] I_PurchasingDocumentTypeText _PurchaseOrderTypeText $projection.PurchaseOrderType = _PurchaseOrderTypeText.PurchasingDocumentType and _PurchaseOrderTypeText.PurchasingDocumentCategory = 'F'
[0..1] I_Plant _Plant $projection.SupplyingPlant = _Plant.Plant
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[0..1] I_PurchasingGroup _PurchasingGroup $projection.PurchasingGroup = _PurchasingGroup.PurchasingGroup
[0..1] I_PurchaseContract _PurchaseContract $projection.PurchaseContract = _PurchaseContract.PurchaseContract
[1..1] C_ChangeRecordItemRelPurVH _ChangeRecordItemRelVH $projection.ChangeRecordItemRelevance = _ChangeRecordItemRelVH.ChangeRecordItemRelevance and $projection.ChangeRecordType = _ChangeRecordItemRelVH.ChangeRecordType and ( $projection.ChangeRecordReferenceType = _ChangeRecordItemRelVH.ChangeRecordReferenceType or _ChangeRecordItemRelVH.ChangeRecordReferenceType = ' ' )

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName NCHGRECREFPPU view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Change Record Reference Object Page Pur Ord view
AbapCatalog.preserveKey true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #NOT_REQUIRED view
UI.headerInfo.typeName Purchase Order view
UI.headerInfo.typeNamePlural Purchase Orders view
Search.searchable true view
VDM.auxiliaryEntity.for.entity C_ChangeRecordObjPgPurOrd view

Fields (29)

KeyFieldSource TableSource FieldDescription
KEY ChangeRecordReferenceUUID ChangeRecordReferenceUUID UUID
PurchaseOrder I_PurchaseOrder PurchaseOrder Purchasing Document
PurchaseOrderType _PurchaseOrderVH PurchaseOrderType PO Type
Supplier _PurchaseOrderVH Supplier Supplier
SupplyingPlant _PurchaseOrderVH SupplyingPlant Supplying Plant
PurchaseOrderDate _PurchaseOrderVH PurchaseOrderDate PO Date
PurchaseContract _PurchaseOrderVH PurchaseContract Purchasing Doc.
PurchasingGroup _PurchaseOrderVH PurchasingGroup Purchasing Group
PurchasingOrganization _PurchaseOrderVH PurchasingOrganization Purchasing Organization
ChangeRecordType _ChangeRecordObjPg ChangeRecordType Record Type
ChangeRecordUUID I_ChgRecdRefPurOrdBsc ChangeRecordUUID NodeID
ChangeRecordReferenceType I_ChgRecdRefPurOrdBsc ChangeRecordReferenceType Object Type
ParentChangeRecordRefUUID I_ChgRecdRefPurOrdBsc ParentChangeRecordRefUUID Node ID
ChangeRecordItemRelevance I_ChgRecdRefPurOrdBsc ChangeRecordItemRelevance Relevance
ChangeRecordReference I_ChgRecdRefPurOrdBsc ChangeRecordReference Ref. Object ID
CreatedByUser I_ChgRecdRefPurOrdBsc CreatedByUser User Name
CreationDateTime I_ChgRecdRefPurOrdBsc CreationDateTime Timestamp
CreationDate
LastChangedByUser LastChangedByUser User Name
LastChangeDateTime I_ChgRecdRefPurOrdBsc LastChangeDateTime Timestamp
LastChangeDate
_PurchaseOrderTypeText _PurchaseOrderTypeText
_ChangeRecordItemRelVH _ChangeRecordItemRelVH
_PurchaseOrderVH _PurchaseOrderVH
_Plant _Plant
_Supplier _Supplier
_PurchasingOrganization _PurchasingOrganization
_PurchasingGroup _PurchasingGroup
_PurchaseContract _PurchaseContract

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 N_ChangeRecordObjPgPurOrd.
-- 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: NCHGRECREFPPU

CREATE VIEW N_ChangeRecordObjPgPurOrd AS
SELECT
  ChangeRecordReferenceUUID,
  PurOrder.PurchaseOrder AS PurchaseOrder,
  _PurchaseOrderVH.PurchaseOrderType AS PurchaseOrderType,
  _PurchaseOrderVH.Supplier AS Supplier,
  _PurchaseOrderVH.SupplyingPlant AS SupplyingPlant,
  _PurchaseOrderVH.PurchaseOrderDate AS PurchaseOrderDate,
  _PurchaseOrderVH.PurchaseContract AS PurchaseContract,
  _PurchaseOrderVH.PurchasingGroup AS PurchasingGroup,
  _PurchaseOrderVH.PurchasingOrganization AS PurchasingOrganization,
  _ChangeRecordObjPg.ChangeRecordType AS ChangeRecordType,
  reference_puo.ChangeRecordUUID AS ChangeRecordUUID,
  reference_puo.ChangeRecordReferenceType AS ChangeRecordReferenceType,
  reference_puo.ParentChangeRecordRefUUID AS ParentChangeRecordRefUUID,
  reference_puo.ChangeRecordItemRelevance AS ChangeRecordItemRelevance,
  reference_puo.ChangeRecordReference AS ChangeRecordReference,
  reference_puo.CreatedByUser AS CreatedByUser,
  reference_puo.CreationDateTime AS CreationDateTime,
  cast( '00000000' as /plmb/created_on ) AS CreationDate,
  LastChangedByUser,
  reference_puo.LastChangeDateTime AS LastChangeDateTime,
  cast( '00000000' as /plmb/changed_on ) AS LastChangeDate
FROM I_ChgRecdRefPurOrdBsc AS reference_puo
LEFT OUTER JOIN I_PurchaseOrder AS PurOrder ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN C_ChangeRecordObjPg AS _ChangeRecordObjPg ON ChangeRecordUUID = _ChangeRecordObjPg.ChangeRecordUUID  -- association [1..1]
LEFT OUTER JOIN I_PurchaseOrder AS _PurchaseOrderVH ON PurchaseOrder = _PurchaseOrderVH.PurchaseOrder  -- association [1..1]
LEFT OUTER JOIN I_PurchasingDocumentTypeText AS _PurchaseOrderTypeText ON PurchaseOrderType = _PurchaseOrderTypeText.PurchasingDocumentType AND _PurchaseOrderTypeText.PurchasingDocumentCategory = 'F'  -- association [1..*]
LEFT OUTER JOIN I_Plant AS _Plant ON SupplyingPlant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_PurchasingOrganization AS _PurchasingOrganization ON PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization  -- association [0..1]
LEFT OUTER JOIN I_PurchasingGroup AS _PurchasingGroup ON PurchasingGroup = _PurchasingGroup.PurchasingGroup  -- association [0..1]
LEFT OUTER JOIN I_PurchaseContract AS _PurchaseContract ON PurchaseContract = _PurchaseContract.PurchaseContract  -- association [0..1]
LEFT OUTER JOIN C_ChangeRecordItemRelPurVH AS _ChangeRecordItemRelVH ON ChangeRecordItemRelevance = _ChangeRecordItemRelVH.ChangeRecordItemRelevance AND ChangeRecordType = _ChangeRecordItemRelVH.ChangeRecordType AND ( ChangeRecordReferenceType = _ChangeRecordItemRelVH.ChangeRecordReferenceType OR _ChangeRecordItemRelVH.ChangeRecordReferenceType = ' ' )  -- association [1..1]
;