nsdm_e_mkol_diff

DDL: NSDM_DDL_MKOL_DIFF SQL: NSDM_V_MKOL_DIFF Type: view Package: MBND_PUBLIC

MKOL Compatibility View: Differentiation

nsdm_e_mkol_diff is a CDS View that provides data about "MKOL Compatibility View: Differentiation" in SAP S/4HANA. It reads from 1 data source (nsdm_e_mkol_agg) and exposes 27 fields with key fields mandt, matnr, werks, lgort, charg. Part of development package MBND_PUBLIC.

Data Sources (1)

SourceAliasJoin Type
nsdm_e_mkol_agg nsdm_e_mkol_agg from

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName NSDM_V_MKOL_DIFF view
EndUserText.label MKOL 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 (27)

KeyFieldSource TableSource FieldDescription
KEY mandt mandt Editing Client
KEY matnr matnr Vehicle Model
KEY werks werks Receiving Plant
KEY lgort lgort Sublocation
KEY charg charg Chargeable Proc.
KEY sobkz sobkz Special Stock
KEY lifnr lifnr Vendor no.
gjper
slabs
sinsm
seinm
sspem
svmla
svmin
svmei
svmsp
mmeng
ameng
/cwm/slabs
/cwm/sinsm
/cwm/seinm
/cwm/sspem
/cwm/svmla
/cwm/svmin
/cwm/svmei
/cwm/svmsp
korue

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_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_MKOL_DIFF

CREATE VIEW nsdm_e_mkol_diff AS
SELECT
  mandt,
  matnr,
  werks,
  lgort,
  charg,
  sobkz,
  lifnr,
  max(gjper_max) AS gjper,
  sum(case lbbsa when '01' then stock_qty else 0 end) AS slabs,
  sum(case lbbsa when '02' then stock_qty else 0 end) AS sinsm,
  sum(case lbbsa when '08' then stock_qty else 0 end) AS seinm,
  sum(case lbbsa when '07' then stock_qty else 0 end) AS sspem,
  cast(0 as abap.quan(13, 3)) AS svmla,
  cast(0 as abap.quan(13, 3)) AS svmin,
  cast(0 as abap.quan(13, 3)) AS svmei,
  cast(0 as abap.quan(13, 3)) AS svmsp,
  sum(case lbbsa when '01' then /cwm/stock_qty else 0 end) AS /cwm/slabs,
  sum(case lbbsa when '02' then /cwm/stock_qty else 0 end) AS /cwm/sinsm,
  sum(case lbbsa when '08' then /cwm/stock_qty else 0 end) AS /cwm/seinm,
  sum(case lbbsa when '07' then /cwm/stock_qty else 0 end) AS /cwm/sspem,
  cast(0 as abap.quan(13, 3)) AS /cwm/svmla,
  cast(0 as abap.quan(13, 3)) AS /cwm/svmin,
  cast(0 as abap.quan(13, 3)) AS /cwm/svmei,
  cast(0 as abap.quan(13, 3)) AS /cwm/svmsp,
  'X' AS korue
FROM nsdm_e_mkol_agg
;