StockAccount2KeyFigureSum
Convert Stock in account model to key figure - SUM
StockAccount2KeyFigureSum is a CDS View that provides data about "Convert Stock in account model to key figure - SUM" in SAP S/4HANA. It reads from 1 data source (matdoc_extract) and exposes 15 fields with key fields matbf, werks, lgort_sid, charg_sid, lifnr_sid. Part of development package MBND_RESTRICTED.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| matdoc_extract | matdoc_extract | from |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.sqlViewName | STKACCT2KFSUM | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ClientHandling.algorithm | #AUTOMATED | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | matbf | matbf | ||
| KEY | werks | werks | ||
| KEY | lgort_sid | lgort_sid | ||
| KEY | charg_sid | charg_sid | ||
| KEY | lifnr_sid | lifnr_sid | ||
| KEY | mat_kdauf | mat_kdauf | ||
| KEY | mat_kdpos | mat_kdpos | ||
| KEY | mat_pspnr | mat_pspnr | ||
| KEY | kunnr_sid | kunnr_sid | ||
| sobkz | sobkz | |||
| lbbsa_sid | lbbsa_sid | |||
| meins | meins | |||
| stock_ind_l2 | stock_ind_l2 | |||
| stock_qty_l1 | ||||
| stock_qty_l2 |
@AbapCatalog.preserveKey: true
@AbapCatalog:
{
sqlViewName: 'STKACCT2KFSUM',
compiler.compareFilter: true
}
@ObjectModel:
{
usageType:
{
sizeCategory: #XXL,
serviceQuality: #D,
dataClass:#TRANSACTIONAL
}
}
@ClientHandling.algorithm: #AUTOMATED
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view StockAccount2KeyFigureSum
as select from matdoc_extract
{
key matbf,
key werks,
key lgort_sid,
key charg_sid,
key lifnr_sid,
key mat_kdauf,
key mat_kdpos,
key mat_pspnr,
key kunnr_sid,
key disub_owner_sid,
sobkz,
lbbsa_sid,
meins,
stock_ind_l2,
sum(stock_qty_l1) as stock_qty_l1,
sum(stock_vkwrt_l1) as stock_vkwrt_l1,
sum(stock_qty_l2) as stock_qty_l2,
sum(stock_vkwrt_l2) as stock_vkwrt_l2
}
where meins <> ''
group by
matbf,
werks,
lgort_sid,
charg_sid,
lifnr_sid,
mat_kdauf,
mat_kdpos,
mat_pspnr,
kunnr_sid,
disub_owner_sid,
sobkz,
lbbsa_sid,
meins,
stock_ind_l2
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