P_RU_FinancialStatementItem

DDL: P_RU_FINANCIALSTATEMENTITEM SQL: PRUFINSTMNTITEM Type: view CONSUMPTION Package: GLO_FIN_IS_RU_FIN_STMNT

Financial Statement for Russia

P_RU_FinancialStatementItem is a Consumption CDS View that provides data about "Financial Statement for Russia" in SAP S/4HANA. It reads from 5 data sources (I_GLAccountLineItem, I_GLAccountInCompanyCode, I_RU_FinStmntRptgItems, I_GLAccountInCompanyCode, P_RU_FinancialStatementDC) and exposes 61 fields. It has 4 associations to related views. Part of development package GLO_FIN_IS_RU_FIN_STMNT.

Data Sources (5)

SourceAliasJoin Type
I_GLAccountLineItem AccountingDocumentItem left_outer
I_GLAccountInCompanyCode AltGLAccountInCompanyCode left_outer
I_RU_FinStmntRptgItems FIRUD from
I_GLAccountInCompanyCode GLAccountInCompanyCode left_outer
P_RU_FinancialStatementDC P_RU_FinancialStatementDC left_outer

Parameters (7)

NameTypeDefault
P_FinancialStatementHierarchy hryid
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id
P_AlternativeGLAccountIsUsed char1
P_Language sylangu
P_Ledger fins_ledger

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_FiscalYearForCompanyCode _FiscalYear $projection.FiscalYear = _FiscalYear.FiscalYear and $projection.CompanyCode = _FiscalYear.CompanyCode
[0..1] I_ChartOfAccounts _ChartOfAccounts $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts
[1..1] I_GLAccountLineItem _GLAccountLineItem $projection.AccountingDocument = _GLAccountLineItem.AccountingDocument and $projection.FiscalYear = _GLAccountLineItem.FiscalYear and $projection.CompanyCode = _GLAccountLineItem.CompanyCode and _GLAccountLineItem.Ledger = $parameters.P_Ledger and _GLAccountLineItem.LedgerGLLineItem = FIRUD.LedgerGLLineItem and ( GLAccountInCompanyCode.GLAccount = _GLAccountLineItem.GLAccount and AltGLAccountInCompanyCode.AlternativeGLAccount is null or AltGLAccountInCompanyCode.AlternativeGLAccount = _GLAccountLineItem.AlternativeGLAccount )

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PRUFINSTMNTITEM view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #CONSUMPTION view
VDM.private true view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
EndUserText.label Financial Statement for Russia view

Fields (61)

