P_TrdgContItemApplTotalQty

DDL: P_TRDGCONTITEMAPPLTOTALQTY SQL: PTRCONAPPLSUM Type: view COMPOSITE

P_TrdgContItemApplTotalQty is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_TrdgContItemApplQtyDetsData) and exposes 12 fields with key fields ContractNum, ContractItem.

Data Sources (1)

SourceAliasJoin Type
I_TrdgContItemApplQtyDetsData I_TrdgContItemApplQtyDetsData from

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PTRCONAPPLSUM 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 (12)

KeyFieldSource TableSource FieldDescription
KEY ContractNum ContractNum
KEY ContractItem ContractItem Purchase Contract Item
TrdgContractItemUnitOfMeasure TrdgContractItemUnitOfMeasure ItemUoM
ContrItmProvisionalOverFillQty
ACMContrItmPrvsnlUnderFillQty
TrdgContrItemOverFillQuantity
TrdgContrItemUnderFillQuantity
FinalApplicationQuantity
ContrOverFillSettledQuantity
ACMTrdgContrReturnSettledQty
TrdgContrItmNotRetdOverFillQty
TrdgContrItmNotRetdUndrFillQty

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_TrdgContItemApplTotalQty.
-- 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: PTRCONAPPLSUM

CREATE VIEW P_TrdgContItemApplTotalQty AS
SELECT
  ContractNum,
  ContractItem,
  TrdgContractItemUnitOfMeasure,
  sum(ContrItmProvisionalOverFillQty) AS ContrItmProvisionalOverFillQty,
  sum(ACMContrItmPrvsnlUnderFillQty) AS ACMContrItmPrvsnlUnderFillQty,
  sum(TrdgContrItemOverFillQuantity) AS TrdgContrItemOverFillQuantity,
  sum(TrdgContrItemUnderFillQuantity) AS TrdgContrItemUnderFillQuantity,
  sum(FinalApplicationQuantity) AS FinalApplicationQuantity,
  sum(ContrOverFillSettledQuantity) AS ContrOverFillSettledQuantity,
  sum(ACMTrdgContrReturnSettledQty) AS ACMTrdgContrReturnSettledQty,
  sum(TrdgContrItmNotRetdOverFillQty) AS TrdgContrItmNotRetdOverFillQty,
  sum(TrdgContrItmNotRetdUndrFillQty) AS TrdgContrItmNotRetdUndrFillQty
FROM I_TrdgContItemApplQtyDetsData
;