nsdm_e_mssah

DDL: NSDM_DDL_MSSAH SQL: NSDM_V_MSSAH Type: view

CDS View for MSSAH on NSDM_T_MTDCSA

nsdm_e_mssah is a CDS View that provides data about "CDS View for MSSAH on NSDM_T_MTDCSA" in SAP S/4HANA. It reads from 2 data sources (nsdm_e_mssah_agg, nsdm_e_mssah_per) and exposes 12 fields with key fields mandt, matnr, werks, sobkz, vbeln.

Data Sources (2)

SourceAliasJoin Type
nsdm_e_mssah_agg a left_outer
nsdm_e_mssah_per p from

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName NSDM_V_MSSAH view
EndUserText.label CDS View for MSSAH on NSDM_T_MTDCSA 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 (12)

KeyFieldSource TableSource FieldDescription
KEY mandt nsdm_e_mssah_per mandt Editing Client
KEY matnr nsdm_e_mssah_per matnr Vehicle Model
KEY werks nsdm_e_mssah_per werks Receiving Plant
KEY sobkz nsdm_e_mssah_per sobkz Special Stock
KEY vbeln nsdm_e_mssah_per vbeln SD Sched. Agmt
KEY posnr nsdm_e_mssah_per posnr WBS Element
KEY lfgja
KEY lfmon
satra
sabwe
/cwm/satra
/cwm/sabwe

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_mssah.
-- 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_MSSAH

CREATE VIEW nsdm_e_mssah AS
SELECT
  p.mandt AS mandt,
  p.matnr AS matnr,
  p.werks AS werks,
  p.sobkz AS sobkz,
  p.vbeln AS vbeln,
  p.posnr AS posnr,
  cast(substring(p.gjper, 1, 4) as abap.numc(4)) AS lfgja,
  cast(substring(p.gjper, 6, 2) as abap.numc(2)) AS lfmon,
  sum(case a.lbbsa when '06' then a.stock_qty else 0 end) AS satra,
  sum(case a.lbbsa when '10' then a.stock_qty else 0 end) AS sabwe,
  sum(case a.lbbsa when '06' then a./cwm/stock_qty else 0 end) AS /cwm/satra,
  sum(case a.lbbsa when '10' then a./cwm/stock_qty else 0 end) AS /cwm/sabwe
FROM nsdm_e_mssah_per AS p
LEFT OUTER JOIN nsdm_e_mssah_agg AS a ON /* join condition not captured in parsed metadata */
;