I_StatisticalKeyFigureDocument
Statistical Key Figure Document
I_StatisticalKeyFigureDocument is a Basic CDS View that provides data about "Statistical Key Figure Document" in SAP S/4HANA. It reads from 1 data source (cobk) and exposes 23 fields with key fields ControllingArea, StatisticalKeyFigureDocument. It has 5 associations to related views. Part of development package FINS_SKF_DOCUMENT_VDM.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| cobk | cobk | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ControllingArea | _ControllingArea | $projection.ControllingArea = _ControllingArea.ControllingArea |
| [1..1] | I_Currency | _ControllingAreaCurrency | $projection.ControllingAreaCurrency = _ControllingAreaCurrency.Currency |
| [0..1] | I_ReferenceDocumentType | _ReferenceDocumentType | $projection.ReferenceDocumentType = _ReferenceDocumentType.ReferenceDocumentType |
| [0..*] | I_ReferenceDocumentTypeText | _ReferenceDocumentTypeText | $projection.ReferenceDocumentType = _ReferenceDocumentTypeText.ReferenceDocumentType |
| [1..1] | I_StstclKeyFigReversalDocument | _ReversalStstclKeyFigureValue | $projection.ControllingArea = _ReversalStstclKeyFigureValue.ControllingArea and $projection.StatisticalKeyFigureDocument = _ReversalStstclKeyFigureValue.ReversedReferenceDocument |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Statistical Key Figure Document | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view | |
| VDM.viewType | #BASIC | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ControllingArea | kokrs | ||
| KEY | StatisticalKeyFigureDocument | belnr | ||
| FiscalPeriod | ||||
| FiscalYear | ||||
| ControllingBusTransacType | vrgng | |||
| PostingDate | budat | |||
| DocumentDate | bldat | |||
| StatKeyFigDocumentCreationDate | cpudt | |||
| StatKeyFigDocumentCreatedBy | usnam | |||
| ControllingDocumentHeaderText | bltxt | |||
| IsReversalDocument | stflg | |||
| IsReversed | stokz | |||
| ReversedReferenceDocument | ||||
| ExchangeRateDate | ||||
| ExchangeRateType | kurst | |||
| ControllingAreaCurrency | kwaer | |||
| ReferenceDocumentType | ||||
| int1asStatusCriticality | ||||
| CreationDateTime | ||||
| _ControllingArea | _ControllingArea | |||
| _ReferenceDocumentType | _ReferenceDocumentType | |||
| _ControllingAreaCurrency | _ControllingAreaCurrency | |||
| _ReferenceDocumentTypeText | _ReferenceDocumentTypeText |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Statistical Key Figure Document'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType:{
serviceQuality: #C,
sizeCategory: #L,
dataClass: #MIXED
}
@VDM: {
lifecycle.contract.type: #SAP_INTERNAL_API,
viewType: #BASIC }
define view entity I_StatisticalKeyFigureDocument
as select from cobk
association [0..1] to I_ControllingArea as _ControllingArea on $projection.ControllingArea = _ControllingArea.ControllingArea
association [1..1] to I_Currency as _ControllingAreaCurrency on $projection.ControllingAreaCurrency = _ControllingAreaCurrency.Currency
association [0..1] to I_ReferenceDocumentType as _ReferenceDocumentType on $projection.ReferenceDocumentType = _ReferenceDocumentType.ReferenceDocumentType
association [0..*] to I_ReferenceDocumentTypeText as _ReferenceDocumentTypeText on $projection.ReferenceDocumentType = _ReferenceDocumentTypeText.ReferenceDocumentType
association [1..1] to I_StstclKeyFigReversalDocument as _ReversalStstclKeyFigureValue on $projection.ControllingArea = _ReversalStstclKeyFigureValue.ControllingArea
and $projection.StatisticalKeyFigureDocument = _ReversalStstclKeyFigureValue.ReversedReferenceDocument
//Association to GrantText, BudgetPeriodText and FunctionalAreaText missing yet
{
@ObjectModel.foreignKey.association: '_ControllingArea'
key kokrs as ControllingArea,
key belnr as StatisticalKeyFigureDocument,
@Semantics.fiscal.period: true
cast(perab as fins_fiscalperiod preserving type ) as FiscalPeriod,
cast(gjahr as fis_gjahr_no_conv ) as FiscalYear,
vrgng as ControllingBusTransacType,
budat as PostingDate,
bldat as DocumentDate,
cpudt as StatKeyFigDocumentCreationDate,
usnam as StatKeyFigDocumentCreatedBy,
bltxt as ControllingDocumentHeaderText,
stflg as IsReversalDocument,
stokz as IsReversed,
cast(refbn as reversedreferencedocument preserving type ) as ReversedReferenceDocument,
cast(wsdat as fin_currconvdat preserving type ) as ExchangeRateDate,
kurst as ExchangeRateType,
@ObjectModel.foreignKey.association: '_ControllingAreaCurrency'
kwaer as ControllingAreaCurrency,
@ObjectModel.foreignKey.association: '_ReferenceDocumentType'
cast(awtyp as fis_awtyp preserving type ) as ReferenceDocumentType,
cast(
case stokz
when '' then '1'
else '2'
end as fcoua_statkeyfigdoc_status) as StstclKeyFigureDocumentStatus,
cast(
case stokz
when '' then 3
else 1
end as abap.int1 ) as StatusCriticality,
cast(
case stokz
when '' then '1'
else '2'
end as fco_document_status_text) as StatusName,
cast(
case stokz
when '' then ''
else _ReversalStstclKeyFigureValue.StatisticalKeyFigureDocument
end as reversalreferencedocument preserving type ) as ReversalReferenceDocument,
cast(
case stflg
when '' then '1'
else '2'
end as fco_posting_type) as AllocationPostingType,
cast(
case stflg
when '' then '1'
else '2'
end as fco_posting_type_text) as AllocationPostingTypeText,
cast( timestmp as vdm_creationdatetime ) as CreationDateTime,
_ControllingArea,
_ReferenceDocumentType,
_ControllingAreaCurrency,
_ReferenceDocumentTypeText
}
where
vrgng = 'RKS'
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