nsdm_e_mstq
MSTQ Compatibility View
nsdm_e_mstq is a CDS View that provides data about "MSTQ Compatibility View" in SAP S/4HANA. It reads from 2 data sources (mcha, nsdm_e_mstq_diff) and exposes 13 fields with key fields mandt, matnr, werks, charg, sobkz.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| mcha | m | inner |
| nsdm_e_mstq_diff | n | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | NSDM_V_MSTQ | view | |
| EndUserText.label | MSTQ 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 (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | mandt | nsdm_e_mstq_diff | mandt | Editing Client |
| KEY | matnr | nsdm_e_mstq_diff | matnr | Vehicle Model |
| KEY | werks | nsdm_e_mstq_diff | werks | Receiving Plant |
| KEY | charg | nsdm_e_mstq_diff | charg | Chargeable Proc. |
| KEY | sobkz | sobkz | Special Stock | |
| KEY | pspnr | pspnr | WBS Element | |
| KEY | bwtar | mcha | bwtar | Valuation Type |
| lfgja | ||||
| lfmon | ||||
| qwesb | qwesb | |||
| ersda | nsdm_e_mstq_diff | ersda | Entry Date | |
| tqrue | tqrue | |||
| cwmqwesb | /cwm/qwesb |
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_mstq.
-- 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_MSTQ
CREATE VIEW nsdm_e_mstq AS
SELECT
n.mandt AS mandt,
n.matnr AS matnr,
n.werks AS werks,
n.charg AS charg,
sobkz,
pspnr,
m.bwtar AS bwtar,
cast(substring(gjper, 1, 4) as abap.numc(4)) AS lfgja,
cast(substring(gjper, 6, 2) as abap.numc(2)) AS lfmon,
qwesb,
n.ersda AS ersda,
tqrue,
/cwm/qwesb AS cwmqwesb
FROM nsdm_e_mstq_diff AS n
INNER JOIN mcha AS m ON /* join condition not captured in parsed metadata */
;
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