P_ProdAllocStkTransptSchedLine

DDL: P_PRODALLOCSTKTRANSPTSCHEDLINE SQL: PPALSTKTRSL Type: view CONSUMPTION

Product Allocation Stock Transport Order Schedule Lines

P_ProdAllocStkTransptSchedLine is a Consumption CDS View that provides data about "Product Allocation Stock Transport Order Schedule Lines" in SAP S/4HANA. It reads from 2 data sources (P_ProdAllocQtyAssgmtOrderItem, P_StkTransptStatusSchedLine) and exposes 10 fields with key fields PurchaseOrder, PurchaseOrderItem.

Data Sources (2)

SourceAliasJoin Type
P_ProdAllocQtyAssgmtOrderItem QA from
P_StkTransptStatusSchedLine SL inner

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPALSTKTRSL view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Product Allocation Stock Transport Order Schedule Lines view
VDM.private true view
VDM.viewType #CONSUMPTION view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY PurchaseOrder P_StkTransptStatusSchedLine PurchaseOrder Purchasing Document
KEY PurchaseOrderItem P_StkTransptStatusSchedLine PurchaseOrderItem Purchasing Document Item
ScheduleLineCommittedQuantity
ScheduleLineOrderQuantity
ScheduleLineDeliveryDate
ProductAllocationPeriodEndDate
ScheduleLineIssuedQuantity
StockTransferDeliveredQuantity
BaseUnit _StockTransportOrderItem BaseUnit Unit of Measure
SchedLineStscDeliveryDate

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_ProdAllocStkTransptSchedLine.
-- 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: PPALSTKTRSL

CREATE VIEW P_ProdAllocStkTransptSchedLine AS
SELECT
  SL.PurchaseOrder AS PurchaseOrder,
  SL.PurchaseOrderItem AS PurchaseOrderItem,
  sum(SL.ScheduleLineCommittedQuantity) AS ScheduleLineCommittedQuantity,
  sum(SL.ScheduleLineOrderQuantity) AS ScheduleLineOrderQuantity,
  min(SL.ScheduleLineDeliveryDate) AS ScheduleLineDeliveryDate,
  max(SL.ScheduleLineDeliveryDate) AS ProductAllocationPeriodEndDate,
  sum(SL.ScheduleLineIssuedQuantity) AS ScheduleLineIssuedQuantity,
  sum(SL.StockTransferDeliveredQuantity) AS StockTransferDeliveredQuantity,
  _StockTransportOrderItem.BaseUnit AS BaseUnit,
  min(SL.SchedLineStscDeliveryDate) AS SchedLineStscDeliveryDate
FROM P_ProdAllocQtyAssgmtOrderItem AS QA
INNER JOIN P_StkTransptStatusSchedLine AS SL ON /* join condition not captured in parsed metadata */
;