P_Orderqtyissue

DDL: P_ORDERQTYISSUE Type: view_entity CONSUMPTION

Order Quantity Issue Calculation

P_Orderqtyissue is a Consumption CDS View that provides data about "Order Quantity Issue Calculation" in SAP S/4HANA. It reads from 2 data sources (P_MfgOrderAORList, I_LogisticsOrder) and exposes 3 fields with key field ManufacturingOrder.

Data Sources (2)

SourceAliasJoin Type
P_MfgOrderAORList _AORList inner
I_LogisticsOrder ord from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Order Quantity Issue Calculation view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
VDM.private true view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY ManufacturingOrder I_LogisticsOrder OrderID Order ID
BaseUnit I_LogisticsOrder BaseUnit Unit of Measure
OrderYieldDeviationQty

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_Orderqtyissue.
-- 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_Orderqtyissue AS
SELECT
  ord.OrderID AS ManufacturingOrder,
  ord.BaseUnit AS BaseUnit,
  ord.OrderConfirmedYieldQty - ord.OrderPlannedTotalQty + ord.OrderPlannedScrapQty AS OrderYieldDeviationQty
FROM I_LogisticsOrder AS ord
INNER JOIN P_MfgOrderAORList AS _AORList ON /* join condition not captured in parsed metadata */
;