KeyFieldSource TableSource FieldDescription
FinancialStatementHierarchy Hierarchy FinancialStatementHierarchy Hierarchy ID
HierarchyNode Hierarchy HierarchyNode Node
ValidityEndDate Hierarchy ValidityEndDate ValidTo
CompanyCode I_RU_FinStmntRptgItems CompanyCode Receiver Company Code
FiscalYear I_RU_FinStmntRptgItems FiscalYear G/L Fiscal Year
InvoiceYear I_RU_FinStmntRptgItems InvoiceYear Orig.Inv.Year
AccountingDocument I_RU_FinStmntRptgItems AccountingDocument Journal Entry
ParentNode
HierarchyParentNode Hierarchy ParentNode Parent Node
FinancialStatementLeafItem Hierarchy FinancialStatementLeafItem Node
NodeType Hierarchy NodeType Object Type
FinStatementHierarchyNodeValue Hierarchy FinStatementHierarchyNodeValue Value
FunctionalAreaIsUsed Hierarchy FunctionalAreaIsUsed
DebitCreditCode Hierarchy DebitCreditCode Single-Character Flag
ChartOfAccounts
GLAccountendasGLAccount
GLAccountendasRealGLAccount
AlternativeGLAccount I_GLAccountInCompanyCode AlternativeGLAccount Group Account
Currency I_RU_FinStmntRptgItems Currency Valuation Crcy
_FinancialStatementLeafItem _FinancialStatementLeafItem
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_ChartOfAccounts _ChartOfAccounts
ControllingArea _GLAccountLineItem ControllingArea Controlling Area
Segment _GLAccountLineItem Segment Segment number
ProfitCenter _GLAccountLineItem ProfitCenter Profit Center
CostCenter _GLAccountLineItem CostCenter Cost Center
BusinessArea _GLAccountLineItem BusinessArea Business Area
Supplier _GLAccountLineItem Supplier Supplier
Customer _GLAccountLineItem Customer Sold-to Party
AccountingDocumentType _GLAccountLineItem AccountingDocumentType Journal Entry Type
FiscalPeriod _GLAccountLineItem FiscalPeriod Tax period
MasterFixedAsset _GLAccountLineItem MasterFixedAsset Fixed Asset
FixedAsset _GLAccountLineItem FixedAsset Sub-number
AssetClass _GLAccountLineItem AssetClass Asset Class
AssignmentReference _GLAccountLineItem AssignmentReference Assignment Reference
Plant _GLAccountLineItem Plant Valuation Area
InventoryValuationType _GLAccountLineItem InventoryValuationType Valuation Type
ValuationArea _GLAccountLineItem ValuationArea Valuation Area
Product _GLAccountLineItem Product Product Sold
FunctionalArea _GLAccountLineItem FunctionalArea Sendr Fctl Area
FinancialStatementExplanation
Material _GLAccountLineItem Material Vehicle Model
LedgerGLLineItem I_RU_FinStmntRptgItems LedgerGLLineItem Journal Entry Item
HierarchyNodeText _ParentText HierarchyNodeText
_Customer _GLAccountLineItem _Customer
_Supplier _GLAccountLineItem _Supplier
_ProfitCenter _GLAccountLineItem _ProfitCenter
_CostCenter _GLAccountLineItem _CostCenter
_BusinessArea _GLAccountLineItem _BusinessArea
_FunctionalArea _GLAccountLineItem _FunctionalArea
_ControllingArea _GLAccountLineItem _ControllingArea
_Segment _GLAccountLineItem _Segment
_AccountingDocumentType _GLAccountLineItem _AccountingDocumentType
_InventoryValuationType _GLAccountLineItem _InventoryValuationType
_Product _GLAccountLineItem _Product
_PurReqValuationArea _GLAccountLineItem _PurReqValuationArea
_Material _GLAccountLineItem _Material
CustomerFinsAuthorizationGrp
SupplierFinsAuthorizationGrp
AlternativeGLAccountIsUsed

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 P_RU_FinancialStatementItem.
-- 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: PRUFINSTMNTITEM
-- Parameters: P_FinancialStatementHierarchy : hryid, P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_AlternativeGLAccountIsUsed : char1, P_Language : sylangu, P_Ledger : fins_ledger

