P_Comonavg_Quantity

DDL: P_COMONAVG_QUANTITY SQL: PCOMONQUANTITY Type: view COMPOSITE

P_Comonavg_Quantity is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_PurContractClassification, I_PurchaseContract, I_PurchaseContractItem) and exposes 4 fields with key fields PurchaseContract, PurchaseContractItem.

Data Sources (3)

SourceAliasJoin Type
I_PurContractClassification _PurContractClassification inner
I_PurchaseContract ContractHeader from
I_PurchaseContractItem Item inner

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PCOMONQUANTITY view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY PurchaseContract I_PurchaseContractItem PurchaseContract Purchasing Doc.
KEY PurchaseContractItem I_PurchaseContractItem PurchaseContractItem Item
TargetQuantity I_PurchaseContractItem TargetQuantity Target Quantity
TargetAmount I_PurchaseContractItem TargetAmount Target Value

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_Comonavg_Quantity.
-- 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: PCOMONQUANTITY

CREATE VIEW P_Comonavg_Quantity AS
SELECT
  Item.PurchaseContract AS PurchaseContract,
  Item.PurchaseContractItem AS PurchaseContractItem,
  Item.TargetQuantity AS TargetQuantity,
  Item.TargetAmount AS TargetAmount
FROM I_PurchaseContract AS ContractHeader
INNER JOIN I_PurchaseContractItem AS Item ON /* join condition not captured in parsed metadata */
INNER JOIN I_PurContractClassification AS _PurContractClassification ON /* join condition not captured in parsed metadata */
;