FAC_UH_MIGRTN_I_HIERARCHY_TYPE
Hierarchy type view - data model
FAC_UH_MIGRTN_I_HIERARCHY_TYPE is a CDS View that provides data about "Hierarchy type view - data model" in SAP S/4HANA. It reads from 2 data sources (uhm_type, uhm_hier_type_ov) and exposes 20 fields with key field HierarchyType. It has 4 associations to related views.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| uhm_type | hier_type | from |
| uhm_hier_type_ov | hier_type_ov | left_outer |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | uhm_typet | _TEXT | hier_type.hier_type = _TEXT.hier_type and _TEXT.lang = $session.system_language |
| [1..1] | fac_cds_uh_category | _to_category | $projection.HierarchyCategory = _to_category.CategoryKey |
| [0..*] | FAC_UH_MIGRTN_I_HIER_TYPE_LOG | _changelog | $projection.HierarchyType = _changelog.HierarchyType |
| [0..*] | FAC_UH_MIGRTN_I_HIERARCHY_ID | _HierarchyID | |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Hierarchy type view - data model | view | |
| Search.searchable | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | HierarchyType | uhm_type | hier_type | Hierarchy Type |
| HierarchyCategory | uhm_type | uh_hier_type | Type | |
| IsCompleted | uhm_hier_type_ov | hier_type_status | Marked as Completed | |
| TotalHierarchyCount | Total Number | |||
| MigratedHierarchyCount | Migrated Hierarchies | |||
| NotRelevantHierarchyCount | Not Relevant for Migration | |||
| WhereUsedMigratedCount | Where-Used Updated | |||
| CompletionHierarchyCount | Progress | |||
| Editable | Editable | |||
| PopTransport | Pop Transport | |||
| HierarchyTypeName | _TEXT | hier_type_text | Hierarchy Type Descr | |
| ApplicationTitle | _TEXT | app_title | Application Title | |
| ProgressCriticality | 3 | |||
| AllowNewID | uhm_type | allow_new_id | Allow new hier. ID | |
| AllowPartialMigration | uhm_type | allow_partial_mig | Allow Partial Migr. | |
| HierarchyTypeSearch | ||||
| _TEXT | _TEXT | |||
| _HierarchyID | _HierarchyID | |||
| _to_category | _to_category | |||
| _changelog | _changelog |
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_UH_MIGRTN_I_HIERARCHY_TYPE.
-- 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.
CREATE VIEW FAC_UH_MIGRTN_I_HIERARCHY_TYPE AS
SELECT
hier_type.hier_type AS HierarchyType,
hier_type.uh_hier_type AS HierarchyCategory,
hier_type_ov.hier_type_status AS IsCompleted,
cast( '0' as hiercount ) AS TotalHierarchyCount,
cast( '0' as hiercount ) AS MigratedHierarchyCount,
cast( '0' as hiercount ) AS NotRelevantHierarchyCount,
cast( '0' as hiercount ) AS WhereUsedMigratedCount,
cast( '0' as hiercount ) AS CompletionHierarchyCount,
cast( '' as htypee ) AS Editable,
cast( '' as char1 ) AS PopTransport,
_TEXT.hier_type_text AS HierarchyTypeName,
_TEXT.app_title AS ApplicationTitle,
3 AS ProgressCriticality,
hier_type.allow_new_id AS AllowNewID,
hier_type.allow_partial_mig AS AllowPartialMigration,
cast( '' as htype ) AS HierarchyTypeSearch
FROM uhm_type AS hier_type
LEFT OUTER JOIN uhm_hier_type_ov AS hier_type_ov ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN uhm_typet AS _TEXT ON hier_type.hier_type = _TEXT.hier_type AND _TEXT.lang = $session.system_language -- association [0..1]
LEFT OUTER JOIN fac_cds_uh_category AS _to_category ON HierarchyCategory = _to_category.CategoryKey -- association [1..1]
LEFT OUTER JOIN FAC_UH_MIGRTN_I_HIER_TYPE_LOG AS _changelog ON HierarchyType = _changelog.HierarchyType -- association [0..*]
LEFT OUTER JOIN FAC_UH_MIGRTN_I_HIERARCHY_ID AS _HierarchyID ON /* condition not available in parsed metadata */ -- association [0..*]
;
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