CREATE VIEW P_RU_FinancialStatementItem AS
SELECT
  Hierarchy.FinancialStatementHierarchy AS FinancialStatementHierarchy,
  Hierarchy.HierarchyNode AS HierarchyNode,
  Hierarchy.ValidityEndDate AS ValidityEndDate,
  FIRUD.CompanyCode AS CompanyCode,
  FIRUD.FiscalYear AS FiscalYear,
  FIRUD.InvoiceYear AS InvoiceYear,
  FIRUD.AccountingDocument AS AccountingDocument,
  ltrim( Hierarchy.ParentNode, '0' ) AS ParentNode,
  Hierarchy.ParentNode AS HierarchyParentNode,
  Hierarchy.FinancialStatementLeafItem AS FinancialStatementLeafItem,
  Hierarchy.NodeType AS NodeType,
  Hierarchy.FinStatementHierarchyNodeValue AS FinStatementHierarchyNodeValue,
  Hierarchy.FunctionalAreaIsUsed AS FunctionalAreaIsUsed,
  Hierarchy.DebitCreditCode AS DebitCreditCode,
  cast( substring(Hierarchy.ChartOfAccounts,1,4) as ktopl preserving type ) AS ChartOfAccounts,
  case $parameters.P_AlternativeGLAccountIsUsed when '1' then AltGLAccountInCompanyCode.AlternativeGLAccount else GLAccountInCompanyCode.GLAccount end as GLAccount AS GLAccountendasGLAccount,
  case $parameters.P_AlternativeGLAccountIsUsed when '1' then AltGLAccountInCompanyCode.GLAccount else GLAccountInCompanyCode.GLAccount end as RealGLAccount AS GLAccountendasRealGLAccount,
  AltGLAccountInCompanyCode.AlternativeGLAccount AS AlternativeGLAccount,
  FIRUD.Currency AS Currency,
  _GLAccountLineItem.ControllingArea AS ControllingArea,
  _GLAccountLineItem.Segment AS Segment,
  _GLAccountLineItem.ProfitCenter AS ProfitCenter,
  _GLAccountLineItem.CostCenter AS CostCenter,
  _GLAccountLineItem.BusinessArea AS BusinessArea,
  _GLAccountLineItem.Supplier AS Supplier,
  _GLAccountLineItem.Customer AS Customer,
  _GLAccountLineItem.AccountingDocumentType AS AccountingDocumentType,
  _GLAccountLineItem.FiscalPeriod AS FiscalPeriod,
  _GLAccountLineItem.MasterFixedAsset AS MasterFixedAsset,
  _GLAccountLineItem.FixedAsset AS FixedAsset,
  _GLAccountLineItem.AssetClass AS AssetClass,
  _GLAccountLineItem.AssignmentReference AS AssignmentReference,
  _GLAccountLineItem.Plant AS Plant,
  _GLAccountLineItem.InventoryValuationType AS InventoryValuationType,
  _GLAccountLineItem.ValuationArea AS ValuationArea,
  _GLAccountLineItem.Product AS Product,
  _GLAccountLineItem.FunctionalArea AS FunctionalArea,
  '' AS FinancialStatementExplanation,
  _GLAccountLineItem.Material AS Material,
  FIRUD.LedgerGLLineItem AS LedgerGLLineItem,
  _ParentText.HierarchyNodeText AS HierarchyNodeText,
  _GLAccountLineItem._Customer AS _Customer,
  _GLAccountLineItem._Supplier AS _Supplier,
  _GLAccountLineItem._ProfitCenter AS _ProfitCenter,
  _GLAccountLineItem._CostCenter AS _CostCenter,
  _GLAccountLineItem._BusinessArea AS _BusinessArea,
  _GLAccountLineItem._FunctionalArea AS _FunctionalArea,
  _GLAccountLineItem._ControllingArea AS _ControllingArea,
  _GLAccountLineItem._Segment AS _Segment,
  _GLAccountLineItem._AccountingDocumentType AS _AccountingDocumentType,
  _GLAccountLineItem._InventoryValuationType AS _InventoryValuationType,
  _GLAccountLineItem._Product AS _Product,
  _GLAccountLineItem._PurReqValuationArea AS _PurReqValuationArea,
  _GLAccountLineItem._Material AS _Material,
  _GLAccountLineItem._Customer.AuthorizationGroup AS CustomerFinsAuthorizationGrp,
  _GLAccountLineItem._Supplier.AuthorizationGroup AS SupplierFinsAuthorizationGrp,
  $parameters.P_AlternativeGLAccountIsUsed AS AlternativeGLAccountIsUsed
FROM I_RU_FinStmntRptgItems AS FIRUD
LEFT OUTER JOIN I_GLAccountLineItem AS AccountingDocumentItem ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_GLAccountInCompanyCode AS GLAccountInCompanyCode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_GLAccountInCompanyCode AS AltGLAccountInCompanyCode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_RU_FinancialStatementDC ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [1..1]
LEFT OUTER JOIN I_FiscalYearForCompanyCode AS _FiscalYear ON FiscalYear = _FiscalYear.FiscalYear AND CompanyCode = _FiscalYear.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts  -- association [0..1]
LEFT OUTER JOIN I_GLAccountLineItem AS _GLAccountLineItem ON AccountingDocument = _GLAccountLineItem.AccountingDocument AND FiscalYear = _GLAccountLineItem.FiscalYear AND CompanyCode = _GLAccountLineItem.CompanyCode AND _GLAccountLineItem.Ledger = $parameters.P_Ledger AND _GLAccountLineItem.LedgerGLLineItem = FIRUD.LedgerGLLineItem AND ( GLAccountInCompanyCode.GLAccount = _GLAccountLineItem.GLAccount AND AltGLAccountInCompanyCode.AlternativeGLAccount is null OR AltGLAccountInCompanyCode.AlternativeGLAccount = _GLAccountLineItem.AlternativeGLAccount )  -- association [1..1]
;