FAC_CDS_UH_STSTCLKEYFIG
Universal Hier Statistical Key Figure
FAC_CDS_UH_STSTCLKEYFIG is a CDS View that provides data about "Universal Hier Statistical Key Figure" in SAP S/4HANA. It reads from 3 data sources (uhdt_clfd_val, uhdt_hier, uhdt_vrsn) and exposes 13 fields. It has 1 association to related views. Part of development package FINS_FI_UH.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| uhdt_clfd_val | clfdvalue | inner |
| uhdt_hier | hier | left_outer |
| uhdt_vrsn | version | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | fac_cds_uh_category | to_category | $projection.HierarchyCategory = to_category.CategoryKey |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FACV_UH_STKFHIER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| EndUserText.label | Universal Hier Statistical Key Figure | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| VersionId | uhdt_vrsn | ver_id | Version ID | |
| ValidityStartDate | uhdt_vrsn | ver_vldfm | Valid From | |
| ValidityEndDate | uhdt_vrsn | ver_vldto | Valid To | |
| VersionMessage | uhdt_vrsn | ver_msg | Note | |
| ver_statusendasVersionStatus | ||||
| VersionStatusText | ||||
| HierarchyCategory | uhdt_vrsn | hier_catg | Type | |
| HierarchyId | ||||
| HierarchyText | uhdt_hier | hier_desc | Description | |
| HierarchyVersionText | ||||
| val_lowascctrlendasControllingArea | ||||
| hier_descasvhdecendasHierarchyTextUpper | ||||
| to_category | to_category |
Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.
-- Derived SQL interpretation of CDS view FAC_CDS_UH_STSTCLKEYFIG.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: FACV_UH_STKFHIER
CREATE VIEW FAC_CDS_UH_STSTCLKEYFIG AS
SELECT
version.ver_id AS VersionId,
version.ver_vldfm AS ValidityStartDate,
version.ver_vldto AS ValidityEndDate,
version.ver_msg AS VersionMessage,
case when ( ver_status = 'R' or ver_status = 'A' ) and locked_by = $session.user then cast ('I' as vrsst ) else version.ver_status end as VersionStatus AS ver_statusendasVersionStatus,
cast( '' as vrstxt) AS VersionStatusText,
version.hier_catg AS HierarchyCategory,
cast( version.hier_hid as vhrid) AS HierarchyId,
hier.hier_desc AS HierarchyText,
cast( version.hier_hid as vhdec) AS HierarchyVersionText,
case clfdvalue.val_sign when 'S' then cast( clfdvalue.val_low as cctrl) when 'R' then cast( concat(clfdvalue.val_low,concat('~',clfdvalue.val_high)) as cctrl) else cast( clfdvalue.val_low as cctrl) end as ControllingArea AS val_lowascctrlendasControllingArea,
case when hier.hier_desc is null then '' else cast( upper(hier.hier_desc) as vhdec ) end as HierarchyTextUpper AS hier_descasvhdecendasHierarchyTextUpper,
to_category
FROM uhdt_vrsn AS version
LEFT OUTER JOIN uhdt_hier AS hier ON /* join condition not captured in parsed metadata */
INNER JOIN uhdt_clfd_val AS clfdvalue ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN fac_cds_uh_category AS to_category ON HierarchyCategory = to_category.CategoryKey -- association [1..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA