fac_cds_uh_category

DDL: FAC_CDS_UH_CATEGORY SQL: FACV_UH_CATG Type: view

Universal Hierarchy Cagegory

fac_cds_uh_category is a CDS View that provides data about "Universal Hierarchy Cagegory" in SAP S/4HANA. It reads from 2 data sources (uhdt_catg, uhdt_catgt) and exposes 33 fields with key field CategoryKey. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
uhdt_catg catg from
uhdt_catgt catgt left_outer

Associations (3)

CardinalityTargetAliasCondition
[0..*] FAC_CDS_UH_REUSE_SRC _reuse_src $projection.CategoryKey = _reuse_src.CategoryKey
[0..*] FAC_CDS_UH_NODE_ATTR_DEF to_attributes $projection.CategoryKey = to_attributes.CategoryKey
[0..*] FAC_CDS_UH_HD_ATTR_DEF to_hd_attributes $projection.CategoryKey = to_hd_attributes.CategoryKey

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName FACV_UH_CATG view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Universal Hierarchy Cagegory view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #M view

Fields (33)

KeyFieldSource TableSource FieldDescription
KEY CategoryKey uhdt_catg catg_key Type
BusinessEntityName bety_name Business Entity
AllowMix allow_mix Allow Mix
MixedEntities mixed_entities Entities for Leaves
NodeMixedEntities node_entities Entities for Nodes
AllowNodeFreeText allow_node_text Allow Free-Text Node
AllowVerOverlap allow_ver_overlap Allow Time Overlaps
AllowDupLeaf allow_dup_leaf Allow Dup. Leaves
AllowDupNonleaf allow_dup_nonleaf Allow Dup. Nodes
TimeDependantType time_dependent_type Time-Dependent
TimeOverlapType time_overlap_type Hier vs. Nodes/Leave
CategoryText uhdt_catgt catg_text Hierarchy Type Desc.
ApplicationTitle uhdt_catgt app_title Application Title
ClassValueInherite
UseValueRange use_value_range Allow Value Range
HryType uhdt_catg hrrp_hrytype Hierarchy Type
HryNamespace uhdt_catg hrrp_hrynmspace HRRP Hier Namespace
AllowUseByLegacyTCode allow_legacy_tcode_usage Use By Legacy TCode
AllowSemTagLeaf uhdt_catg allow_leaf_semtag Semantic Tag Leaf
AllowSemTagNode uhdt_catg allow_node_semtag Semantic Tag Node
ReuseSourceCount
LegacyUsageByDefault uhdt_catg legacy_usage_by_default Legacy usage by dft
AllowLegacyUsageChange uhdt_catg allow_legacy_usage_change Allow change legacy
Transport uhdt_catg transport Transportable
AllowChangeLog uhdt_catg allow_change_log Enable Change Log
AllowMultipleLanguage uhdt_catg allow_multi_lang Multiple Languages
hry_id_max_lengthendasHryIdMaxLength
AllowPrivateHierarchy uhdt_catg allow_private_hierarchy Enable Private Hier.
SimulationDisabled uhdt_catg simulation_disabled Disable Simulation
AllowFlexibleHierarchy uhdt_catg allow_flex_hier Allow Flexible Hier.
AllowDownloadMasterData uhdt_catg allow_md_download Allow Download of MD
AllowUploadMasterData uhdt_catg allow_md_upload Allow Upload of MD
_reuse_src _reuse_src

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_category.
-- 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_CATG

CREATE VIEW fac_cds_uh_category AS
SELECT
  catg.catg_key AS CategoryKey,
  bety_name AS BusinessEntityName,
  allow_mix AS AllowMix,
  mixed_entities AS MixedEntities,
  node_entities AS NodeMixedEntities,
  allow_node_text AS AllowNodeFreeText,
  allow_ver_overlap AS AllowVerOverlap,
  allow_dup_leaf AS AllowDupLeaf,
  allow_dup_nonleaf AS AllowDupNonleaf,
  time_dependent_type AS TimeDependantType,
  time_overlap_type AS TimeOverlapType,
  catgt.catg_text AS CategoryText,
  catgt.app_title AS ApplicationTitle,
  'X' AS ClassValueInherite,
  use_value_range AS UseValueRange,
  catg.hrrp_hrytype AS HryType,
  catg.hrrp_hrynmspace AS HryNamespace,
  allow_legacy_tcode_usage AS AllowUseByLegacyTCode,
  catg.allow_leaf_semtag AS AllowSemTagLeaf,
  catg.allow_node_semtag AS AllowSemTagNode,
  count( distinct _reuse_src.SourceName ) AS ReuseSourceCount,
  catg.legacy_usage_by_default AS LegacyUsageByDefault,
  catg.allow_legacy_usage_change AS AllowLegacyUsageChange,
  catg.transport AS Transport,
  catg.allow_change_log AS AllowChangeLog,
  catg.allow_multi_lang AS AllowMultipleLanguage,
  case catg.hry_id_max_length when 0 then 20 else catg.hry_id_max_length end as HryIdMaxLength AS hry_id_max_lengthendasHryIdMaxLength,
  catg.allow_private_hierarchy AS AllowPrivateHierarchy,
  catg.simulation_disabled AS SimulationDisabled,
  catg.allow_flex_hier AS AllowFlexibleHierarchy,
  catg.allow_md_download AS AllowDownloadMasterData,
  catg.allow_md_upload AS AllowUploadMasterData
FROM uhdt_catg AS catg
LEFT OUTER JOIN uhdt_catgt AS catgt ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN FAC_CDS_UH_REUSE_SRC AS _reuse_src ON CategoryKey = _reuse_src.CategoryKey  -- association [0..*]
LEFT OUTER JOIN FAC_CDS_UH_NODE_ATTR_DEF AS to_attributes ON CategoryKey = to_attributes.CategoryKey  -- association [0..*]
LEFT OUTER JOIN FAC_CDS_UH_HD_ATTR_DEF AS to_hd_attributes ON CategoryKey = to_hd_attributes.CategoryKey  -- association [0..*]
;