C_CommodityQuantitySales

DDL: C_COMMODITYQUANTITYSALES SQL: CCMMDTYQTYSALES Type: view CONSUMPTION

Commodiy Quantity for Sales

C_CommodityQuantitySales is a Consumption CDS View that provides data about "Commodiy Quantity for Sales" in SAP S/4HANA. It reads from 1 data source (I_CommodityQuantitySalesTP) and exposes 18 fields with key fields Product, SalesOrganization, DistributionChannel, Commodity. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CommodityQuantitySalesTP CommodityQuantitySales from

Associations (2)

CardinalityTargetAliasCondition
[1..1] C_Product _Product $projection.Product = _Product.Product
[1..1] C_Productsalesdelivery _SalesDelivery $projection.Product = _SalesDelivery.Product and $projection.SalesOrganization = _SalesDelivery.ProductSalesOrg and $projection.DistributionChannel = _SalesDelivery.ProductDistributionChnl

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName CCMMDTYQTYSALES view
Search.searchable true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
Feature SW:LOG_CMM_PRC_SFWS_CMMDTY_QTY view
ObjectModel.transactionalProcessingDelegated true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.text.control #ASSOCIATED_TEXT_UI_HIDDEN view
Metadata.allowExtensions true view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Commodiy Quantity for Sales view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY Product Product Product Sold
KEY SalesOrganization SalesOrganization Sales Organization
KEY DistributionChannel DistributionChannel RefDistCh-Cust/Mat.
KEY Commodity Commodity Commodity Code
CommodityForEdit CommodityForEdit Commodity Code
CommodityName CommodityName
CommodityQuantity CommodityQuantity Commodity Quantity
CommodityQuantityUoM CommodityQuantityUoM Commodity Qty Uom
ReferenceQuantity ReferenceQuantity Comm Refer Quantity
ReferenceQuantityUoM ReferenceQuantityUoM Comm RefQty Uom
CreatedByUser CreatedByUser User Name
CreatedByUserName CreatedByUserName Person Resp.
CreationDateTime CreationDateTime Timestamp
LastChangedByUser LastChangedByUser User Name
ChangedByUserName ChangedByUserName Full Name
LastChangeDateTime LastChangeDateTime Timestamp
_Product _Product
_SalesDelivery _SalesDelivery

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 C_CommodityQuantitySales.
-- 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: CCMMDTYQTYSALES

CREATE VIEW C_CommodityQuantitySales AS
SELECT
  Product,
  SalesOrganization,
  DistributionChannel,
  Commodity,
  CommodityForEdit,
  CommodityName,
  CommodityQuantity,
  CommodityQuantityUoM,
  ReferenceQuantity,
  ReferenceQuantityUoM,
  CreatedByUser,
  CreatedByUserName,
  CreationDateTime,
  LastChangedByUser,
  ChangedByUserName,
  LastChangeDateTime
FROM I_CommodityQuantitySalesTP AS CommodityQuantitySales
LEFT OUTER JOIN C_Product AS _Product ON Product = _Product.Product  -- association [1..1]
LEFT OUTER JOIN C_Productsalesdelivery AS _SalesDelivery ON Product = _SalesDelivery.Product AND SalesOrganization = _SalesDelivery.ProductSalesOrg AND DistributionChannel = _SalesDelivery.ProductDistributionChnl  -- association [1..1]
;