nsdm_e_mardh_agg
CDS View for Sums on MARDH per Period
nsdm_e_mardh_agg is a CDS View that provides data about "CDS View for Sums on MARDH per Period" in SAP S/4HANA. It reads from 1 data source (matdoc_extract) and exposes 8 fields with key fields mandt, matnr, werks, lgort, gjper.
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_MARDH_AGG | view | |
| EndUserText.label | CDS View for Sums on MARDH 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 (8)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | mandt | mandt | ||
| KEY | matnr | matbf | ||
| KEY | werks | werks | ||
| KEY | lgort | lgort_sid | ||
| KEY | gjper | gjper | ||
| KEY | lbbsa | lbbsa_sid | ||
| stock_qty | ||||
| stock_vkwrt |
@AbapCatalog.preserveKey: true
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.sqlViewName: 'NSDM_V_MARDH_AGG'
@EndUserText.label: 'CDS View for Sums on MARDH 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_mardh_agg as
select from matdoc_extract
{
key mandt,
key matbf as matnr,
key werks,
key lgort_sid as lgort,
key gjper,
key lbbsa_sid as lbbsa,
sum(stock_qty_l2) as stock_qty,
sum(stock_vkwrt_l2) as stock_vkwrt,
sum(/cwm/stock_qty_l2) as /cwm/stock_qty
}
where stock_ind_l2 = ''
and sobkz = ''
and ( lbbsa_sid = '01'
or lbbsa_sid = '02'
or lbbsa_sid = '03'
or lbbsa_sid = '04'
or lbbsa_sid = '07'
or lbbsa_sid = '08')
group by mandt,
matbf,
werks,
lgort_sid,
gjper,
lbbsa_sid
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