P_ReqdAllocStkTransptSchedLine

DDL: P_REQDALLOCSTKTRANSPTSCHEDLINE Type: view_entity COMPOSITE Package: PRODUCT_ALLOCATION_OBJECT

Requested Allocation Stock Transport Order Schedule Lines

P_ReqdAllocStkTransptSchedLine is a Composite CDS View that provides data about "Requested Allocation Stock Transport Order Schedule Lines" in SAP S/4HANA. It reads from 2 data sources (P_AllocQtyAssgmtOrdItmValCombn, I_StockTransptOrdScheduleLine) and exposes 8 fields with key fields ProdAllocAssignedOrder, ProdAllocAssignedOrderItem, CharcValueCombinationUUID, ScheduleLineDeliveryDate, ScheduleLineDeliveryTime. Part of development package PRODUCT_ALLOCATION_OBJECT.

Data Sources (2)

SourceAliasJoin Type
P_AllocQtyAssgmtOrdItmValCombn QA from
I_StockTransptOrdScheduleLine SL inner

Annotations (7)

NameValueLevelField
EndUserText.label Requested Allocation Stock Transport Order Schedule Lines view
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY ProdAllocAssignedOrder I_StockTransptOrdScheduleLine PurchaseOrder Purchasing Document
KEY ProdAllocAssignedOrderItem P_AllocQtyAssgmtOrdItmValCombn ProdAllocAssignedOrderItem Assigned Order Item
KEY CharcValueCombinationUUID P_AllocQtyAssgmtOrdItmValCombn CharcValueCombinationUUID Characteristic Value Combination UUID
KEY ScheduleLineDeliveryDate I_StockTransptOrdScheduleLine ScheduleLineDeliveryDate Delivery Date
KEY ScheduleLineDeliveryTime I_StockTransptOrdScheduleLine ScheduleLineDeliveryTime Time
ProdAllocReqdDelivUTCDateTime
ScheduleLineOrderQuantity
BaseUnit I_StockTransptOrdScheduleLine OrderQuantityUnit Sales Unit

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_ReqdAllocStkTransptSchedLine.
-- 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_ReqdAllocStkTransptSchedLine AS
SELECT
  SL.PurchaseOrder AS ProdAllocAssignedOrder,
  QA.ProdAllocAssignedOrderItem AS ProdAllocAssignedOrderItem,
  QA.CharcValueCombinationUUID AS CharcValueCombinationUUID,
  SL.ScheduleLineDeliveryDate AS ScheduleLineDeliveryDate,
  SL.ScheduleLineDeliveryTime AS ScheduleLineDeliveryTime,
  dats_tims_to_tstmp(SL.ScheduleLineDeliveryDate, SL.ScheduleLineDeliveryTime, SL._StockTransportOrderItem._Plant._OrganizationAddress.AddressTimeZone, $session.client , 'INITIAL') AS ProdAllocReqdDelivUTCDateTime,
  sum(SL.ScheduleLineOrderQuantity) AS ScheduleLineOrderQuantity,
  SL.OrderQuantityUnit AS BaseUnit
FROM P_AllocQtyAssgmtOrdItmValCombn AS QA
INNER JOIN I_StockTransptOrdScheduleLine AS SL ON /* join condition not captured in parsed metadata */
;