FAC_UH_MIGRTN_P_HIER_ID_lOG
Union view for hierarchy id log
FAC_UH_MIGRTN_P_HIER_ID_lOG is a CDS View that provides data about "Union view for hierarchy id log" in SAP S/4HANA. It reads from 4 data sources (dd04t, dd04t, uhm_id_chlog, uhm_wu_chlog) and exposes 31 fields with key fields Field, HierarchyType, HierarchyOldID, SubClass, ChangedBy. It has 2 associations to related views. Part of development package UH_MIGRATION.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| dd04t | dd04t | left_outer |
| dd04t | dd04t | left_outer |
| uhm_id_chlog | uhm_id_chlog | from |
| uhm_wu_chlog | uhm_wu_chlog | union |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | FAC_UH_MIGRTN_I_MIGRATESTATUST | _old_status | uhm_id_chlog.field = 'UHMIGS' and uhm_id_chlog.old_value = _old_status.HierarchyMigrationStatus and _old_status.Language = $session.system_language |
| [0..1] | FAC_UH_MIGRTN_I_MIGRATESTATUST | _new_status | uhm_id_chlog.field = 'UHMIGS' and uhm_id_chlog.new_value = _new_status.HierarchyMigrationStatus and _new_status.Language = $session.system_language |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FACUHMIGPIDCD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| EndUserText.label | Union view for hierarchy id log | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Field | uhm_id_chlog | field | Logical Field |
| KEY | HierarchyType | uhm_id_chlog | hier_type | Hierarchy Type |
| KEY | HierarchyOldID | uhm_id_chlog | hier_id | Hierarchy Old ID |
| KEY | SubClass | uhm_id_chlog | sub_class | Class |
| KEY | ChangedBy | uhm_id_chlog | updated_by | Version Updated By |
| KEY | clientNULLasChangedOn | |||
| KEY | clientNULLasChangedAt | |||
| KEY | Application | UI Application | ||
| KEY | Object | TRFM Object | ||
| KEY | SubObject | Triggering obj. | ||
| KEY | ObjectValue | Object Value | ||
| KEY | SubObjectValue | Subobject Value | ||
| KEY | Action | uhm_id_chlog | action | User action |
| FieldText | ||||
| fieldasField | ||||
| KEY | HierarchyType | uhm_wu_chlog | hier_type | Hierarchy Type |
| KEY | HierarchyOldID | uhm_wu_chlog | hier_id | Hierarchy Old ID |
| KEY | SubClass | uhm_wu_chlog | sub_class | Class |
| KEY | ChangedBy | uhm_wu_chlog | updated_by | Version Updated By |
| KEY | clientNULLasChangedOn | |||
| KEY | clientNULLasChangedAt | |||
| KEY | Application | uhm_wu_chlog | application | UI Application |
| KEY | Object | uhm_wu_chlog | object | TRFM Object |
| KEY | SubObject | uhm_wu_chlog | subobject | Triggering obj. |
| KEY | ObjectValue | uhm_wu_chlog | objectvalue | Object Value |
| KEY | SubObjectValue | uhm_wu_chlog | subobjectvalue | Subobject Value |
| KEY | Action | uhm_wu_chlog | action | User action |
| FieldText | ||||
| oldvalue | uhm_wu_chlog | old_value | Value | |
| newvalue | uhm_wu_chlog | new_value | Value | |
| ChangedAtDateTime | updated_at | Version Update Time |
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_P_HIER_ID_lOG.
-- 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: FACUHMIGPIDCD
CREATE VIEW FAC_UH_MIGRTN_P_HIER_ID_lOG AS
SELECT
uhm_id_chlog.field AS Field,
uhm_id_chlog.hier_type AS HierarchyType,
uhm_id_chlog.hier_id AS HierarchyOldID,
uhm_id_chlog.sub_class AS SubClass,
uhm_id_chlog.updated_by AS ChangedBy,
tstmp_to_dats( uhm_id_chlog.updated_at, $session.user_timezone, $session.client, 'NULL' ) as ChangedOn AS clientNULLasChangedOn,
tstmp_to_tims( uhm_id_chlog.updated_at, $session.user_timezone, $session.client, 'NULL' ) as ChangedAt AS clientNULLasChangedAt,
cast( '' as uhmwapp ) AS Application,
cast( '' as uhmwobject ) AS Object,
cast( '' as uhmwsubobject ) AS SubObject,
cast( '' as uhmobjval ) AS ObjectValue,
cast( '' as uhmsubobjval ) AS SubObjectValue,
uhm_id_chlog.action AS Action,
cast( dd04t.ddtext as htypet ) AS FieldText,
updated_at as ChangedAtDateTime AS fieldasField,
uhm_wu_chlog.old_value AS oldvalue,
uhm_wu_chlog.new_value AS newvalue,
updated_at AS ChangedAtDateTime
FROM uhm_id_chlog
LEFT OUTER JOIN dd04t ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN FAC_UH_MIGRTN_I_MIGRATESTATUST AS _old_status ON uhm_id_chlog.field = 'UHMIGS' AND uhm_id_chlog.old_value = _old_status.HierarchyMigrationStatus AND _old_status.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN FAC_UH_MIGRTN_I_MIGRATESTATUST AS _new_status ON uhm_id_chlog.field = 'UHMIGS' AND uhm_id_chlog.new_value = _new_status.HierarchyMigrationStatus AND _new_status.Language = $session.system_language -- association [0..1]
-- UNION with additional select branch(es): uhm_wu_chlog
;
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