nsdm_e_mslb_diff

DDL: NSDM_DDL_MSLB_DIFF SQL: NSDM_V_MSLB_DIFF Type: view

MSLB Compatibility View: Differentiation

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

Data Sources (1)

SourceAliasJoin Type
nsdm_e_mslb_agg nsdm_e_mslb_agg from

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName NSDM_V_MSLB_DIFF view
EndUserText.label MSLB 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 (22)

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 lifnr lifnr Vendor no.
gjper
lblab
lbins
lbvla
lbvin
lbein
lbvei
lbuml
lbrue
/cwm/lblab
/cwm/lbins
/cwm/lbvla
/cwm/lbvin
/cwm/lbein
/cwm/lbvei
/cwm/lbuml

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_mslb_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_MSLB_DIFF

CREATE VIEW nsdm_e_mslb_diff AS
SELECT
  mandt,
  matnr,
  werks,
  charg,
  sobkz,
  lifnr,
  max(gjper_max) AS gjper,
  sum(case lbbsa when '01' then stock_qty else 0 end) AS lblab,
  sum(case lbbsa when '02' then stock_qty else 0 end) AS lbins,
  cast(0 as abap.quan(13, 3)) AS lbvla,
  cast(0 as abap.quan(13, 3)) AS lbvin,
  sum(case lbbsa when '08' then stock_qty else 0 end) AS lbein,
  cast(0 as abap.quan(13, 3)) AS lbvei,
  sum(case lbbsa when '05' then stock_qty else 0 end) AS lbuml,
  'X' AS lbrue,
  sum(case lbbsa when '01' then /cwm/stock_qty else 0 end) AS /cwm/lblab,
  sum(case lbbsa when '02' then /cwm/stock_qty else 0 end) AS /cwm/lbins,
  cast(0 as abap.quan(13, 3)) AS /cwm/lbvla,
  cast(0 as abap.quan(13, 3)) AS /cwm/lbvin,
  sum(case lbbsa when '08' then /cwm/stock_qty else 0 end) AS /cwm/lbein,
  cast(0 as abap.quan(13, 3)) AS /cwm/lbvei,
  sum(case lbbsa when '05' then /cwm/stock_qty else 0 end) AS /cwm/lbuml
FROM nsdm_e_mslb_agg
;