F_Mmim_Marc_Dval
Help View Null Values for Stock
F_Mmim_Marc_Dval is a CDS View that provides data about "Help View Null Values for Stock" in SAP S/4HANA. It reads from 1 data source (marc) and exposes 45 fields with key fields SourceConstantId, Material, Plant, StorageLocation, ResourceId. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| marc | marc | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | F_Mmim_Mathlp_Vh | _Material | $projection.Material = _Material.Material |
| [1..1] | F_Mmim_Bukrs_Plant | _F_Mmim_Bukrs_Plant | $projection.Plant = _F_Mmim_Bukrs_Plant.Plant |
| [1..*] | F_Mmim_Mbew_Plant | _F_Mmim_Mbew_Plant | $projection.Material = _F_Mmim_Mbew_Plant.Material and $projection.Plant = _F_Mmim_Mbew_Plant.Plant |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Help View Null Values for Stock | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (45)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceConstantId | |||
| KEY | Material | matnr | Vehicle Model | |
| KEY | Plant | werks | Receiving Plant | |
| KEY | StorageLocation | |||
| KEY | ResourceId | |||
| KEY | Batch | |||
| MaterialBaseUnit | _Material | MaterialBaseUnit | Valuation Unit | |
| CompanyCode | _F_Mmim_Bukrs_Plant | CompanyCode | Receiver Company Code | |
| Currency | _F_Mmim_Bukrs_Plant | Currency | Valuation Crcy | |
| Supplier | ||||
| SDDocument | ||||
| SDDocumentItem | ||||
| WBSElementInternalID | ||||
| Customer | ||||
| InventorySpecialStockType | ||||
| CurrentStock | ||||
| QualityInspectionStockQuantity | ||||
| ReturnsBlockedStockQuantity | ||||
| TransferStockStorageLocQty | ||||
| TransferStockPlantQuantity | ||||
| StockInTransitQuantity | ||||
| BlockedStockQuantity | ||||
| RestrictedStockQuantity | ||||
| TiedEmptiesStockQuantity | ||||
| GoodsReceiptBlockedStockQty | ||||
| CurrentStockValue | ||||
| QualityInspectionStockValue | ||||
| ReturnsBlockedStockValue | ||||
| TransferStockStorageLocValue | ||||
| TransferStockPlantValue | ||||
| StockInTransitValue | ||||
| BlockedStockValue | ||||
| RestrictedStockValue | ||||
| TiedEmptiesStockValue | ||||
| GoodsReceiptBlockedStockValue | ||||
| CurrentStockCurVal | ||||
| QualityInspectionStockCurVal | ||||
| ReturnsBlockedStockCurVal | ||||
| TransferStockStorageLocCurVal | ||||
| TransferStockPlantCurVal | ||||
| StockInTransitCurVal | ||||
| BlockedStockCurVal | ||||
| RestrictedStockCurVal | ||||
| TiedEmptiesStockCurVal | ||||
| GoodsReceiptBlockedStockCurVal |
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 F_Mmim_Marc_Dval.
-- 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 F_Mmim_Marc_Dval AS
SELECT
cast('02' as char02) AS SourceConstantId,
matnr AS Material,
werks AS Plant,
cast('' as lgort_d) AS StorageLocation,
cast('' as nsdm_resourcename) AS ResourceId,
cast('' as charg_d) AS Batch,
_Material.MaterialBaseUnit AS MaterialBaseUnit,
_F_Mmim_Bukrs_Plant.CompanyCode AS CompanyCode,
_F_Mmim_Bukrs_Plant.Currency AS Currency,
cast('' as md_supplier) AS Supplier,
cast('' as mat_kdauf) AS SDDocument,
cast('000000' as mat_kdpos) AS SDDocumentItem,
cast('00000000' as mat_pspnr) AS WBSElementInternalID,
cast('' as kunnr) AS Customer,
cast('' as sobkz) AS InventorySpecialStockType,
cast(0 as abap.dec(21,3 ) ) AS CurrentStock,
cast(0 as abap.dec(21,3 ) ) AS QualityInspectionStockQuantity,
cast(0 as abap.dec(21,3 ) ) AS ReturnsBlockedStockQuantity,
cast(0 as abap.dec(21,3 ) ) AS TransferStockStorageLocQty,
cast(0 as abap.dec(21,3 ) ) AS TransferStockPlantQuantity,
cast(0 as abap.dec(21,3 ) ) AS StockInTransitQuantity,
cast(0 as abap.dec(21,3 ) ) AS BlockedStockQuantity,
cast(0 as abap.dec(21,3 ) ) AS RestrictedStockQuantity,
cast(0 as abap.dec(21,3 ) ) AS TiedEmptiesStockQuantity,
cast(0 as abap.dec(18,3 ) ) AS GoodsReceiptBlockedStockQty,
cast(0 as abap.dec(23,2 ) ) AS CurrentStockValue,
cast(0 as abap.dec(23,2 ) ) AS QualityInspectionStockValue,
cast(0 as abap.dec(23,2 ) ) AS ReturnsBlockedStockValue,
cast(0 as abap.dec(23,2 ) ) AS TransferStockStorageLocValue,
cast(0 as abap.dec(23,2 ) ) AS TransferStockPlantValue,
cast(0 as abap.dec(23,2 ) ) AS StockInTransitValue,
cast(0 as abap.dec(23,2 ) ) AS BlockedStockValue,
cast(0 as abap.dec(23,2 ) ) AS RestrictedStockValue,
cast(0 as abap.dec(23,2 ) ) AS TiedEmptiesStockValue,
cast(0 as abap.dec(23,2 ) ) AS GoodsReceiptBlockedStockValue,
cast(0 as abap.dec(23,2 ) ) AS CurrentStockCurVal,
cast(0 as abap.dec(23,2 ) ) AS QualityInspectionStockCurVal,
cast(0 as abap.dec(23,2 ) ) AS ReturnsBlockedStockCurVal,
cast(0 as abap.dec(23,2 ) ) AS TransferStockStorageLocCurVal,
cast(0 as abap.dec(23,2 ) ) AS TransferStockPlantCurVal,
cast(0 as abap.dec(23,2 ) ) AS StockInTransitCurVal,
cast(0 as abap.dec(23,2 ) ) AS BlockedStockCurVal,
cast(0 as abap.dec(23,2 ) ) AS RestrictedStockCurVal,
cast(0 as abap.dec(23,2 ) ) AS TiedEmptiesStockCurVal,
cast(0 as abap.dec(23,2 ) ) AS GoodsReceiptBlockedStockCurVal
FROM marc
LEFT OUTER JOIN F_Mmim_Mathlp_Vh AS _Material ON Material = _Material.Material -- association [1..1]
LEFT OUTER JOIN F_Mmim_Bukrs_Plant AS _F_Mmim_Bukrs_Plant ON Plant = _F_Mmim_Bukrs_Plant.Plant -- association [1..1]
LEFT OUTER JOIN F_Mmim_Mbew_Plant AS _F_Mmim_Mbew_Plant ON Material = _F_Mmim_Mbew_Plant.Material AND Plant = _F_Mmim_Mbew_Plant.Plant -- association [1..*]
;
Learn More
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- 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