nsdm_e_msku
MSKU Compatibility View
nsdm_e_msku is a CDS View that provides data about "MSKU Compatibility View" in SAP S/4HANA. It reads from 1 data source (msku) and exposes 36 fields with key fields mandt, matnr, werks, charg, sobkz.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| msku | t | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | NSDM_V_MSKU | view | |
| EndUserText.label | MSKU Compatibility View | view | |
| DataAging.noAgingRestriction | false | view | |
| ObjectModel.usageType.sizeCategory | L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #AUTOMATED | view | |
| AccessControl.authorizationCheck | #NOT_ALLOWED | view | |
| AbapCatalog.viewEnhancementCategory | #PROJECTION_LIST | view |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | mandt | msku | mandt | Editing Client |
| KEY | matnr | msku | matnr | Vehicle Model |
| KEY | werks | msku | werks | Receiving Plant |
| KEY | charg | msku | charg | Chargeable Proc. |
| KEY | sobkz | msku | sobkz | Special Stock |
| KEY | kunnr | msku | kunnr | Stock customer |
| lfgja | ||||
| lfmon | ||||
| kuspr | msku | kuspr | Phys. Inv. Blk | |
| kulab | ||||
| kuins | ||||
| kuvla | ||||
| kuvin | ||||
| kuill | msku | kuill | Warehouse stock | |
| kuilq | msku | kuilq | QualInspStock | |
| kuvll | msku | kuvll | Warehouse stock | |
| kuvlq | msku | kuvlq | QualInspStock | |
| kufll | msku | kufll | Warehouse stock | |
| kuflq | msku | kuflq | QualInspStock | |
| kudll | msku | kudll | Last Count Date | |
| kuein | ||||
| kuvei | ||||
| ersda | msku | ersda | Entry Date | |
| kujin | msku | kujin | Fiscal year of current physical inventory indicator | |
| kurue | ||||
| kuuml | ||||
| sgt_scat | msku | sgt_scat | Stock Segment | |
| fsh_season | ||||
| fsh_theme | ||||
| /cwm/kulab | ||||
| /cwm/kuins | ||||
| /cwm/kuein | ||||
| /cwm/kuuml | ||||
| /cwm/kuvla | ||||
| /cwm/kuvin | ||||
| /cwm/kuvei |
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 nsdm_e_msku.
-- 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: NSDM_V_MSKU
CREATE VIEW nsdm_e_msku AS
SELECT
t.mandt AS mandt,
t.matnr AS matnr,
t.werks AS werks,
t.charg AS charg,
t.sobkz AS sobkz,
t.kunnr AS kunnr,
case when m.gjper is null then '0000' else cast(substring(m.gjper, 1, 4) as abap.numc(4)) end AS lfgja,
case when m.gjper is null then '00' else cast(substring(m.gjper, 6, 2) as abap.numc(2)) end AS lfmon,
t.kuspr AS kuspr,
case when m.kulab is null then 0 else m.kulab end AS kulab,
case when m.kuins is null then 0 else m.kuins end AS kuins,
case when m.kuvla is null then 0 else m.kuvla end AS kuvla,
case when m.kuvin is null then 0 else m.kuvin end AS kuvin,
t.kuill AS kuill,
t.kuilq AS kuilq,
t.kuvll AS kuvll,
t.kuvlq AS kuvlq,
t.kufll AS kufll,
t.kuflq AS kuflq,
t.kudll AS kudll,
case when m.kuein is null then 0 else m.kuein end AS kuein,
case when m.kuvei is null then 0 else m.kuvei end AS kuvei,
t.ersda AS ersda,
t.kujin AS kujin,
case when m.kurue is null then ' ' else m.kurue end AS kurue,
case when m.kuuml is null then 0 else m.kuuml end AS kuuml,
t.sgt_scat AS sgt_scat,
' ' AS fsh_season,
' ' AS fsh_theme,
case when m./cwm/kulab is null then 0 else m./cwm/kulab end AS /cwm/kulab,
case when m./cwm/kuins is null then 0 else m./cwm/kuins end AS /cwm/kuins,
case when m./cwm/kuein is null then 0 else m./cwm/kuein end AS /cwm/kuein,
case when m./cwm/kuuml is null then 0 else m./cwm/kuuml end AS /cwm/kuuml,
case when m./cwm/kuvla is null then 0 else m./cwm/kuvla end AS /cwm/kuvla,
case when m./cwm/kuvin is null then 0 else m./cwm/kuvin end AS /cwm/kuvin,
case when m./cwm/kuvei is null then 0 else m./cwm/kuvei end AS /cwm/kuvei
FROM msku AS t
;
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