nsdm_e_mstq_diff

DDL: NSDM_DDL_MSTQ_DIFF SQL: NSDM_V_MSTQ_DIFF Type: view

MSTQ Compatibility View: Differentiation

nsdm_e_mstq_diff is a CDS View that provides data about "MSTQ Compatibility View: Differentiation" in SAP S/4HANA. It reads from 1 data source (nsdm_e_mstq_agg) and exposes 11 fields with key fields mandt, matnr, werks, charg, sobkz.

Data Sources (1)

SourceAliasJoin Type
nsdm_e_mstq_agg nsdm_e_mstq_agg from

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName NSDM_V_MSTQ_DIFF view
EndUserText.label MSTQ Compatibility View: Differentiation 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 (11)

KeyFieldSource TableSource FieldDescription
KEY mandt mandt Editing Client
KEY matnr matnr Vehicle Model
KEY werks werks Receiving Plant
KEY charg charg Chargeable Proc.
KEY sobkz sobkz Special Stock
KEY pspnr pspnr WBS Element
gjper
qwesb
/cwm/qwesb
ersda
tqrue

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_diff.
-- 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_DIFF

CREATE VIEW nsdm_e_mstq_diff AS
SELECT
  mandt,
  matnr,
  werks,
  charg,
  sobkz,
  pspnr,
  max(gjper_max) AS gjper,
  sum(stock_qty) AS qwesb,
  sum(/cwm/stock_qty) AS /cwm/qwesb,
  min(cpudt_min) AS ersda,
  'X' AS tqrue
FROM nsdm_e_mstq_agg
;