FAC_CDS_UH_SEGMENTHIER
Universal Segment Hierarchy
FAC_CDS_UH_SEGMENTHIER is a CDS View that provides data about "Universal Segment Hierarchy" in SAP S/4HANA. It reads from 2 data sources (uhdt_hier, uhdt_vrsn) and exposes 10 fields. It has 1 association to related views.
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | fac_cds_uh_category | to_category | $projection.HierarchyCategory = to_category.CategoryKey |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | FACV_UH_SEGMHIER | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| EndUserText.label | Universal Segment Hierarchy | view |
Fields (10)
@AbapCatalog.sqlViewName: 'FACV_UH_SEGMHIER'
@AccessControl.authorizationCheck: #CHECK
//@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {
dataClass: #MIXED,
serviceQuality: #C,
sizeCategory: #S
}
@EndUserText.label: 'Universal Segment Hierarchy'
define view FAC_CDS_UH_SEGMENTHIER
as select from uhdt_vrsn as version
left outer join uhdt_hier as hier on version.hier_hid = hier.hier_hid
and version.hier_catg = hier.hier_catg
and hier.lang = $session.system_language
association [1..1] to fac_cds_uh_category as to_category on $projection.HierarchyCategory = to_category.CategoryKey
{
version.ver_id as VersionId,
version.ver_msg as VersionMessage,
case
when ( ver_status = 'R' or ver_status = 'A' ) and locked_by = $session.user
then cast ( 'I' as vrsst )
else version.ver_status end as VersionStatus,
cast( '' as vrstxt) as VersionStatusText,
version.hier_catg as HierarchyCategory,
cast( version.hier_hid as vhrid) as HierarchyId, //remove value help
hier.hier_desc as HierarchyText,
cast( version.hier_hid as vhdec ) as HierarchyVersionText,
// cast( concat(concat(version.hier_hid, concat(' (',version.ver_vldfm) ), concat(concat('~',version.ver_vldto), ')') ) as vhdec) as HierarchyVersionText,
cast( upper(hier.hier_desc) as vhdec ) as HierarchyTextUpper,
to_category
}
where
version.hier_catg = 'GL01'
and version.ver_status <> 'T'
and version.ver_status <> 'B'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"UHDT_HIER",
"UHDT_VRSN"
],
"ASSOCIATED":
[
"FAC_CDS_UH_CATEGORY"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- 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 Annotations — A Complete Guide
- 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