P_RFDYPurgSchedLineWthProcdQts

DDL: P_RFDYPURGSCHEDLINEWTHPROCDQTS Type: view_entity CONSUMPTION

P_RFDYPurgSchedLineWthProcdQts is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (I_PurgDocScheduleLine) and exposes 6 fields with key fields PurchasingDocument, PurchasingDocumentItem, ScheduleLine. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_PurgDocScheduleLine I_PurgDocScheduleLine from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_PurchasingDocumentItem _Item $projection.PurchasingDocument = _Item.PurchasingDocument and $projection.PurchasingDocumentItem = _Item.PurchasingDocumentItem

Annotations (3)

NameValueLevelField
VDM.private true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY PurchasingDocument PurchasingDocument Purchasing Document
KEY PurchasingDocumentItem PurchasingDocumentItem Purchasing Doc. Item
KEY ScheduleLine ScheduleLine Schedule Line
ScheduleLineOrderQuantity ScheduleLineOrderQuantity Scheduled Qty
ScheduleLineCommittedQuantity ScheduleLineCommittedQuantity Committed Qty
BaseUnit _Item BaseUnit Unit of Measure

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_RFDYPurgSchedLineWthProcdQts.
-- 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 P_RFDYPurgSchedLineWthProcdQts AS
SELECT
  PurchasingDocument,
  PurchasingDocumentItem,
  ScheduleLine,
  ScheduleLineOrderQuantity,
  ScheduleLineCommittedQuantity,
  _Item.BaseUnit AS BaseUnit
FROM I_PurgDocScheduleLine
LEFT OUTER JOIN I_PurchasingDocumentItem AS _Item ON PurchasingDocument = _Item.PurchasingDocument AND PurchasingDocumentItem = _Item.PurchasingDocumentItem  -- association [1..1]
;