FAC_CDS_UH_GLACCOUNTHIER

DDL: FAC_CDS_UH_GLACCOUNTHIER SQL: FAC_UH_GLACCHIER Type: view

Universal Hierarchy G/L Account

FAC_CDS_UH_GLACCOUNTHIER is a CDS View that provides data about "Universal Hierarchy G/L Account" in SAP S/4HANA. It reads from 3 data sources (uhdt_clfd_val, uhdt_hier, uhdt_vrsn) and exposes 11 fields. It has 1 association to related views.

Data Sources (3)

SourceAliasJoin Type
uhdt_clfd_val clfdvalue inner
uhdt_hier hier left_outer
uhdt_vrsn version from

Associations (1)

CardinalityTargetAliasCondition
[1..1] fac_cds_uh_category to_category $projection.HierarchyCategory = to_category.CategoryKey

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName FAC_UH_GLACCHIER view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
EndUserText.label Universal Hierarchy G/L Account view

Fields (11)

KeyFieldSource TableSource FieldDescription
VersionId uhdt_vrsn ver_id
VersionMessage uhdt_vrsn ver_msg
ver_statusendasVersionStatus
VersionStatusText
HierarchyCategory uhdt_vrsn hier_catg
HierarchyId uhdt_vrsn hier_hid
HierarchyText uhdt_hier hier_desc
HierarchyVersionText
ChartOfAccounts
HierarchyTextUpper
to_category to_category
@AbapCatalog.sqlViewName: 'FAC_UH_GLACCHIER'
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType: {
  dataClass: #MIXED,
  serviceQuality: #C,
  sizeCategory: #S
}
@EndUserText.label: 'Universal Hierarchy G/L Account'
define view FAC_CDS_UH_GLACCOUNTHIER
  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
    inner join      uhdt_clfd_val as clfdvalue on version.ver_id = clfdvalue.obj_id
  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,
  version.hier_hid                       as HierarchyId,
  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( clfdvalue.val_low as ktopl)      as ChartOfAccounts,
  cast( upper(hier.hier_desc) as vhdec ) as HierarchyTextUpper,
  to_category
}
where
       version.hier_catg                       =  '0109'
  and  clfdvalue.fld_name                      =  'CHARTOFACCOUNTS'
  and  version.ver_status                      <> 'T'
  and  version.ver_status                      <> 'B'

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"UHDT_CLFD_VAL",
"UHDT_HIER",
"UHDT_VRSN"
],
"ASSOCIATED":
[
"FAC_CDS_UH_CATEGORY"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/