A_CnsldtnFSItemHierT_2

DDL: A_CNSLDTNFSITEMHIERT_2 Type: view COMPOSITE

Financial Statement Item Hier Node V2 - Txt

A_CnsldtnFSItemHierT_2 is a Composite CDS View that provides data about "Financial Statement Item Hier Node V2 - Txt" in SAP S/4HANA. It reads from 1 data source (I_CnsldtnFSItemHierNodeText_2) and exposes 10 fields with key fields Language, ConsolidationChartOfAccounts, FinancialStatementItemHier, HierarchyNode. It has 4 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CnsldtnFSItemHierNodeText_2 _CnsldtnFSItemHierarchyText from

Associations (4)

CardinalityTargetAliasCondition
[1..1] A_CnsldtnFSItemHierDir _CnsldtnFSItemHierDir $projection.FinancialStatementItemHier = _CnsldtnFSItemHierDir.FinancialStatementItemHier and $projection.ConsolidationChartOfAccounts = _CnsldtnFSItemHierDir.ConsolidationChartOfAccounts
[1..1] A_CnsldtnChartOfAccounts _CnsldtnChartOfAccounts $projection.ConsolidationChartOfAccounts = _CnsldtnChartOfAccounts.ConsolidationChartOfAccounts
[0..*] A_CnsldtnChartOfAccountsT _CnsldtnChartOfAccountsT $projection.ConsolidationChartOfAccounts = _CnsldtnChartOfAccountsT.ConsolidationChartOfAccounts
[1..1] A_CnsldtnFSItemHier_2 _CnsldtnFSItemHier $projection.FinancialStatementItemHier = _CnsldtnFSItemHier.FinancialStatementItemHier and $projection.HierarchyNode = _CnsldtnFSItemHier.HierarchyNode and $projection.ConsolidationChartOfAccounts = _CnsldtnFSItemHier.ConsolidationChartOfAccounts

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ACSFSITEMHIERT2 view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.dataCategory #TEXT view
ObjectModel.representativeKey HierarchyNode view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
EndUserText.label Financial Statement Item Hier Node V2 - Txt view
OData.entitySet.name FinancialStmntItemHierText_2 view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY Language I_CnsldtnFSItemHierNodeText_2 Language
KEY ConsolidationChartOfAccounts I_CnsldtnFSItemHierNodeText_2 ConsolidationChartOfAccounts
KEY FinancialStatementItemHier I_CnsldtnFSItemHierNodeText_2 CnsldtnFSItemHierarchy
KEY HierarchyNode I_CnsldtnFSItemHierNodeText_2 HierarchyNode
HierarchyNodeText I_CnsldtnFSItemHierNodeText_2 HierarchyNodeText Node Description
NodeType _CnsldtnFSItemHier NodeType
_CnsldtnChartOfAccountsT _CnsldtnChartOfAccountsT
_CnsldtnChartOfAccounts _CnsldtnChartOfAccounts
_CnsldtnFSItemHierDir _CnsldtnFSItemHierDir
_CnsldtnFSItemHier _CnsldtnFSItemHier
@AbapCatalog:{
  sqlViewName: 'ACSFSITEMHIERT2',
  compiler.compareFilter: true
  }
@AccessControl.authorizationCheck: #CHECK
@Metadata.ignorePropagatedAnnotations: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel:{
  usageType: {
    dataClass: #MASTER,
    serviceQuality: #C,
    sizeCategory: #XL},
  dataCategory: #TEXT,
  representativeKey: 'HierarchyNode'
  }
@VDM:{
  viewType: #COMPOSITE,
  lifecycle.contract.type: #PUBLIC_REMOTE_API
  }
@EndUserText.label: 'Financial Statement Item Hier Node V2 - Txt'
@OData.entitySet.name: 'FinancialStmntItemHierText_2'

define view A_CnsldtnFSItemHierT_2
  as select from I_CnsldtnFSItemHierNodeText_2 as _CnsldtnFSItemHierarchyText

  association [1..1] to A_CnsldtnFSItemHierDir    as _CnsldtnFSItemHierDir    on  $projection.FinancialStatementItemHier   = _CnsldtnFSItemHierDir.FinancialStatementItemHier
                                                                              and $projection.ConsolidationChartOfAccounts = _CnsldtnFSItemHierDir.ConsolidationChartOfAccounts

  association [1..1] to A_CnsldtnChartOfAccounts  as _CnsldtnChartOfAccounts  on  $projection.ConsolidationChartOfAccounts = _CnsldtnChartOfAccounts.ConsolidationChartOfAccounts

  association [0..*] to A_CnsldtnChartOfAccountsT as _CnsldtnChartOfAccountsT on  $projection.ConsolidationChartOfAccounts = _CnsldtnChartOfAccountsT.ConsolidationChartOfAccounts

  association [1..1] to A_CnsldtnFSItemHier_2     as _CnsldtnFSItemHier       on  $projection.FinancialStatementItemHier   = _CnsldtnFSItemHier.FinancialStatementItemHier
                                                                              and $projection.HierarchyNode                = _CnsldtnFSItemHier.HierarchyNode
                                                                              and $projection.ConsolidationChartOfAccounts = _CnsldtnFSItemHier.ConsolidationChartOfAccounts

{

      @Semantics.language: true
  key _CnsldtnFSItemHierarchyText.Language,

      @EndUserText: {
        quickInfo: 'Consolidation Chart of Accounts'
      }
      @ObjectModel.foreignKey.association: '_CnsldtnChartOfAccounts'
      @ObjectModel.text.association: '_CnsldtnChartOfAccountsT'
  key _CnsldtnFSItemHierarchyText.ConsolidationChartOfAccounts,

      @ObjectModel.foreignKey.association: '_CnsldtnFSItemHierDir'
      // TODO: Add text association to hierarchy directory text

  key _CnsldtnFSItemHierarchyText.CnsldtnFSItemHierarchy as FinancialStatementItemHier,

      @ObjectModel.foreignKey.association: '_CnsldtnFSItemHier'
  key _CnsldtnFSItemHierarchyText.HierarchyNode,

      @Semantics.text: true
      @EndUserText.label: 'Node Description'
      _CnsldtnFSItemHierarchyText.HierarchyNodeText,

      _CnsldtnFSItemHier.NodeType, // TODO: clarify why the node type is required for exposing the texts


      // associations

      @Consumption.hidden: true
      _CnsldtnChartOfAccountsT, // required for text retrieval


      @Consumption.hidden: true
      _CnsldtnChartOfAccounts, // required for value help retrieval


      @Consumption.hidden: true
      _CnsldtnFSItemHierDir, // required for value help retrieval


      _CnsldtnFSItemHier // required for value help retrieval and navigation

}
where
  (
    (
          _CnsldtnFSItemHierarchyText.ValidityStartDate = '00000000'
      and _CnsldtnFSItemHierarchyText.ValidityEndDate   = '00000000'
    )
    or(
          _CnsldtnFSItemHierarchyText.ValidityStartDate <= $session.system_date
      and _CnsldtnFSItemHierarchyText.ValidityEndDate   >= $session.system_date
    )
  );
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"A_CNSLDTNFSITEMHIER_2",
"I_CNSLDTNFSITEMHIERNODETEXT_2"
],
"ASSOCIATED":
[
"A_CNSLDTNCHARTOFACCOUNTS",
"A_CNSLDTNCHARTOFACCOUNTST",
"A_CNSLDTNFSITEMHIERDIR",
"A_CNSLDTNFSITEMHIER_2"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/