P_ProdAllocSalesSchedLine

DDL: P_PRODALLOCSALESSCHEDLINE SQL: PALSLSORDSCHEDL Type: view CONSUMPTION Package: PRODUCT_ALLOCATION_OBJECT

Product Allocation Sales Order Schedule Lines

P_ProdAllocSalesSchedLine is a Consumption CDS View that provides data about "Product Allocation Sales Order Schedule Lines" in SAP S/4HANA. It reads from 2 data sources (P_ProdAllocQtyAssgmtOrderItem, I_SalesDocumentScheduleLine) and exposes 11 fields with key fields SalesDocument, SalesDocumentItem. Part of development package PRODUCT_ALLOCATION_OBJECT.

Data Sources (2)

SourceAliasJoin Type
P_ProdAllocQtyAssgmtOrderItem QA from
I_SalesDocumentScheduleLine SL inner

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PALSLSORDSCHEDL view
EndUserText.label Product Allocation Sales Order Schedule Lines view
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.compiler.compareFilter true 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 (11)

KeyFieldSource TableSource FieldDescription
KEY SalesDocument I_SalesDocumentScheduleLine SalesDocument SD Document
KEY SalesDocumentItem I_SalesDocumentScheduleLine SalesDocumentItem Sales Document Item
ScheduleLineOrderQuantity
OrderQuantityUnit I_SalesDocumentScheduleLine OrderQuantityUnit Sales Unit
CorrectedQtyInOrderQtyUnit
DeliveredQtyInOrderQtyUnit
CumltvDlvrdBaseUnitOfMeasure CDQ CumltvDlvrdBaseUnitOfMeasure
CumulativeDeliveredQty CDQ CumulativeDeliveredQty
ConfdOrderQtyByMatlAvailCheck
RequestedDeliveryDate
ProductAllocationPeriodEndDate

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_ProdAllocSalesSchedLine.
-- 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: PALSLSORDSCHEDL

CREATE VIEW P_ProdAllocSalesSchedLine AS
SELECT
  SL.SalesDocument AS SalesDocument,
  SL.SalesDocumentItem AS SalesDocumentItem,
  sum(SL.ScheduleLineOrderQuantity) AS ScheduleLineOrderQuantity,
  SL.OrderQuantityUnit AS OrderQuantityUnit,
  sum(SL.CorrectedQtyInOrderQtyUnit) AS CorrectedQtyInOrderQtyUnit,
  sum(SL.DeliveredQtyInOrderQtyUnit) AS DeliveredQtyInOrderQtyUnit,
  CDQ.CumltvDlvrdBaseUnitOfMeasure AS CumltvDlvrdBaseUnitOfMeasure,
  CDQ.CumulativeDeliveredQty AS CumulativeDeliveredQty,
  sum(SL.ConfdOrderQtyByMatlAvailCheck) AS ConfdOrderQtyByMatlAvailCheck,
  min(SL.DeliveryDate) AS RequestedDeliveryDate,
  max(SL.DeliveryDate) AS ProductAllocationPeriodEndDate
FROM P_ProdAllocQtyAssgmtOrderItem AS QA
INNER JOIN I_SalesDocumentScheduleLine AS SL ON /* join condition not captured in parsed metadata */
;