P_POItmSchedLineCalcdFeatures

DDL: P_POITMSCHEDLINECALCDFEATURES SQL: PPOICALCDFT Type: view CONSUMPTION

P_POItmSchedLineCalcdFeatures is a Consumption CDS View in SAP S/4HANA. It reads from 3 data sources (P_POItmSchedLineRunningAggrgn, P_POItemSchedLineFtreByWeek, P_POItemSchedLineFtreByMonth) and exposes 16 fields with key fields PurchaseOrder, PurchaseOrderItem, ScheduleLine.

Data Sources (3)

SourceAliasJoin Type
P_POItmSchedLineRunningAggrgn _POIClosedSLData2a from
P_POItemSchedLineFtreByWeek _POIClosedSLData2b left_outer
P_POItemSchedLineFtreByMonth _POIClosedSLData2c left_outer

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PPOICALCDFT view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder PurchaseOrder Purchasing Document
KEY PurchaseOrderItem PurchaseOrderItem Purchasing Document Item
KEY ScheduleLine ScheduleLine Schedule Line
PurchaseOrderDate PurchaseOrderDate PO Date
Supplier Supplier Supplier
Plant Plant Valuation Area
SupplierPlant P_POItmSchedLineRunningAggrgn SupplierPlant Plant
GoodsReceiptMaterialDocYear P_POItmSchedLineRunningAggrgn GoodsReceiptMaterialDocYear
YearWeek P_POItmSchedLineRunningAggrgn YearWeek Year and Calendar Week
YearMonth P_POItmSchedLineRunningAggrgn YearMonth Year Month
PreviousYearWeek P_POItemSchedLineFtreByWeek YearWeek Year and Calendar Week
prev_w_count P_POItemSchedLineFtreByWeek running_w_count
PreviousYearMonth P_POItemSchedLineFtreByMonth YearMonth Year Month
prev_m_count P_POItemSchedLineFtreByMonth running_m_count
diff_w_count
diff_m_count

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_POItmSchedLineCalcdFeatures.
-- 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: PPOICALCDFT

CREATE VIEW P_POItmSchedLineCalcdFeatures AS
SELECT
  PurchaseOrder,
  PurchaseOrderItem,
  ScheduleLine,
  PurchaseOrderDate,
  Supplier,
  Plant,
  _POIClosedSLData2a.SupplierPlant AS SupplierPlant,
  _POIClosedSLData2a.GoodsReceiptMaterialDocYear AS GoodsReceiptMaterialDocYear,
  _POIClosedSLData2a.YearWeek AS YearWeek,
  _POIClosedSLData2a.YearMonth AS YearMonth,
  _POIClosedSLData2b.YearWeek AS PreviousYearWeek,
  _POIClosedSLData2b.running_w_count AS prev_w_count,
  _POIClosedSLData2c.YearMonth AS PreviousYearMonth,
  _POIClosedSLData2c.running_m_count AS prev_m_count,
  _POIClosedSLData2a.running_w_count - _POIClosedSLData2b.running_w_count AS diff_w_count,
  _POIClosedSLData2a.running_m_count - _POIClosedSLData2c.running_m_count AS diff_m_count
FROM P_POItmSchedLineRunningAggrgn AS _POIClosedSLData2a
LEFT OUTER JOIN P_POItemSchedLineFtreByWeek AS _POIClosedSLData2b ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_POItemSchedLineFtreByMonth AS _POIClosedSLData2c ON /* join condition not captured in parsed metadata */
;