FINCS_UH_SEGMENTNode

DDL: FINCS_UH_SEGMENTNODE SQL: FINCS_UH_CS01N Type: view

Universal Hierarchy Segment Node

FINCS_UH_SEGMENTNode is a CDS View that provides data about "Universal Hierarchy Segment Node" in SAP S/4HANA. It reads from 3 data sources (uhdt_node, uhdt_ntxt, uhdt_vrsn) and exposes 11 fields with key field NodeId.

Data Sources (3)

SourceAliasJoin Type
uhdt_node node from
uhdt_ntxt ntxt left_outer
uhdt_vrsn version inner

Annotations (6)

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

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY NodeId uhdt_node node_id Workflow Step
VersionId uhdt_node ver_id Version ID
HierarchyId uhdt_vrsn hier_hid Hierarchy ID
VersionNumber uhdt_vrsn ver_nbr Version Number
VersionMessage uhdt_vrsn ver_msg Note
ValidFrom uhdt_vrsn ver_vldfm Valid From
ver_statusendasVersionStatus
node_hvalasncvalendasNodeValue
NodeText uhdt_ntxt lval_txt Node Text
node_hvalasnltxtendasNodeValueText
to_version to_version

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 FINCS_UH_SEGMENTNode.
-- 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: FINCS_UH_CS01N

CREATE VIEW FINCS_UH_SEGMENTNode AS
SELECT
  node.node_id AS NodeId,
  node.ver_id AS VersionId,
  version.hier_hid AS HierarchyId,
  version.ver_nbr AS VersionNumber,
  version.ver_msg AS VersionMessage,
  version.ver_vldfm AS ValidFrom,
  case when ( ver_status = 'R' or ver_status = 'A' ) and locked_by = $session.user then 'I' else version.ver_status end as VersionStatus AS ver_statusendasVersionStatus,
  case node.node_hval when '' then cast(node.node_lval as ncval) else cast (concat(node.node_lval,concat('~',node.node_hval)) as ncval) end as NodeValue AS node_hvalasncvalendasNodeValue,
  ntxt.lval_txt AS NodeText,
  case node.node_hval when '' then case ntxt.lval_txt when '' then cast( node.node_lval as nltxt ) else cast( concat( node.node_lval, concat('(',concat( ntxt.lval_txt, ')' ) ) ) as nltxt ) end else cast (concat(node.node_lval,concat('~',node.node_hval)) as nltxt) end as NodeValueText AS node_hvalasnltxtendasNodeValueText,
  to_version
FROM uhdt_node AS node
INNER JOIN uhdt_vrsn AS version ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN uhdt_ntxt AS ntxt ON /* join condition not captured in parsed metadata */
;