I_ProjPurDocItems

DDL: I_PROJPURDOCITEMS SQL: IPURDOCI Type: view COMPOSITE

Basic view for tab PurDoc on WBSElement app

I_ProjPurDocItems is a Composite CDS View that provides data about "Basic view for tab PurDoc on WBSElement app" in SAP S/4HANA. It reads from 1 data source (P_ProjPurDocItems) and exposes 20 fields with key fields PurchasingDocument, PurchasingDocumentItem, AccountAssignmentNumber. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_ProjPurDocItems ProjPurDocItems from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_Supplier _Supplier _Supplier.Supplier = $projection.Supplier
[1..1] I_UnitOfMeasure _UnitOfMeasure _UnitOfMeasure.UnitOfMeasure = $projection.BaseUnit
[0..1] I_ProjectNetwork _ProjectNetwork _ProjectNetwork.ProjectNetworkInternalID = $projection.ProjectNetworkInternalID or _ProjectNetwork.ProjectNetwork = $projection.ProjectNetwork

Annotations (11)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName IPURDOCI view
AbapCatalog.compiler.compareFilter true view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Basic view for tab PurDoc on WBSElement app view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument
KEY PurchasingDocumentItem
KEY AccountAssignmentNumber P_ProjPurDocItems AccountAssignmentNumber Account Assgmt No.
ProjectNetworkInternalID P_ProjPurDocItems ProjectNetworkInternalID Plan No.f.Oper.
NetworkActivityInternalID P_ProjPurDocItems NetworkActivityInternalID Counter
ProjectNetwork P_ProjPurDocItems ProjectNetwork Order
PurchasingDocumentType P_ProjPurDocItems PurchasingDocumentType RFQ Type
PurchasingDocumentTypeName P_ProjPurDocItems PurchasingDocumentTypeName Description
PurchasingDocumentItemText P_ProjPurDocItems PurchasingDocumentItemText Short Text
DeliveryDate P_ProjPurDocItems DeliveryDate Delivery Date
BaseUnit P_ProjPurDocItems BaseUnit Unit of Measure
RequestedQuantity P_ProjPurDocItems RequestedQuantity Requested Quantity
Plant P_ProjPurDocItems Plant Valuation Area
PlantName P_ProjPurDocItems PlantName Plant Name
Supplier P_ProjPurDocItems Supplier Supplier
Material P_ProjPurDocItems Material Vehicle Model
MaterialGroup P_ProjPurDocItems MaterialGroup Product Group
PurchasingDocumentCategory P_ProjPurDocItems PurchasingDocumentCategory Doc. Category
_Supplier _Supplier
_UnitOfMeasure _UnitOfMeasure

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_ProjPurDocItems.
-- 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: IPURDOCI

CREATE VIEW I_ProjPurDocItems AS
SELECT
  cast( ProjPurDocItems.PurchasingDocument as ps_s4_doc preserving type ) AS PurchasingDocument,
  cast( ProjPurDocItems.PurchasingDocumentItem as ps_s4_docitem preserving type ) AS PurchasingDocumentItem,
  ProjPurDocItems.AccountAssignmentNumber AS AccountAssignmentNumber,
  ProjPurDocItems.ProjectNetworkInternalID AS ProjectNetworkInternalID,
  ProjPurDocItems.NetworkActivityInternalID AS NetworkActivityInternalID,
  ProjPurDocItems.ProjectNetwork AS ProjectNetwork,
  ProjPurDocItems.PurchasingDocumentType AS PurchasingDocumentType,
  ProjPurDocItems.PurchasingDocumentTypeName AS PurchasingDocumentTypeName,
  ProjPurDocItems.PurchasingDocumentItemText AS PurchasingDocumentItemText,
  ProjPurDocItems.DeliveryDate AS DeliveryDate,
  ProjPurDocItems.BaseUnit AS BaseUnit,
  ProjPurDocItems.RequestedQuantity AS RequestedQuantity,
  ProjPurDocItems.Plant AS Plant,
  ProjPurDocItems.PlantName AS PlantName,
  ProjPurDocItems.Supplier AS Supplier,
  ProjPurDocItems.Material AS Material,
  ProjPurDocItems.MaterialGroup AS MaterialGroup,
  ProjPurDocItems.PurchasingDocumentCategory AS PurchasingDocumentCategory
FROM P_ProjPurDocItems AS ProjPurDocItems
LEFT OUTER JOIN I_Supplier AS _Supplier ON _Supplier.Supplier = Supplier  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _UnitOfMeasure ON _UnitOfMeasure.UnitOfMeasure = BaseUnit  -- association [1..1]
LEFT OUTER JOIN I_ProjectNetwork AS _ProjectNetwork ON _ProjectNetwork.ProjectNetworkInternalID = ProjectNetworkInternalID OR _ProjectNetwork.ProjectNetwork = ProjectNetwork  -- association [0..1]
;