P_POItemSchdLnLastPostgDate

DDL: P_POITEMSCHDLNLASTPOSTGDATE SQL: PPOISCLDATE Type: view CONSUMPTION

P_POItemSchdLnLastPostgDate is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (P_POItemCumltvGRQty, P_POItemClsdSchdLnCumltvQty) and exposes 9 fields with key fields PurchaseOrder, PurchaseOrderItem, ScheduleLine. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
P_POItemCumltvGRQty _POICumltvGR left_outer
P_POItemClsdSchdLnCumltvQty ScheduleLine from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_PurchaseOrderScheduleLine _ScheduleLine _ScheduleLine.PurchaseOrder = ScheduleLine.PurchaseOrder and _ScheduleLine.PurchaseOrderItem = ScheduleLine.PurchaseOrderItem and _ScheduleLine.ScheduleLine = ScheduleLine.ScheduleLine

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PPOISCLDATE 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 (9)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder P_POItemClsdSchdLnCumltvQty PurchaseOrder Purchasing Document
KEY PurchaseOrderItem P_POItemClsdSchdLnCumltvQty PurchaseOrderItem Purchasing Document Item
KEY ScheduleLine P_POItemClsdSchdLnCumltvQty ScheduleLine Schedule Line
AccountAssignmentCategory AccountAssignmentCategory Acct Assgmt Cat
ScheduleLineOrderQuantity P_POItemClsdSchdLnCumltvQty ScheduleLineOrderQuantity Scheduled Qty
SchedLineStscDeliveryDate P_POItemClsdSchdLnCumltvQty SchedLineStscDeliveryDate Stat. Del. Date
LastPostingDate
PurchaseOrderDate
_ScheduleLine _ScheduleLine

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_POItemSchdLnLastPostgDate.
-- 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: PPOISCLDATE

CREATE VIEW P_POItemSchdLnLastPostgDate AS
SELECT
  ScheduleLine.PurchaseOrder AS PurchaseOrder,
  ScheduleLine.PurchaseOrderItem AS PurchaseOrderItem,
  ScheduleLine.ScheduleLine AS ScheduleLine,
  AccountAssignmentCategory,
  ScheduleLine.ScheduleLineOrderQuantity AS ScheduleLineOrderQuantity,
  ScheduleLine.SchedLineStscDeliveryDate AS SchedLineStscDeliveryDate,
  min(_POICumltvGR.PostingDate) AS LastPostingDate,
  _ScheduleLine._PurchaseOrder.PurchaseOrderDate AS PurchaseOrderDate
FROM P_POItemClsdSchdLnCumltvQty AS ScheduleLine
LEFT OUTER JOIN P_POItemCumltvGRQty AS _POICumltvGR ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PurchaseOrderScheduleLine AS _ScheduleLine ON _ScheduleLine.PurchaseOrder = ScheduleLine.PurchaseOrder AND _ScheduleLine.PurchaseOrderItem = ScheduleLine.PurchaseOrderItem AND _ScheduleLine.ScheduleLine = ScheduleLine.ScheduleLine  -- association [1..1]
;