I_TrdgContrItemConsumedQty

DDL: I_TRDGCONTRITEMCONSUMEDQTY SQL: ITRGCONTCNSMQTY Type: view COMPOSITE

Trading Contract Item Consumed Qty

I_TrdgContrItemConsumedQty is a Composite CDS View that provides data about "Trading Contract Item Consumed Qty" in SAP S/4HANA. It reads from 2 data sources (I_ACMTrdgContrCommoditySubItem, I_TrdgContrShadowItemData) and exposes 6 fields with key fields DocumentCategory, ContractNum, TradingContractItem, DocumentSide.

Data Sources (2)

SourceAliasJoin Type
I_ACMTrdgContrCommoditySubItem Comsub inner
I_TrdgContrShadowItemData ShadowItem from

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ITRGCONTCNSMQTY view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.type #INHERITED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
EndUserText.label Trading Contract Item Consumed Qty view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY DocumentCategory DocumentCategory Document Category
KEY ContractNum
KEY TradingContractItem
KEY DocumentSide Side
ContractItemConsumedQuantity ContractItemConsumedQuantity CumAssignedQuan
ContrItemConsumedQuantityUnit ContrItemConsumedQuantityUnit Assigned UoM

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 I_TrdgContrItemConsumedQty.
-- 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: ITRGCONTCNSMQTY

CREATE VIEW I_TrdgContrItemConsumedQty AS
SELECT
  DocumentCategory,
  cast(ShadowItem.ContractNum as tkonn) AS ContractNum,
  cast(ShadowItem.ContractItem as tposn) AS TradingContractItem,
  cast(DocumentSide as wb2_side) AS DocumentSide,
  ContractItemConsumedQuantity,
  ContrItemConsumedQuantityUnit
FROM I_TrdgContrShadowItemData AS ShadowItem
INNER JOIN I_ACMTrdgContrCommoditySubItem AS Comsub ON /* join condition not captured in parsed metadata */
;