I_ProjMatCompPurDocItem

DDL: I_PROJMATCOMPPURDOCITEM SQL: IPMCPURDOCITM Type: view BASIC

Purchasing Document Item for Project Material Component

I_ProjMatCompPurDocItem is a Basic CDS View that provides data about "Purchasing Document Item for Project Material Component" in SAP S/4HANA. It reads from 1 data source (P_ProjMatCompPurDocItems) and exposes 11 fields with key fields PurchasingDocument, PurchasingDocumentItem. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_ProjMatCompPurDocItems PurchaseDocItem from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_Plant _Plant $projection.Plant = _Plant.Plant

Annotations (11)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName IPMCPURDOCITM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Purchasing Document Item for Project Material Component view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument
KEY PurchasingDocumentItem
Reservation P_ProjMatCompPurDocItems Reservation Reservation
ReservationItem P_ProjMatCompPurDocItems ReservationItem Reservation Item
RecordType P_ProjMatCompPurDocItems RecordType Reservation Record Type
PurchasingDocumentTypeName
Plant P_ProjMatCompPurDocItems Plant Valuation Area
Supplier
PurchasingDocumentItemText P_ProjMatCompPurDocItems PurchasingDocumentItemText Short Text
_Supplier _Supplier
_Plant _Plant

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_ProjMatCompPurDocItem.
-- 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: IPMCPURDOCITM

CREATE VIEW I_ProjMatCompPurDocItem AS
SELECT
  cast( PurchaseDocItem.PurchasingDocument as ps_s4_doc preserving type ) AS PurchasingDocument,
  cast( PurchaseDocItem.PurchasingDocumentItem as ps_s4_docitem preserving type) AS PurchasingDocumentItem,
  PurchaseDocItem.Reservation AS Reservation,
  PurchaseDocItem.ReservationItem AS ReservationItem,
  PurchaseDocItem.RecordType AS RecordType,
  cast(PurchaseDocItem._PurchasingDocumentType._Text[1:Language = $session.system_language].PurchasingDocumentTypeName as ps_s4_doctype preserving type) AS PurchasingDocumentTypeName,
  PurchaseDocItem.Plant AS Plant,
  cast( PurchaseDocItem.Supplier as emlif preserving type ) AS Supplier,
  PurchaseDocItem.PurchasingDocumentItemText AS PurchasingDocumentItemText
FROM P_ProjMatCompPurDocItems AS PurchaseDocItem
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
;