I_CmmdtyTotalStockOnHand

DDL: I_CMMDTYTOTALSTOCKONHAND Type: view_entity BASIC

Commodity Total Stock On Hand

I_CmmdtyTotalStockOnHand is a Basic CDS View that provides data about "Commodity Total Stock On Hand" in SAP S/4HANA. It reads from 1 data source (cmm_rexs_aggr) and exposes 30 fields with key fields PricingKey, VersStockRecordUUID.

Data Sources (1)

SourceAliasJoin Type
cmm_rexs_aggr cmm_rexs_aggr from

Annotations (7)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
VDM.viewType #BASIC view
EndUserText.label Commodity Total Stock On Hand view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view

Fields (30)

KeyFieldSource TableSource FieldDescription
KEY PricingKey pricing_key Pricing Key
KEY VersStockRecordUUID version XML Vers.
EndOfDayBusinessEntityKey entity_key Node Key
RecordSelectionCutoffDateTime cutofftimestamp
CreatedOnDateTime creationtimestamp Creation Timestamp
CompanyCode bukrs Value
Plant werks Receiving Plant
Material matnr Vehicle Model
StorageLocation lgort Sublocation
Batch charg Chargeable Proc.
PhysicalCommodity commodity Commodity Code
DataSourceType record_type Type of Data Record
QuantitySign signage_qty Sign of Quantity
CommodityQuantityInBaseUnit mglme Qty Base UoM
MaterialBaseUnit lagme Base Unit
CommodityQuantity commodity_quan Cmdty Quantity
CommodityUnit commodity_uom Unit of Measure
CommodityReferenceQuantityUnit commodity_rf_uom Ref. UoM
CommodityQuantityInMassUnit commodity_quan_mass Quantity in Mass UoM
CommodityMassUnit commodity_mass_uom Cmdty UoM
CommodityQuantityInVolumeUnit commodity_quan_volume Quantity in Vol UoM
CommodityVolumeUnit commodity_volume_uom Cmdty UoM
InventoryEventIdentifier event_type Type of Event
QualityRepositoryUUID qrep_guid QRep GUID
QualityRepositoryVersion qrep_version QRep Version
DiscPremQualityScheduleUUID schedule_guid Schedule GUID
NetQuantityInBaseUnit net_quan
NetQuantityInCommodityUnit net_quan_comm Cmdty Quantity
NetQuantityInMassUnit net_quan_mass Cmdty Quantity
NetQuantityInVolumeUnit net_quan_volume

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_CmmdtyTotalStockOnHand.
-- 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.

CREATE VIEW I_CmmdtyTotalStockOnHand AS
SELECT
  pricing_key AS PricingKey,
  version AS VersStockRecordUUID,
  entity_key AS EndOfDayBusinessEntityKey,
  cutofftimestamp AS RecordSelectionCutoffDateTime,
  creationtimestamp AS CreatedOnDateTime,
  bukrs AS CompanyCode,
  werks AS Plant,
  matnr AS Material,
  lgort AS StorageLocation,
  charg AS Batch,
  commodity AS PhysicalCommodity,
  record_type AS DataSourceType,
  signage_qty AS QuantitySign,
  mglme AS CommodityQuantityInBaseUnit,
  lagme AS MaterialBaseUnit,
  commodity_quan AS CommodityQuantity,
  commodity_uom AS CommodityUnit,
  commodity_rf_uom AS CommodityReferenceQuantityUnit,
  commodity_quan_mass AS CommodityQuantityInMassUnit,
  commodity_mass_uom AS CommodityMassUnit,
  commodity_quan_volume AS CommodityQuantityInVolumeUnit,
  commodity_volume_uom AS CommodityVolumeUnit,
  event_type AS InventoryEventIdentifier,
  qrep_guid AS QualityRepositoryUUID,
  qrep_version AS QualityRepositoryVersion,
  schedule_guid AS DiscPremQualityScheduleUUID,
  net_quan AS NetQuantityInBaseUnit,
  net_quan_comm AS NetQuantityInCommodityUnit,
  net_quan_mass AS NetQuantityInMassUnit,
  net_quan_volume AS NetQuantityInVolumeUnit
FROM cmm_rexs_aggr
;