nsdm_e_mkol
MKOL Compatibility View
nsdm_e_mkol is a CDS View that provides data about "MKOL Compatibility View" in SAP S/4HANA. It reads from 1 data source (mkol) and exposes 45 fields with key fields mandt, matnr, werks, lgort, charg.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| mkol | t | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | NSDM_V_MKOL | view | |
| EndUserText.label | MKOL 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 (45)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | mandt | mkol | mandt | Editing Client |
| KEY | matnr | mkol | matnr | Vehicle Model |
| KEY | werks | mkol | werks | Receiving Plant |
| KEY | lgort | mkol | lgort | Sublocation |
| KEY | charg | mkol | charg | Chargeable Proc. |
| KEY | sobkz | mkol | sobkz | Special Stock |
| KEY | lifnr | mkol | lifnr | Vendor no. |
| lvorm | mkol | lvorm | Stock del. flag | |
| ersda | mkol | ersda | Entry Date | |
| ernam | mkol | ernam | User Name | |
| aenam | mkol | aenam | User Name | |
| laeda | mkol | laeda | Last Change | |
| lfgja | ||||
| lfmon | ||||
| spers | mkol | spers | Phys. Inv. Blk | |
| slabs | ||||
| sinsm | ||||
| seinm | ||||
| sspem | ||||
| svmla | ||||
| svmin | ||||
| svmei | ||||
| svmsp | ||||
| kzisl | mkol | kzisl | Warehouse stock | |
| kzisq | mkol | kzisq | QualInspStock | |
| kzise | mkol | kzise | Restricted-use | |
| kziss | mkol | kziss | Blocked stock | |
| kzvsl | mkol | kzvsl | Warehouse stock | |
| kzvsq | mkol | kzvsq | QualInspStock | |
| kzvse | mkol | kzvse | Restricted use | |
| kzvss | mkol | kzvss | Blocked stock | |
| mmeng | mkol | mmeng | Minimum qty | |
| ameng | mkol | ameng | Replenishmt qty | |
| kodll | mkol | kodll | Last Count Date | |
| kojin | mkol | kojin | Fiscal year of current physical inventory indicator | |
| korue | ||||
| sgt_scat | mkol | sgt_scat | Stock Segment | |
| /cwm/slabs | ||||
| /cwm/sinsm | ||||
| /cwm/seinm | ||||
| /cwm/sspem | ||||
| /cwm/svmla | ||||
| /cwm/svmin | ||||
| /cwm/svmei | ||||
| /cwm/svmsp |
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_mkol.
-- 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_MKOL
CREATE VIEW nsdm_e_mkol AS
SELECT
t.mandt AS mandt,
t.matnr AS matnr,
t.werks AS werks,
t.lgort AS lgort,
t.charg AS charg,
t.sobkz AS sobkz,
t.lifnr AS lifnr,
t.lvorm AS lvorm,
t.ersda AS ersda,
t.ernam AS ernam,
t.aenam AS aenam,
t.laeda AS laeda,
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.spers AS spers,
case when m.slabs is null then 0 else m.slabs end AS slabs,
case when m.sinsm is null then 0 else m.sinsm end AS sinsm,
case when m.seinm is null then 0 else m.seinm end AS seinm,
case when m.sspem is null then 0 else m.sspem end AS sspem,
case when m.svmla is null then 0 else m.svmla end AS svmla,
case when m.svmin is null then 0 else m.svmin end AS svmin,
case when m.svmei is null then 0 else m.svmei end AS svmei,
case when m.svmsp is null then 0 else m.svmsp end AS svmsp,
t.kzisl AS kzisl,
t.kzisq AS kzisq,
t.kzise AS kzise,
t.kziss AS kziss,
t.kzvsl AS kzvsl,
t.kzvsq AS kzvsq,
t.kzvse AS kzvse,
t.kzvss AS kzvss,
t.mmeng AS mmeng,
t.ameng AS ameng,
t.kodll AS kodll,
t.kojin AS kojin,
case when m.korue is null then ' ' else m.korue end AS korue,
t.sgt_scat AS sgt_scat,
case when m./cwm/slabs is null then 0 else m./cwm/slabs end AS /cwm/slabs,
case when m./cwm/sinsm is null then 0 else m./cwm/sinsm end AS /cwm/sinsm,
case when m./cwm/seinm is null then 0 else m./cwm/seinm end AS /cwm/seinm,
case when m./cwm/sspem is null then 0 else m./cwm/sspem end AS /cwm/sspem,
case when m./cwm/svmla is null then 0 else m./cwm/svmla end AS /cwm/svmla,
case when m./cwm/svmin is null then 0 else m./cwm/svmin end AS /cwm/svmin,
case when m./cwm/svmei is null then 0 else m./cwm/svmei end AS /cwm/svmei,
case when m./cwm/svmsp is null then 0 else m./cwm/svmsp end AS /cwm/svmsp
FROM mkol 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