fac_cds_uh_node

DDL: FAC_CDS_UH_NODE SQL: FACV_UH_EDGE Type: view

Universal Hierarchy Node

fac_cds_uh_node is a CDS View that provides data about "Universal Hierarchy Node" in SAP S/4HANA. It reads from 3 data sources (uhdt_node, uhdt_ntxt, uhdt_vrsn) and exposes 39 fields with key field NodeId. It has 7 associations to related views.

Data Sources (3)

SourceAliasJoin Type
uhdt_node node from
uhdt_ntxt ntxt left_outer
uhdt_vrsn r left_outer

Associations (7)

CardinalityTargetAliasCondition
[1..*] fac_cds_uh_clfd_value to_clfd_value $projection.JoinId = to_clfd_value.ObjectId
[1..1] fac_cds_uh_version to_version $projection.VersionId = to_version.VersionId
[1..*] FAC_CDS_UH_NODESEMTAG to_semtag $projection.JoinId = to_semtag.NodeId
[1..1] FAC_CDS_UH_FUNCTBL_SEMTAG to_merged_semtag $projection.JoinId = to_merged_semtag.NodeId
[1..1] FAC_CDS_UH_FUNCTBL_MULTIATTR to_merged_attrvals $projection.JoinId = to_merged_attrvals.NodeId
[0..*] FAC_CDS_UH_NODE_ATTR_VALUE to_attribute_values $projection.JoinId = to_attribute_values.NodeId
[1..1] FAC_CDS_UH_NODE_ACTION to_node_action $projection.JoinId = to_node_action.NodeId

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName FACV_UH_EDGE view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Universal Hierarchy Node view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY NodeId uhdt_node node_id Workflow Step
VersionId uhdt_node ver_id Version ID
NodeParentId node_pid Node Parent ID
NodeRefId node_rid Reference Node ID
JoinId uhdt_node node_id Workflow Step
NodeType node_type Type
NodeEntity node_entity Business Entity
NodeLevel node_level Node Level
NodeIndicator node_ind Node Indicator
NodeSequence node_seq Sequence Number
NodeDisplayOrder node_order UI Display Order
NodeSign node_sgn Node Value Sign
NodeValidFrom node_vldfm Node Valid From
NodeValidTo node_vldto Node Valid To
NodeLowValue node_lval Node Low Value
NodeHighValue node_hval Node High Value
CreatedAt uhdt_node created_at Uploaded On
CreatedBy uhdt_node created_by Version Created By
UpdatedAt uhdt_node updated_at Version Update Time
UpdatedBy uhdt_node updated_by Version Updated By
ReferenceVersionID ref_verid Ref. Version ID
ReferenceGroupID ref_t_group_id Ref. Group ID
OriginVersionID origin_verid Version ID
NodeLowText uhdt_ntxt lval_txt Node Text
NodeHighText uhdt_ntxt hval_txt Node High Text
hier_hidendasRefHierarchyID
ver_vldfmendasRefValidFromDate
ver_vldtoendasRefValidToDate
OriginHierarchyID uhdt_vrsn hier_hid Hierarchy ID
SemanticTags to_merged_semtag SemanticTags
SemanticTagsTextJson to_merged_semtag SemanticTagsTextJson
Forbid_Add_LeafendasForbidAddLeaf
Forbid_Add_NodeendasForbidAddNode
Forbid_DeleteendasForbidDelete
Forbid_UpdateendasForbidUpdate
Forbid_Add_SemtagendasForbidAddSemTag
Forbid_MoveendasForbidMove
to_version to_version
to_semtag to_semtag

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_node.
-- 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_EDGE

