I_CmmdtyTotalStockOnHand
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)
| Source | Alias | Join Type |
|---|---|---|
| cmm_rexs_aggr | cmm_rexs_aggr | from |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA