C_RU_FinancialStatementItemC_2

DDL: C_RU_FINANCIALSTATEMENTITEMC_2 SQL: CRUFINSTMNTITMC2 Type: view CONSUMPTION

Financial Statement Item Cube

C_RU_FinancialStatementItemC_2 is a Consumption CDS View (Cube) that provides data about "Financial Statement Item Cube" in SAP S/4HANA. It reads from 1 data source (P_RU_FinancialStatementItem_2) and exposes 66 fields with key fields FinancialStatementHierarchy, HierarchyNode, HierarchyParentNode, ValidityEndDate, FinancialStatementFormType. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_RU_FinancialStatementItem_2 P_RU_FinancialStatementItem_2 from

Parameters (11)

NameTypeDefault
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id
P_FiscalYear srf_report_year
P_PreviousFiscalYear srf_report_year
P_FinancialStatementHierarchy hryid
P_FinancialStatementFormType firu_finstat_formtype
P_AlternativeGLAccountIsUsed char1
P_FromPostingDate fis_budat
P_ToPostingDate fis_budat
P_Ledger fins_ledger

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_GLAccountInCompanyCode _GLAccountInCompanyCode $projection.CompanyCode = _GLAccountInCompanyCode.CompanyCode and $projection.GLAccount = _GLAccountInCompanyCode.GLAccount
[0..1] I_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts $projection.ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts and ( ( $projection.GLAccount = _GLAccountInChartOfAccounts.GLAccount and P_RU_FinancialStatementItem.AlternativeGLAccountIsUsed <> '1' ) or ( $projection.AlternativeGLAccount = _GLAccountInChartOfAccounts.GLAccount and P_RU_FinancialStatementItem.AlternativeGLAccountIsUsed = '1' ) )

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CRUFINSTMNTITMC2 view
AbapCatalog.compiler.compareFilter true view
Analytics.dataCategory #CUBE view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
EndUserText.label Financial Statement Item Cube view
Metadata.allowExtensions true view
Analytics.internalName #LOCAL view
AbapCatalog.preserveKey true view

Fields (66)

KeyFieldSource TableSource FieldDescription
KEY FinancialStatementHierarchy FinancialStatementHierarchy Hierarchy ID
KEY HierarchyNode HierarchyNode Node
KEY HierarchyParentNode HierarchyParentNode Hier.node
KEY ValidityEndDate ValidityEndDate ValidTo
KEY FinancialStatementFormType FinancialStatementFormType
KEY Ledger P_RU_FinancialStatementItem Ledger Ledger
KEY CompanyCode P_RU_FinancialStatementItem CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
FinancialStatementLeafItem FinancialStatementLeafItem Node
NodeType NodeType Object Type
FinStatementHierarchyNodeValue FinStatementHierarchyNodeValue Value
FunctionalAreaIsUsed FunctionalAreaIsUsed
PostingDate PostingDate Posting Date for GR
DebitCreditCode DebitCreditCode Single-Character Flag
ChartOfAccounts ChartOfAccounts Node Class
GLAccount RealGLAccount General Ledger
AlternativeGLAccount AlternativeGLAccount Group Account
Currency Currency Valuation Crcy
PeriodBalAmtInDspCrcy PeriodBalAmtInDspCrcy
DebitAmountInDisplayCrcy DebitAmountInDisplayCrcy
CreditAmountInDisplayCrcy CreditAmountInDisplayCrcy
YearlyBalAmtInDspCrcy YearlyBalAmtInDspCrcy
StartingBalAmtInDspCrcy StartingBalAmtInDspCrcy
EndingBalAmtInDspCrcy EndingBalAmtInDspCrcy
HierarchyNodeText HierarchyNodeText
_FinancialStatementLeafItem _FinancialStatementLeafItem
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_ChartOfAccounts _ChartOfAccounts
_GLAccountInCompanyCode _GLAccountInCompanyCode
AlternativeGLAccountIsUsed AlternativeGLAccountIsUsed
ControllingArea ControllingArea Controlling Area
Segment Segment Segment number
ProfitCenter ProfitCenter Profit Center
CostCenter CostCenter Cost Center
BusinessArea BusinessArea Business Area
Supplier Supplier Supplier
Customer Customer Sold-to Party
AccountingDocumentType AccountingDocumentType Journal Entry Type
FiscalPeriod FiscalPeriod Tax period
MasterFixedAsset MasterFixedAsset Fixed Asset
FixedAsset FixedAsset Sub-number
AssetClass AssetClass Asset Class
AssignmentReference AssignmentReference Assignment Reference
Plant Plant Valuation Area
InventoryValuationType InventoryValuationType Valuation Type
ValuationArea ValuationArea Valuation Area
Product Product Product Sold
FunctionalArea FunctionalArea Sendr Fctl Area
FinancialStatementExplanation FinancialStatementExplanation
Material Material Vehicle Model
_AccountingDocumentType _AccountingDocumentType
_BusinessArea _BusinessArea
_ControllingArea _ControllingArea
_CostCenter _CostCenter
_Customer _Customer
_FunctionalArea _FunctionalArea
_InventoryValuationType _InventoryValuationType
_Product _Product
_ProfitCenter _ProfitCenter
_PurReqValuationArea _PurReqValuationArea
_Segment _Segment
_Supplier _Supplier
_Material _Material

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 C_RU_FinancialStatementItemC_2.
-- 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: CRUFINSTMNTITMC2
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_FiscalYear : srf_report_year, P_PreviousFiscalYear : srf_report_year, P_FinancialStatementHierarchy : hryid, P_FinancialStatementFormType : firu_finstat_formtype, P_AlternativeGLAccountIsUsed : char1, P_FromPostingDate : fis_budat, P_ToPostingDate : fis_budat, P_Ledger : fins_ledger

CREATE VIEW C_RU_FinancialStatementItemC_2 AS
SELECT
  FinancialStatementHierarchy,
  HierarchyNode,
  HierarchyParentNode,
  ValidityEndDate,
  FinancialStatementFormType,
  P_RU_FinancialStatementItem.Ledger AS Ledger,
  P_RU_FinancialStatementItem.CompanyCode AS CompanyCode,
  FiscalYear,
  AccountingDocument,
  LedgerGLLineItem,
  FinancialStatementLeafItem,
  NodeType,
  FinStatementHierarchyNodeValue,
  FunctionalAreaIsUsed,
  PostingDate,
  DebitCreditCode,
  ChartOfAccounts,
  RealGLAccount AS GLAccount,
  AlternativeGLAccount,
  Currency,
  PeriodBalAmtInDspCrcy,
  DebitAmountInDisplayCrcy,
  CreditAmountInDisplayCrcy,
  YearlyBalAmtInDspCrcy,
  StartingBalAmtInDspCrcy,
  EndingBalAmtInDspCrcy,
  HierarchyNodeText,
  AlternativeGLAccountIsUsed,
  ControllingArea,
  Segment,
  ProfitCenter,
  CostCenter,
  BusinessArea,
  Supplier,
  Customer,
  AccountingDocumentType,
  FiscalPeriod,
  MasterFixedAsset,
  FixedAsset,
  AssetClass,
  AssignmentReference,
  Plant,
  InventoryValuationType,
  ValuationArea,
  Product,
  FunctionalArea,
  FinancialStatementExplanation,
  Material
FROM P_RU_FinancialStatementItem_2
LEFT OUTER JOIN I_GLAccountInCompanyCode AS _GLAccountInCompanyCode ON CompanyCode = _GLAccountInCompanyCode.CompanyCode AND GLAccount = _GLAccountInCompanyCode.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts ON ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts AND ( ( GLAccount = _GLAccountInChartOfAccounts.GLAccount AND P_RU_FinancialStatementItem.AlternativeGLAccountIsUsed <> '1' ) OR ( AlternativeGLAccount = _GLAccountInChartOfAccounts.GLAccount AND P_RU_FinancialStatementItem.AlternativeGLAccountIsUsed = '1' ) )  -- association [0..1]
;