CREATE VIEW fac_cds_uh_node AS
SELECT
  node.node_id AS NodeId,
  node.ver_id AS VersionId,
  node_pid AS NodeParentId,
  node_rid AS NodeRefId,
  node.node_id AS JoinId,
  node_type AS NodeType,
  node_entity AS NodeEntity,
  node_level AS NodeLevel,
  node_ind AS NodeIndicator,
  node_seq AS NodeSequence,
  node_order AS NodeDisplayOrder,
  node_sgn AS NodeSign,
  node_vldfm AS NodeValidFrom,
  node_vldto AS NodeValidTo,
  node_lval AS NodeLowValue,
  node_hval AS NodeHighValue,
  node.created_at AS CreatedAt,
  node.created_by AS CreatedBy,
  node.updated_at AS UpdatedAt,
  node.updated_by AS UpdatedBy,
  ref_verid AS ReferenceVersionID,
  ref_t_group_id AS ReferenceGroupID,
  origin_verid AS OriginVersionID,
  ntxt.lval_txt AS NodeLowText,
  ntxt.hval_txt AS NodeHighText,
  case when node_type = 'Z' then r.hier_hid end as RefHierarchyID AS hier_hidendasRefHierarchyID,
  case when node_type = 'Z' then r.ver_vldfm end as RefValidFromDate AS ver_vldfmendasRefValidFromDate,
  case when node_type = 'Z' then r.ver_vldto end as RefValidToDate AS ver_vldtoendasRefValidToDate,
  r.hier_hid AS OriginHierarchyID,
  to_merged_semtag.SemanticTags AS SemanticTags,
  to_merged_semtag.SemanticTagsTextJson AS SemanticTagsTextJson,
  case when ref_t_group_id <> '' then 'X' else to_node_action.Forbid_Add_Leaf end as ForbidAddLeaf AS Forbid_Add_LeafendasForbidAddLeaf,
  case when ref_t_group_id <> '' then 'X' else to_node_action.Forbid_Add_Node end as ForbidAddNode AS Forbid_Add_NodeendasForbidAddNode,
  case when ( ref_t_group_id <> '' and node_type <> 'Z' ) then 'X' else to_node_action.Forbid_Delete end as ForbidDelete AS Forbid_DeleteendasForbidDelete,
  case when ref_t_group_id <> '' then 'X' else to_node_action.Forbid_Update end as ForbidUpdate AS Forbid_UpdateendasForbidUpdate,
  case when ref_t_group_id <> '' or node_type = 'R' then 'X' else to_node_action.Forbid_Add_Semtag end as ForbidAddSemTag AS Forbid_Add_SemtagendasForbidAddSemTag,
  case when ( ref_t_group_id <> '' and node_type <> 'Z' ) then 'X' else to_node_action.Forbid_Move end as ForbidMove AS Forbid_MoveendasForbidMove,
  to_version,
  to_semtag
FROM uhdt_node AS node
LEFT OUTER JOIN uhdt_ntxt AS ntxt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN uhdt_vrsn AS r ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN fac_cds_uh_clfd_value AS to_clfd_value ON JoinId = to_clfd_value.ObjectId  -- association [1..*]
LEFT OUTER JOIN fac_cds_uh_version AS to_version ON VersionId = to_version.VersionId  -- association [1..1]
LEFT OUTER JOIN FAC_CDS_UH_NODESEMTAG AS to_semtag ON JoinId = to_semtag.NodeId  -- association [1..*]
LEFT OUTER JOIN FAC_CDS_UH_FUNCTBL_SEMTAG AS to_merged_semtag ON JoinId = to_merged_semtag.NodeId  -- association [1..1]
LEFT OUTER JOIN FAC_CDS_UH_FUNCTBL_MULTIATTR AS to_merged_attrvals ON JoinId = to_merged_attrvals.NodeId  -- association [1..1]
LEFT OUTER JOIN FAC_CDS_UH_NODE_ATTR_VALUE AS to_attribute_values ON JoinId = to_attribute_values.NodeId  -- association [0..*]
LEFT OUTER JOIN FAC_CDS_UH_NODE_ACTION AS to_node_action ON JoinId = to_node_action.NodeId  -- association [1..1]
;