nsdm_e_mstq_agg

DDL: NSDM_DDL_MSTQ_AGG SQL: NSDM_V_MSTQ_AGG Type: view

MSTQ Compatibility View: Aggregation

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

Data Sources (1)

SourceAliasJoin Type
matdoc_extract matdoc_extract from

Annotations (11)

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

KeyFieldSource TableSource FieldDescription
KEY mandt mandt
KEY matnr matbf
KEY werks werks
KEY charg charg_sid
KEY sobkz sobkz
KEY pspnr mat_pspnr
stock_qty
gjper_max
cpudt_min
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.sqlViewName:      'NSDM_V_MSTQ_AGG'
@EndUserText.label:            'MSTQ Compatibility View: Aggregation'
@DataAging.noAgingRestriction: 'false'

@ObjectModel.usageType.sizeCategory: 'L'
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ClientHandling.algorithm: #AUTOMATED
@AccessControl.authorizationCheck: #NOT_ALLOWED
@AbapCatalog.viewEnhancementCategory: #PROJECTION_LIST
define view nsdm_e_mstq_agg as
select from matdoc_extract
{
key mandt,
key matbf     as matnr, 
key werks,
key charg_sid as charg,
key sobkz,
key mat_pspnr as pspnr,

sum(stock_qty_l1)   as stock_qty,
sum(/cwm/stock_qty_l1)   as /cwm/stock_qty,
max(gjper_curr_per) as gjper_max,
min(cpudt_l1)          as cpudt_min
}
where charg_sid <> ''
  and (sobkz = 'Q'
       and lbbsa_sid = '10')

group by mandt, matbf, werks, charg_sid, sobkz, mat_pspnr, lbbsa_sid   
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"MATDOC_EXTRACT"
],
"ASSOCIATED":
[],
"BASE":
[],
"VERSION":0
}
}*/