nsdm_e_mkolh_agg

DDL: NSDM_DDL_MKOLH_AGG SQL: NSDM_V_MKOLH_AGG Type: view

CDS View for Sums on MKOLH per Period

nsdm_e_mkolh_agg is a CDS View that provides data about "CDS View for Sums on MKOLH per Period" in SAP S/4HANA. It reads from 1 data source (matdoc_extract) and exposes 10 fields with key fields mandt, matnr, werks, lgort, charg.

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_MKOLH_AGG view
EndUserText.label CDS View for Sums on MKOLH per Period 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 (10)

KeyFieldSource TableSource FieldDescription
KEY mandt mandt
KEY matnr matbf
KEY werks werks
KEY lgort lgort_sid
KEY charg charg_sid
KEY sobkz sobkz
KEY lifnr lifnr_sid
KEY gjper gjper
KEY lbbsa lbbsa_sid
stock_qty
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.sqlViewName:      'NSDM_V_MKOLH_AGG'
@EndUserText.label:            'CDS View for Sums on MKOLH per Period'
@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_mkolh_agg  as
select from matdoc_extract
                         
{
key mandt,
key matbf     as matnr, 
key werks,
key lgort_sid as lgort,
key charg_sid as charg,
key sobkz,
key lifnr_sid as lifnr,
key gjper,
key lbbsa_sid as lbbsa,

sum(stock_qty_l1)      as stock_qty,
sum(/cwm/stock_qty_l1) as /cwm/stock_qty
}

where (sobkz = 'K'
    or sobkz = 'M')    
  and (lbbsa_sid = '01'
    or lbbsa_sid = '02'
    or lbbsa_sid = '07'
    or lbbsa_sid = '08')

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