nsdm_e_mstq

DDL: NSDM_DDL_MSTQ SQL: NSDM_V_MSTQ Type: view

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)

SourceAliasJoin Type
mcha m inner
nsdm_e_mstq_diff n from

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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 */
;