nsdm_e_mssa_agg
MSSA Compatibility View: Aggregation
nsdm_e_mssa_agg is a CDS View that provides data about "MSSA Compatibility View: Aggregation" in SAP S/4HANA. It reads from 1 data source (matdoc_extract) and exposes 10 fields with key fields mandt, matnr, werks, sobkz, vbeln.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| matdoc_extract | matdoc_extract | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | NSDM_V_MSSA_AGG | view | |
| EndUserText.label | MSSA Compatibility View: Aggregation | view | |
| DataAging.noAgingRestriction | false | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.sizeCategory | L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #AUTOMATED | view | |
| AbapCatalog.viewEnhancementCategory | #PROJECTION_LIST | view |
Fields (10)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | mandt | mandt | ||
| KEY | matnr | matbf | ||
| KEY | werks | werks | ||
| KEY | sobkz | |||
| KEY | vbeln | mat_kdauf | ||
| KEY | posnr | mat_kdpos | ||
| KEY | lbbsa | lbbsa_sid | ||
| gjper_max | ||||
| cpudt_min | ||||
| kzbws | kzbws |
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.sqlViewName: 'NSDM_V_MSSA_AGG'
@EndUserText.label: 'MSSA Compatibility View: Aggregation'
@DataAging.noAgingRestriction: 'false'
@AccessControl.authorizationCheck:#NOT_REQUIRED
@ObjectModel.usageType.sizeCategory: 'L'
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #TRANSACTIONAL
@ClientHandling.algorithm: #AUTOMATED
@AbapCatalog.viewEnhancementCategory: #PROJECTION_LIST
define view nsdm_e_mssa_agg as
select from matdoc_extract
{
key mandt,
key matbf as matnr,
key werks,
key case sobkz when 'F' then 'E' else sobkz end as sobkz, //2971225
key mat_kdauf as vbeln,
key mat_kdpos as posnr,
key lbbsa_sid as lbbsa,
sum(case sobkz when 'E' then stock_qty_l2 //2971225
when 'T' then stock_qty_l2
else 0 end) as stock_qty,
sum(case sobkz when 'E' then /cwm/stock_qty_l2 //2971225
when 'T' then /cwm/stock_qty_l2
else 0 end) as /cwm/stock_qty,
max(gjper_curr_per) as gjper_max,
min(cpudt_l2) as cpudt_min,
kzbws
}
where stock_ind_l2 = ''
and (
((sobkz = 'E' or sobkz = 'F') and mat_kdauf != '' //2971225
and ( lbbsa_sid = '01' or lbbsa_sid = '02' or lbbsa_sid = '06' or
lbbsa_sid = '07' or lbbsa_sid = '08' or lbbsa_sid = '10' )
)
or
(sobkz = 'T' and lbbsa_sid = '07' )
)
group by mandt, matbf, werks, sobkz, mat_kdauf, mat_kdpos, lbbsa_sid, kzbws
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"MATDOC_EXTRACT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA