FAC_CDS_UH_CD
Global Hierarchy Change Log
FAC_CDS_UH_CD is a CDS View that provides data about "Global Hierarchy Change Log" in SAP S/4HANA. It reads from 4 data sources (FAC_CDS_UH_CD_VERSION, FAC_CDS_UH_CD_VERSION, cdpos, fac_cds_uh_cd_tf) and exposes 55 fields with key fields ObjectClass, ObjectId, DocumentNumber, TableName, FieldName. It has 2 associations to related views.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| FAC_CDS_UH_CD_VERSION | _cdhdr | from |
| FAC_CDS_UH_CD_VERSION | _cdhdr | union_all |
| cdpos | _cdpos | left_outer |
| fac_cds_uh_cd_tf | _cdpos_str | left_outer |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_UserContactCard | _UserContactCard | _UserContactCard.ContactCardID = $projection.UserName |
| [0..1] | I_Language | _ChangeDocLanguage | _ChangeDocLanguage.Language = $projection.Langauge |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FACV_UH_CD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Global Hierarchy Change Log | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view |
Fields (55)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ObjectClass | FAC_CDS_UH_CD_VERSION | objectclas | Change Doc. Object |
| KEY | ObjectId | FAC_CDS_UH_CD_VERSION | objectid | Object Value |
| KEY | DocumentNumber | FAC_CDS_UH_CD_VERSION | changenr | Document Number |
| KEY | TableName | fac_cds_uh_cd_tf | tabname | Table/Constant Value |
| KEY | FieldName | fac_cds_uh_cd_tf | fname | User |
| KEY | TableKey | fac_cds_uh_cd_tf | tabkey | Table Keys |
| ChangeTypeText | ||||
| ObjectTypeText | ||||
| ObjectText | ||||
| ObjectFieldText | ||||
| UserName | FAC_CDS_UH_CD_VERSION | username | User who owns item | |
| CreatedDate | udate | Update Date | ||
| CreatedTime | utime | Time | ||
| CreatedDateTime | ||||
| NewValue | ||||
| OldValue | ||||
| ver_idendasVersionId | ||||
| hier_catgendasHierarchyCategory | ||||
| HryType | _uh_catg | hrrp_hrytype | Hierarchy Type | |
| hier_hidendasHierarchyId | ||||
| ver_vldfmendasValidityStartDate | ||||
| ver_vldtoendasValidityEndDate | ||||
| Langauge | FAC_CDS_UH_CD_VERSION | langu | Primary lang. | |
| LanguageName | ||||
| FullName | _UserContactCard | FullName | Name | |
| TabFieldName | ||||
| _UserContactCard | _UserContactCard | |||
| objectclasasObjectClass | ||||
| KEY | ObjectId | FAC_CDS_UH_CD_VERSION | objectid | Object Value |
| KEY | DocumentNumber | FAC_CDS_UH_CD_VERSION | changenr | Document Number |
| KEY | TableName | cdpos | tabname | Table/Constant Value |
| KEY | FieldName | cdpos | fname | User |
| KEY | TableKey | Table Keys | ||
| ChangeTypeText | ||||
| ObjectTypeText | ||||
| ObjectText | ||||
| ObjectFieldText | ||||
| UserName | FAC_CDS_UH_CD_VERSION | username | Changed By | |
| CreatedDate | udate | Created On | ||
| CreatedTime | utime | Created At | ||
| CreatedDateTime | Created At | |||
| NewValue | cdpos | value_new | New Value | |
| OldValue | cdpos | value_old | Old Value | |
| ver_idendasVersionId | ||||
| hier_catgendasHierarchyCategory | ||||
| HryType | _uh_catg | hrrp_hrytype | Hierarchy Type | |
| hier_hidendasHierarchyId | ||||
| ver_vldfmendasValidityStartDate | ||||
| ver_vldtoendasValidityEndDate | ||||
| Langauge | FAC_CDS_UH_CD_VERSION | langu | Primary lang. | |
| LanguageName | ||||
| FullName | _UserContactCard | FullName | Name | |
| TabFieldName | ||||
| _UserContactCard | _UserContactCard | |||
| _ChangeDocLanguage | _ChangeDocLanguage |
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_CD.
-- 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_CD
CREATE VIEW FAC_CDS_UH_CD AS
SELECT
_cdhdr.objectclas AS ObjectClass,
_cdhdr.objectid AS ObjectId,
_cdhdr.changenr AS DocumentNumber,
_cdpos_str.tabname AS TableName,
_cdpos_str.fname AS FieldName,
_cdpos_str.tabkey AS TableKey,
cast( '' as cdchngt ) AS ChangeTypeText,
cast( '' as cdobjtd ) AS ObjectTypeText,
cast( substring( _cdpos_str.tabkey, 41, 80 ) as cdobjd ) AS ObjectText,
cast( '' as cdfldt ) AS ObjectFieldText,
_cdhdr.username AS UserName,
udate AS CreatedDate,
utime AS CreatedTime,
cast(dats_tims_to_tstmp(udate, utime, abap_system_timezone($session.client, 'NULL'), $session.client, 'NULL') as timestamp) AS CreatedDateTime,
cast( _cdpos_str.value_new as cdfldvaln ) AS NewValue,
cast( _cdpos_str.value_old as cdfldvalo ) AS OldValue,
case when _uh_vrsn.ver_id is null then cast ( substring( _cdhdr.objectid, 1, 40 ) as vrsid ) else _uh_vrsn.ver_id end as VersionId AS ver_idendasVersionId,
case when _uh_vrsn.ver_id is null then cast ( substring( _cdhdr.objectid, 41, 4 ) as cakey ) else _uh_vrsn.hier_catg end as HierarchyCategory AS hier_catgendasHierarchyCategory,
_uh_catg.hrrp_hrytype AS HryType,
case when _uh_vrsn.ver_id is null then cast ( substring( _cdhdr.objectid, 45, 20 ) as vhrid ) else _uh_vrsn.hier_hid end as HierarchyId AS hier_hidendasHierarchyId,
case when _uh_vrsn.ver_id is null then cast ( substring( _cdhdr.objectid, 65, 8 ) as vdtfm ) else _uh_vrsn.ver_vldfm end as ValidityStartDate AS ver_vldfmendasValidityStartDate,
case when _uh_vrsn.ver_id is null then cast ( substring( _cdhdr.objectid, 73, 8 ) as vdtto ) else _uh_vrsn.ver_vldto end as ValidityEndDate AS ver_vldtoendasValidityEndDate,
_cdhdr.langu AS Langauge,
_ChangeDocLanguage._Text[1:Language=$session.system_language].LanguageName AS LanguageName,
_UserContactCard.FullName AS FullName,
cast ( concat( _cdpos_str.tabname, concat( '-', _cdpos_str.fname ) ) as cdtabfname ) AS TabFieldName
FROM FAC_CDS_UH_CD_VERSION AS _cdhdr
LEFT OUTER JOIN fac_cds_uh_cd_tf AS _cdpos_str ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN cdpos AS _cdpos ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_UserContactCard AS _UserContactCard ON _UserContactCard.ContactCardID = UserName -- association [0..1]
LEFT OUTER JOIN I_Language AS _ChangeDocLanguage ON _ChangeDocLanguage.Language = Langauge -- association [0..1]
-- UNION ALL with additional select branch(es): FAC_CDS_UH_CD_VERSION
;
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