FAC_UH_MIGRTN_I_HIERARCHY_ID
Hierarchy ID view - data model
FAC_UH_MIGRTN_I_HIERARCHY_ID is a CDS View that provides data about "Hierarchy ID view - data model" in SAP S/4HANA. It reads from 1 data source (uhm_hier_id_ov) and exposes 36 fields with key fields HierarchyType, HierarchyOldID, SubClass. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| uhm_hier_id_ov | uhm_hier_id_ov | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | FAC_UH_MIGRTN_I_MIGRATESTATUST | _MigrationStatusText | $projection.HierarchyMigrationStatus = _MigrationStatusText.HierarchyMigrationStatus |
| [0..*] | FAC_UH_MIGRTN_I_HIER_ID_LOG | _changelog | $projection.HierarchyType = _changelog.HierarchyType and $projection.HierarchyOldID = _changelog.HierarchyOldID and $projection.SubClass = _changelog.SubClass |
| [0..*] | FAC_UH_MIGRTN_I_HIER_WHEREUSED | _whereused | $projection.HierarchyType = _whereused.HierarchyType and $projection.HierarchyOldID = _whereused.HierarchyOldID and $projection.SubClass = _whereused.SubClass |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Hierarchy ID view - data model | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.query.implementedBy | ABAP:CL_FINS_UHMIG_HIERARCHY_ID_Q | view |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | HierarchyType | hier_type | Hierarchy Type | |
| KEY | HierarchyOldID | hier_old_id | Hierarchy Old ID | |
| KEY | SubClass | sub_class | Class | |
| HierarchyNewID | hier_new_id | Hierarchy New ID | ||
| HierarchyMigrationStatus | hier_mig_status | Migration Status | ||
| HierarchyMigrationStatusName | _MigrationStatusText | HierarchyMigrationStatusName | ||
| EditableInSrcApp | ||||
| LastUpdatedBy | updated_by | Version Updated By | ||
| LastUpdatedAt | updated_at | Version Update Time | ||
| JobID | ||||
| JobName | ||||
| LogID | ||||
| JobFailFlag | ||||
| HierarchyTypeName | _HierarchyType | HierarchyTypeName | ||
| HierarchyTypeIsCompleted | _HierarchyType | IsCompleted | ||
| HierarchyTypeEditable | ||||
| HierarchyTypeAllowNewID | ||||
| HierTypeAllowPartialMigration | ||||
| SubClassText | ||||
| clientNULLasLastUpdatedOnDate | ||||
| char10asLastUpdatedAtTime | ||||
| HierarchyIDText | ||||
| HierarchyNewText | ||||
| HierarchyOldStatus | hier_old_status | Status | ||
| HierarchyOldStatusName | ||||
| HierarchyTypeSearch | ||||
| HierarchyOldIDSearch | ||||
| NavigationJson | ||||
| Reference | ||||
| NodeType | ||||
| NodeTypeText | ||||
| HierarchyDependency | ||||
| _HierarchyType | _HierarchyType | |||
| _MigrationStatusText | _MigrationStatusText | |||
| _changelog | _changelog | |||
| _whereused | _whereused |
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_ID.
-- 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_ID AS
SELECT
hier_type AS HierarchyType,
hier_old_id AS HierarchyOldID,
sub_class AS SubClass,
hier_new_id AS HierarchyNewID,
hier_mig_status AS HierarchyMigrationStatus,
_MigrationStatusText.HierarchyMigrationStatusName AS HierarchyMigrationStatusName,
cast( '' as editindicator ) AS EditableInSrcApp,
updated_by AS LastUpdatedBy,
updated_at AS LastUpdatedAt,
cast( '' as btcjobcnt) AS JobID,
cast( '' as btcjob) AS JobName,
cast( '' as abap.char(50)) AS LogID,
cast( '' as abap.char(20) ) AS JobFailFlag,
_HierarchyType.HierarchyTypeName AS HierarchyTypeName,
_HierarchyType.IsCompleted AS HierarchyTypeIsCompleted,
cast( '' as htypee) AS HierarchyTypeEditable,
cast( '' as uhmalnid) AS HierarchyTypeAllowNewID,
cast( '' as uhmalprtlmig) AS HierTypeAllowPartialMigration,
cast( '' as subcatgt) AS SubClassText,
tstmp_to_dats( updated_at, $session.user_timezone, $session.client, 'NULL' ) as LastUpdatedOnDate AS clientNULLasLastUpdatedOnDate,
cast(tstmp_to_tims( updated_at, $session.user_timezone, $session.client, 'NULL' ) as abap.char(10)) as LastUpdatedAtTime AS char10asLastUpdatedAtTime,
cast( '' as hidtxt) AS HierarchyIDText,
cast( '' as hidtxt) AS HierarchyNewText,
hier_old_status AS HierarchyOldStatus,
cast( '' as abap.char(20)) AS HierarchyOldStatusName,
cast( '' as htype ) AS HierarchyTypeSearch,
cast( '' as uholdhid ) AS HierarchyOldIDSearch,
cast( '' as abap.char(1333)) AS NavigationJson,
cast( '' as abap.char(1333)) AS Reference,
cast( '' as uhmignodtype ) AS NodeType,
cast( '' as abap.char(20) ) AS NodeTypeText,
cast( '' as uhmigdpndcy ) AS HierarchyDependency
FROM uhm_hier_id_ov
LEFT OUTER JOIN FAC_UH_MIGRTN_I_MIGRATESTATUST AS _MigrationStatusText ON HierarchyMigrationStatus = _MigrationStatusText.HierarchyMigrationStatus -- association [0..1]
LEFT OUTER JOIN FAC_UH_MIGRTN_I_HIER_ID_LOG AS _changelog ON HierarchyType = _changelog.HierarchyType AND HierarchyOldID = _changelog.HierarchyOldID AND SubClass = _changelog.SubClass -- association [0..*]
LEFT OUTER JOIN FAC_UH_MIGRTN_I_HIER_WHEREUSED AS _whereused ON HierarchyType = _whereused.HierarchyType AND HierarchyOldID = _whereused.HierarchyOldID AND SubClass = _whereused.SubClass -- 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