P_TrdgContrItemClosedQty

DDL: P_TRDGCONTRITEMCLOSEDQTY SQL: PCLOSEDQTYSUM Type: view COMPOSITE

P_TrdgContrItemClosedQty is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_TrdgContrItemCancQty) and exposes 4 fields with key fields ContractNum, TradingContractItem.

Data Sources (1)

SourceAliasJoin Type
I_TrdgContrItemCancQty I_TrdgContrItemCancQty from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PCLOSEDQTYSUM view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY ContractNum ContractNum Trading Contract
KEY TradingContractItem TradingContractItem Item Number
TrdgContrItemClosedQty
TrdgContractItemUnitOfMeasure TrdgContractItemUnitOfMeasure Base 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_TrdgContrItemClosedQty.
-- 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: PCLOSEDQTYSUM

CREATE VIEW P_TrdgContrItemClosedQty AS
SELECT
  ContractNum,
  TradingContractItem,
  sum(TrdgContrItemClosedQty) AS TrdgContrItemClosedQty,
  TrdgContractItemUnitOfMeasure
FROM I_TrdgContrItemCancQty
;