I_MatrixCnsldtnFndnForYTDMode

DDL: I_MATRIXCNSLDTNFNDNFORYTDMODE SQL: IMCFNDNYTD Type: view COMPOSITE Package: FIN_CS_ANALYTICS_FOUNDATION

Matrix Consolidation Foundation

I_MatrixCnsldtnFndnForYTDMode is a Composite CDS View that provides data about "Matrix Consolidation Foundation" in SAP S/4HANA. It reads from 1 data source (P_Matrix_CnsldtnFoundationYTD) and exposes 184 fields with key fields ConsolidationLedger, ConsolidationDimension, FiscalYear, ConsolidationDocumentNumber, ConsolidationPostingItem. It has 71 associations to related views. Part of development package FIN_CS_ANALYTICS_FOUNDATION.

Data Sources (1)

SourceAliasJoin Type
P_Matrix_CnsldtnFoundationYTD P_Matrix_CnsldtnFoundationYTD from

Parameters (7)

NameTypeDefault
P_ConsolidationUnitHierarchy fincs_hryid
P_ConsolidationPrftCtrHier fincs_hryid
P_ConsolidationSegmentHier fincs_hryid
P_ConsolidationGroup fc_congr
P_KeyDate sydate
P_FromFiscalYearPeriod fincs_fiscyearper
P_ToFiscalYearPeriod fincs_fiscyearper

Associations (71)

CardinalityTargetAliasCondition
[1..1] E_CnsldtnGroupJrnlEntryItem _Extension $projection.ConsolidationLedger = _Extension.ConsolidationLedger and $projection.ConsolidationDimension = _Extension.ConsolidationDimension and $projection.FiscalYear = _Extension.FiscalYear and $projection.ConsolidationDocumentNumber = _Extension.CnsldtnGroupJrnlEntry and $projection.ConsolidationPostingItem = _Extension.CnsldtnGroupJrnlEntryItem
[1..1] I_CnsldtnLedger _Ledger $projection.ConsolidationLedger = _Ledger.ConsolidationLedger
[1..1] I_CnsldtnDimension _Dimension _Dimension.ConsolidationDimension = $projection.ConsolidationDimension
[1..1] I_CnsldtnVersion _Version $projection.ConsolidationVersion = _Version.ConsolidationVersion
[1..1] I_CnsldtnVersion _VersionElement $projection.ConsolidationVersionElement = _VersionElement.ConsolidationVersion
[1..1] I_Globalcompany _Company $projection.Company = _Company.Company
[0..1] I_DebitCreditCode _DebitCreditCode $projection.DebitCreditCode = _DebitCreditCode.DebitCreditCode
[1..1] I_CnsldtnUnit_2 _CnsldtnUnit _CnsldtnUnit.ConsolidationDimension = 'Y1' and $projection.ConsolidationUnit = _CnsldtnUnit.ConsolidationUnit
[1..1] I_CnsldtnUnitForElimination _CnsldtnUnitForElimination _CnsldtnUnitForElimination.ConsolidationDimension = 'Y1' and $projection.ConsolidationUnitForElim = _CnsldtnUnitForElimination.ConsolidationUnit
[1..1] I_CnsldtnGroupWithEmptyValue _CnsldtnGroup $projection.ConsolidationDimension =_CnsldtnGroup.ConsolidationDimension and $projection.ConsolidationGroup = _CnsldtnGroup.ConsolidationGroup
[1..1] I_CnsldtnChartOfAccounts _ChartOfAccounts $projection.ConsolidationChartOfAccounts = _ChartOfAccounts.ConsolidationChartOfAccounts
[1..1] I_GroupReportingFSItem _FinStmntItm $projection.ConsolidationChartOfAccounts = _FinStmntItm.ConsolidationChartOfAccounts and $projection.FinancialStatementItem = _FinStmntItm.FinancialStatementItem
[1..1] I_CnsldtnFSItem_2 _CnsldtnFSItem_2 $projection.ConsolidationChartOfAccounts = _CnsldtnFSItem_2.ConsolidationChartOfAccounts and $projection.FinancialStatementItem = _CnsldtnFSItem_2.CnsldtnFinancialStatementItem
[0..1] I_CnsldtnUnit_2 _PartnerUnit _PartnerUnit.ConsolidationDimension = 'Y1' and $projection.PartnerConsolidationUnit = _PartnerUnit.ConsolidationUnit
[0..1] I_CompanyCode _CompanyCode $projection.CompanyCode = _CompanyCode.CompanyCode
[0..1] I_CnsldtnGLAccount _GLAccountInChartOfAccounts $projection.ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts and $projection.GLAccount = _GLAccountInChartOfAccounts.GLAccount
[0..1] I_GLAccountInCompanyCode _GLAccountInCompanyCode $projection.CompanyCode = _GLAccountInCompanyCode.CompanyCode and $projection.GLAccount = _GLAccountInCompanyCode.GLAccount
[0..1] I_CnsldtnGLChartOfAccounts _GLChartOfAccounts $projection.ChartOfAccounts = _GLChartOfAccounts.ChartOfAccounts
[0..1] I_CnsldtnSubItemCategory _SubItemCategory $projection.SubItemCategory = _SubItemCategory.SubItemCategory
[0..1] I_CnsldtnSubItem _SubItem $projection.SubItemCategory = _SubItem.SubItemCategory and $projection.SubItem = _SubItem.SubItem
[1..1] I_CnsldtnDocumentType _DocumentType _DocumentType.ConsolidationDimension = 'Y1' and $projection.ConsolidationDocumentType = _DocumentType.ConsolidationDocumentType
[1..1] I_CnsldtnPostingLevel _PostingLevel $projection.PostingLevel = _PostingLevel.PostingLevel
[0..1] I_CnsldtnUnit_2 _InvesteeUnit _InvesteeUnit.ConsolidationDimension = 'Y1' and $projection.InvesteeConsolidationUnit = _InvesteeUnit.ConsolidationUnit
[0..1] I_CnsldtnUnit_2 _InvestorUnit _InvestorUnit.ConsolidationDimension = 'Y1' and $projection.InvestorConsolidationUnit = _InvestorUnit.ConsolidationUnit
[1..1] I_CnsldtnApportionment _Apportionment $projection.ConsolidationApportionment = _Apportionment.ConsolidationApportionment
[1..1] I_CnsldtnCrcyCnvrsnDiffType _CrcyCnvrsnDiffType $projection.CurrencyConversionsDiffType = _CrcyCnvrsnDiffType.CurrencyConversionsDiffType
[0..1] I_Currency _TransactionCurrency $projection.TransactionCurrency = _TransactionCurrency.Currency
[0..1] I_Currency _LocalCurrency $projection.LocalCurrency = _LocalCurrency.Currency
[0..1] I_Currency _GroupCurrency $projection.GroupCurrency = _GroupCurrency.Currency
[0..1] I_UnitOfMeasure _BaseUnit $projection.BaseUnit = _BaseUnit.UnitOfMeasure
[0..1] I_CnsldtnInternalOrder _InternalOrder $projection.OrderID = _InternalOrder.InternalOrder
[0..1] I_CnsldtnCustomer _Customer $projection.Customer = _Customer.Customer
[0..1] I_CnsldtnSupplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_CnsldtnMaterial _Material $projection.Material = _Material.Material
[0..1] I_CnsldtnMaterialGroup _MaterialGroup $projection.MaterialGroup = _MaterialGroup.MaterialGroup
[0..1] I_CnsldtnPlant _Plant $projection.Plant = _Plant.Plant
[0..1] I_CnsldtnFinTransType _FinancialTransactionType $projection.FinancialTransactionType = _FinancialTransactionType.FinancialTransactionType
[0..1] I_CnsldtnWBSElement _WBSElement $projection.Project = _WBSElement.Project and $projection.WBSElementExternalID = _WBSElement.WBSElement
[0..1] I_WBSElementBasicData _WBSElementInternalID $projection.WBSElementInternalID = _WBSElementInternalID.WBSElementInternalID
[0..1] I_CnsldtnProject _Project $projection.Project = _Project.Project
[0..1] I_CnsldtnCostCenter _CostCenter $projection.ControllingArea = _CostCenter.ControllingArea and $projection.CostCenter = _CostCenter.CostCenter
[0..1] I_CnsldtnProfitCenter _ProfitCenter $projection.ControllingArea = _ProfitCenter.ControllingArea and $projection.ProfitCenter = _ProfitCenter.ProfitCenter
[0..1] I_CnsldtnProfitCenterForElim _ProfitCenterForElim $projection.ControllingArea = _ProfitCenterForElim.ControllingArea and $projection.ConsolidationPrftCtrForElim = _ProfitCenterForElim.ProfitCenter
[0..1] I_CnsldtnFunctionalArea _FunctionalArea $projection.FunctionalArea = _FunctionalArea.FunctionalArea
[0..1] I_CnsldtnBusinessArea _BusinessArea $projection.BusinessArea = _BusinessArea.BusinessArea
[0..1] I_CnsldtnControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..1] I_CnsldtnSegment _Segment $projection.Segment = _Segment.Segment
[0..1] I_CnsldtnSegmentForElim _SegmentForElim $projection.ConsolidationSegmentForElim = _SegmentForElim.Segment
[0..1] I_CnsldtnCostCenter _PartnerCostCenter $projection.ControllingArea = _PartnerCostCenter.ControllingArea and $projection.PartnerCostCenter = _PartnerCostCenter.CostCenter
[0..1] I_CnsldtnProfitCenter _PartnerProfitCenter $projection.ControllingArea = _PartnerProfitCenter.ControllingArea and $projection.PartnerProfitCenter = _PartnerProfitCenter.ProfitCenter
[0..1] I_CnsldtnFunctionalArea _PartnerFunctionalArea $projection.PartnerFunctionalArea = _PartnerFunctionalArea.FunctionalArea
[0..1] I_CnsldtnBusinessArea _PartnerBusinessArea $projection.PartnerBusinessArea = _PartnerBusinessArea.BusinessArea
[1..1] I_Globalcompany _PartnerCompany $projection.PartnerCompany = _PartnerCompany.Company
[0..1] I_CnsldtnSegment _PartnerSegment $projection.PartnerSegment = _PartnerSegment.Segment
[0..1] I_CnsldtnBillingType _BillingDocumentType $projection.BillingDocumentType = _BillingDocumentType.BillingDocumentType
[0..1] I_CnsldtnSalesOrganization _SalesOrganization $projection.SalesOrganization = _SalesOrganization.SalesOrganization
[0..1] I_CnsldtnDistributionChannel _DistributionChannel $projection.DistributionChannel = _DistributionChannel.DistributionChannel
[0..1] I_CnsldtnDivision _Division $projection.OrganizationDivision = _Division.Division
[0..1] I_CnsldtnMaterial _SoldMaterial $projection.SoldMaterial = _SoldMaterial.Material
[0..1] I_CnsldtnProduct _SoldProduct $projection.SoldProduct = _SoldProduct.Product
[0..1] I_CnsldtnMaterialGroup _SoldProductGroup $projection.SoldProductGroup = _SoldProductGroup.MaterialGroup
[0..1] I_CnsldtnCustomerGroup _CustomerGroup $projection.CustomerGroup = _CustomerGroup.CustomerGroup
[0..1] I_CnsldtnCountry _Country $projection.CustomerSupplierCountry = _Country.Country
[0..1] I_CnsldtnIndustry _Industry $projection.CustomerSupplierIndustry = _Industry.Industry
[0..1] I_CnsldtnSalesDistrict _SalesDistrict $projection.SalesDistrict = _SalesDistrict.SalesDistrict
[0..1] I_CnsldtnCustomer _BillToParty $projection.BillToParty = _BillToParty.Customer
[0..1] I_CnsldtnCustomer _ShipToParty $projection.ShipToParty = _ShipToParty.Customer
[0..1] I_CnsldtnAdhocItem _AdhocItem $projection.ConsolidationChartOfAccounts = _AdhocItem.ConsolidationChartOfAccounts and $projection.CnsldtnAdhocItem = _AdhocItem.CnsldtnAdhocItem
[0..1] I_CnsldtnAdhocSet _AdhocSet $projection.ConsolidationChartOfAccounts = _AdhocSet.ConsolidationChartOfAccounts and $projection.CnsldtnAdhocSet = _AdhocSet.CnsldtnAdhocSet
[0..1] I_CnsldtnAdhocSetItem _AdhocSetItem $projection.ConsolidationChartOfAccounts = _AdhocSetItem.ConsolidationChartOfAccounts and $projection.CnsldtnAdhocSet = _AdhocSetItem.CnsldtnAdhocSet and $projection.CnsldtnAdhocSetItem = _AdhocSetItem.CnsldtnAdhocSetItem
[0..1] I_FsclYearQtrByFsclPeriod _FsclYearQtrByFsclPeriod $projection.FiscalYear = _FsclYearQtrByFsclPeriod.FiscalYear and $projection.FiscalPeriod = _FsclYearQtrByFsclPeriod.FiscalPeriod and $projection.FiscalYearVariant = _FsclYearQtrByFsclPeriod.FiscalYearVariant

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IMCFNDNYTD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AbapCatalog.buffering.status #NOT_ALLOWED view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
VDM.viewType #COMPOSITE view
EndUserText.label Matrix Consolidation Foundation view

Fields (184)

KeyFieldSource TableSource FieldDescription
KEY ConsolidationLedger rldnr Ledger (Compat.)
KEY ConsolidationDimension rdimen Dimension
KEY FiscalYear ryear Ref. Year1
KEY ConsolidationDocumentNumber docnr Well doc.no.
KEY ConsolidationPostingItem docln Matching Document Line Item
KEY ConsolidationGroup rcongr Consolidation Group
KEY FiscalPeriod poper Posting periods
KEY PeriodMode period_mode
FiscalYearPeriod Period/Year
FiscalYearQuarter _FsclYearQtrByFsclPeriod FiscalYearQuarter
FiscalQuarter
FiscalYearVariant FiscalYearVariant FY Variant
PostingFiscalPeriod poper_posting
GLRecordType Record Type
ConsolidationVersion rvers Version: Tax rt
ConsolidationVersionElement ConsolidationVersionElement Version: Tax rt
TransactionCurrency rtcur Currency
LocalCurrency rhcur Local Currency
GroupCurrency rkcur Ledger curr.
BaseUnit runit Unit/Area
DocumentCategory docct Document Categ.
ConsolidationDocumentType docty Document Type
DebitCreditCode drcrk Debit/Credit
Company rcomp Trading Partner
ConsolidationUnit rbunit Consolidation Unit
ConsolidationUnitForElim rbunit_eliminated Cons. Elim. Member
ConsolidationChartOfAccounts ritclg Consolidation COA
FinancialStatementItem ritem Reporting Item
PartnerConsolidationUnit rbuptr Partner Unit
CompanyCode robukrs Orig. CC
SubItemCategory sityp Trip Schedule Type
SubItem subit Subitem
PostingLevel plevl Posting Level
ConsolidationApportionment rpflg Apportionment
CurrencyConversionsDiffType rtflg Currency Translation Indicator
ConsolidationAcquisitionYear yracq Year of Acquisition
ConsolidationAcquisitionPeriod pracq Period of Acquisition
InvesteeConsolidationUnit coicu Investee Unit
InvestorConsolidationUnit uppcu Investor Unit
AmountInTransactionCurrency tsl Trans. Currency
AmountInLocalCurrency hsl Local Crcy Amt
AmountInGroupCurrency ksl GrpCurr
QuantityInBaseUnit Stat. KeyFig. Qty
CnsldtnQuantityInBaseUnit msl Stat. KeyFig. Qty
DocumentItemText sgtxt Text
ConsolidationPostgItemAutoFlag autom Automatic Call
BusinessTransactionType activ Transaction
PostingDate budat Posting Date
CurrencyTranslationDate wsdat Value Date
RefConsolidationDocumentNumber refdocnr Reference
ReferenceFiscalYear refryear Reference year
RefConsolidationPostingItem refdocln Reference Item
RefConsolidationDocumentType refdocct Ref. Doc. Cat.
RefBusinessTransactionType refactiv Ref. Transactn
CreationDateTime timestamp UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
CreationDate cpudt Imported On
CreationTime cputm Time
UserID usnam User Name
ReverseDocument rvsdocnr Reversed With
ReversedDocument orndocnr Reversed doc.
InvestmentActivityType coiac Investment Activity
InvestmentActivity coinr Investment Activity Number
ConsolidationDocReversalYear revyear Year of reversal doc
ReferenceDocumentType awtyp Reference Document Type
ReferenceDocumentContext aworg Refer. Org.Unit
LogicalSystem logsys Source system
ChartOfAccounts ktopl G/L Chart of Accounts
GLAccount racct GL Account From
AssignmentReference zuonr Finance Project
CostCenter rcntr Cost Center
ProfitCenter prctr Profit Centers
ConsolidationPrftCtrForElim prctr_eliminated Cons. Elim. Member
FunctionalArea rfarea R FuncArea
BusinessArea rbusa Business Area
ControllingArea kokrs Org. Value
Segment segment Segment number
ConsolidationSegmentForElim segment_eliminated Cons. Elim. Member
PartnerCostCenter scntr Sender Cost Ctr
PartnerProfitCenter pprctr Partner PC
PartnerFunctionalArea sfarea Sender FnArea
PartnerBusinessArea sbusa Trdg Part.BA
PartnerCompany rassc Trading Partner
PartnerSegment psegment Partner Segment
OrderID aufnr SettlementOrder
Customer kunnr Stock customer
Supplier lifnr Vendor no.
Material matnr Vehicle Model
MaterialGroup matkl_mm Material Group
Plant werks Receiving Plant
FinancialTransactionType rmvct Transact. Type
WBSElementInternalID WBS Element
WBSElementExternalID ps_posid WBS Element
Project ps_pspid Project def.
BillingDocumentType fkart Ship. cost type
SalesOrganization vkorg SD Sales Org.
DistributionChannel vtweg RefDistCh-Cust/Mat.
OrganizationDivision spart Source supplier
SoldMaterial matnr_copa Product Sold
SoldProduct matnr_copa Product Sold
SoldProductGroup matkl Product Sold Group
CustomerGroup kdgrp Customer group
CustomerSupplierCountry land1 Trip Ctry/Reg
CustomerSupplierIndustry brsch Industry
SalesDistrict bzirk Sales District
BillToParty kunre Bill-to Party
ShipToParty kunwe Ship-to Party
CustomerSupplierCorporateGroup konzs Group
CnsldtnAdhocItem adhocitem Ad Hoc Item
CnsldtnAdhocSet adhocset Ad Hoc Set
CnsldtnAdhocSetItem adhocsetitem Ad Hoc Set Item
MatchingReasonCode rcode Result
OriginType orig_type Origin Type
OriginReference orig_ref Origin Ref.
CnsldtnGroupJrnlEntryBundle bunnr Document Bundle No.
_Ledger _Ledger
_Dimension _Dimension
_Version _Version
_VersionElement _VersionElement
_Company _Company
_CnsldtnUnit _CnsldtnUnit
_CnsldtnUnitForElimination _CnsldtnUnitForElimination
_CnsldtnGroup _CnsldtnGroup
_ChartOfAccounts _ChartOfAccounts
_FinStmntItm _FinStmntItm
_CnsldtnFSItem_2 _CnsldtnFSItem_2
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_GLAccountInCompanyCode _GLAccountInCompanyCode
_GLChartOfAccounts _GLChartOfAccounts
_PartnerUnit _PartnerUnit
_CompanyCode _CompanyCode
_SubItemCategory _SubItemCategory
_SubItem _SubItem
_DebitCreditCode _DebitCreditCode
_DocumentType _DocumentType
_PostingLevel _PostingLevel
_InvesteeUnit _InvesteeUnit
_InvestorUnit _InvestorUnit
_Apportionment _Apportionment
_CrcyCnvrsnDiffType _CrcyCnvrsnDiffType
_TransactionCurrency _TransactionCurrency
_LocalCurrency _LocalCurrency
_GroupCurrency _GroupCurrency
_BaseUnit _BaseUnit
_InternalOrder _InternalOrder
_Customer _Customer
_Supplier _Supplier
_Material _Material
_MaterialGroup _MaterialGroup
_Plant _Plant
_FinancialTransactionType _FinancialTransactionType
_WBSElement _WBSElement
_WBSElementInternalID _WBSElementInternalID
_Project _Project
_CostCenter _CostCenter
_ProfitCenter _ProfitCenter
_ProfitCenterForElim _ProfitCenterForElim
_FunctionalArea _FunctionalArea
_BusinessArea _BusinessArea
_ControllingArea _ControllingArea
_Segment _Segment
_SegmentForElim _SegmentForElim
_PartnerCostCenter _PartnerCostCenter
_PartnerProfitCenter _PartnerProfitCenter
_PartnerFunctionalArea _PartnerFunctionalArea
_PartnerBusinessArea _PartnerBusinessArea
_PartnerCompany _PartnerCompany
_PartnerSegment _PartnerSegment
_BillingDocumentType _BillingDocumentType
_SalesOrganization _SalesOrganization
_DistributionChannel _DistributionChannel
_Division _Division
_SoldMaterial _SoldMaterial
_SoldProduct _SoldProduct
_SoldProductGroup _SoldProductGroup
_CustomerGroup _CustomerGroup
_Country _Country
_Industry _Industry
_SalesDistrict _SalesDistrict
_BillToParty _BillToParty
_ShipToParty _ShipToParty
_AdhocItem _AdhocItem
_AdhocSet _AdhocSet
_AdhocSetItem _AdhocSetItem
_FsclYearQtrByFsclPeriod _FsclYearQtrByFsclPeriod

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 I_MatrixCnsldtnFndnForYTDMode.
-- 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: IMCFNDNYTD
-- Parameters: P_ConsolidationUnitHierarchy : fincs_hryid, P_ConsolidationPrftCtrHier : fincs_hryid, P_ConsolidationSegmentHier : fincs_hryid, P_ConsolidationGroup : fc_congr, P_KeyDate : sydate, P_FromFiscalYearPeriod : fincs_fiscyearper, P_ToFiscalYearPeriod : fincs_fiscyearper

CREATE VIEW I_MatrixCnsldtnFndnForYTDMode AS
SELECT
  rldnr AS ConsolidationLedger,
  rdimen AS ConsolidationDimension,
  ryear AS FiscalYear,
  docnr AS ConsolidationDocumentNumber,
  docln AS ConsolidationPostingItem,
  rcongr AS ConsolidationGroup,
  poper AS FiscalPeriod,
  period_mode AS PeriodMode,
  cast(year_period as fis_jahrper_conv preserving type) AS FiscalYearPeriod,
  _FsclYearQtrByFsclPeriod.FiscalYearQuarter AS FiscalYearQuarter,
  _FsclYearQtrByFsclPeriod._FiscalYearQuarter.FiscalQuarter AS FiscalQuarter,
  FiscalYearVariant,
  poper_posting AS PostingFiscalPeriod,
  cast (rrcty as fincs_rrcty preserving type ) AS GLRecordType,
  rvers AS ConsolidationVersion,
  ConsolidationVersionElement,
  rtcur AS TransactionCurrency,
  rhcur AS LocalCurrency,
  rkcur AS GroupCurrency,
  runit AS BaseUnit,
  docct AS DocumentCategory,
  docty AS ConsolidationDocumentType,
  drcrk AS DebitCreditCode,
  rcomp AS Company,
  rbunit AS ConsolidationUnit,
  rbunit_eliminated AS ConsolidationUnitForElim,
  ritclg AS ConsolidationChartOfAccounts,
  ritem AS FinancialStatementItem,
  rbuptr AS PartnerConsolidationUnit,
  robukrs AS CompanyCode,
  sityp AS SubItemCategory,
  subit AS SubItem,
  plevl AS PostingLevel,
  rpflg AS ConsolidationApportionment,
  rtflg AS CurrencyConversionsDiffType,
  yracq AS ConsolidationAcquisitionYear,
  pracq AS ConsolidationAcquisitionPeriod,
  coicu AS InvesteeConsolidationUnit,
  uppcu AS InvestorConsolidationUnit,
  tsl AS AmountInTransactionCurrency,
  hsl AS AmountInLocalCurrency,
  ksl AS AmountInGroupCurrency,
  cast( msl as quan1_12 ) AS QuantityInBaseUnit,
  msl AS CnsldtnQuantityInBaseUnit,
  sgtxt AS DocumentItemText,
  autom AS ConsolidationPostgItemAutoFlag,
  activ AS BusinessTransactionType,
  budat AS PostingDate,
  wsdat AS CurrencyTranslationDate,
  refdocnr AS RefConsolidationDocumentNumber,
  refryear AS ReferenceFiscalYear,
  refdocln AS RefConsolidationPostingItem,
  refdocct AS RefConsolidationDocumentType,
  refactiv AS RefBusinessTransactionType,
  timestamp AS CreationDateTime,
  cpudt AS CreationDate,
  cputm AS CreationTime,
  usnam AS UserID,
  rvsdocnr AS ReverseDocument,
  orndocnr AS ReversedDocument,
  coiac AS InvestmentActivityType,
  coinr AS InvestmentActivity,
  revyear AS ConsolidationDocReversalYear,
  awtyp AS ReferenceDocumentType,
  aworg AS ReferenceDocumentContext,
  logsys AS LogicalSystem,
  ktopl AS ChartOfAccounts,
  racct AS GLAccount,
  zuonr AS AssignmentReference,
  rcntr AS CostCenter,
  prctr AS ProfitCenter,
  prctr_eliminated AS ConsolidationPrftCtrForElim,
  rfarea AS FunctionalArea,
  rbusa AS BusinessArea,
  kokrs AS ControllingArea,
  Segment,
  segment_eliminated AS ConsolidationSegmentForElim,
  scntr AS PartnerCostCenter,
  pprctr AS PartnerProfitCenter,
  sfarea AS PartnerFunctionalArea,
  sbusa AS PartnerBusinessArea,
  rassc AS PartnerCompany,
  psegment AS PartnerSegment,
  aufnr AS OrderID,
  kunnr AS Customer,
  lifnr AS Supplier,
  matnr AS Material,
  matkl_mm AS MaterialGroup,
  werks AS Plant,
  rmvct AS FinancialTransactionType,
  cast ( ps_psp_pnr as ps_s4_pspnr preserving type ) AS WBSElementInternalID,
  ps_posid AS WBSElementExternalID,
  ps_pspid AS Project,
  fkart AS BillingDocumentType,
  vkorg AS SalesOrganization,
  vtweg AS DistributionChannel,
  spart AS OrganizationDivision,
  matnr_copa AS SoldMaterial,
  matnr_copa AS SoldProduct,
  matkl AS SoldProductGroup,
  kdgrp AS CustomerGroup,
  land1 AS CustomerSupplierCountry,
  brsch AS CustomerSupplierIndustry,
  bzirk AS SalesDistrict,
  kunre AS BillToParty,
  kunwe AS ShipToParty,
  konzs AS CustomerSupplierCorporateGroup,
  adhocitem AS CnsldtnAdhocItem,
  adhocset AS CnsldtnAdhocSet,
  adhocsetitem AS CnsldtnAdhocSetItem,
  rcode AS MatchingReasonCode,
  orig_type AS OriginType,
  orig_ref AS OriginReference,
  bunnr AS CnsldtnGroupJrnlEntryBundle
FROM P_Matrix_CnsldtnFoundationYTD
LEFT OUTER JOIN E_CnsldtnGroupJrnlEntryItem AS _Extension ON ConsolidationLedger = _Extension.ConsolidationLedger AND ConsolidationDimension = _Extension.ConsolidationDimension AND FiscalYear = _Extension.FiscalYear AND ConsolidationDocumentNumber = _Extension.CnsldtnGroupJrnlEntry AND ConsolidationPostingItem = _Extension.CnsldtnGroupJrnlEntryItem  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnLedger AS _Ledger ON ConsolidationLedger = _Ledger.ConsolidationLedger  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnDimension AS _Dimension ON _Dimension.ConsolidationDimension = ConsolidationDimension  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnVersion AS _Version ON ConsolidationVersion = _Version.ConsolidationVersion  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnVersion AS _VersionElement ON ConsolidationVersionElement = _VersionElement.ConsolidationVersion  -- association [1..1]
LEFT OUTER JOIN I_Globalcompany AS _Company ON Company = _Company.Company  -- association [1..1]
LEFT OUTER JOIN I_DebitCreditCode AS _DebitCreditCode ON DebitCreditCode = _DebitCreditCode.DebitCreditCode  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnUnit_2 AS _CnsldtnUnit ON _CnsldtnUnit.ConsolidationDimension = 'Y1' AND ConsolidationUnit = _CnsldtnUnit.ConsolidationUnit  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnUnitForElimination AS _CnsldtnUnitForElimination ON _CnsldtnUnitForElimination.ConsolidationDimension = 'Y1' AND ConsolidationUnitForElim = _CnsldtnUnitForElimination.ConsolidationUnit  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnGroupWithEmptyValue AS _CnsldtnGroup ON ConsolidationDimension =_CnsldtnGroup.ConsolidationDimension AND ConsolidationGroup = _CnsldtnGroup.ConsolidationGroup  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnChartOfAccounts AS _ChartOfAccounts ON ConsolidationChartOfAccounts = _ChartOfAccounts.ConsolidationChartOfAccounts  -- association [1..1]
LEFT OUTER JOIN I_GroupReportingFSItem AS _FinStmntItm ON ConsolidationChartOfAccounts = _FinStmntItm.ConsolidationChartOfAccounts AND FinancialStatementItem = _FinStmntItm.FinancialStatementItem  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnFSItem_2 AS _CnsldtnFSItem_2 ON ConsolidationChartOfAccounts = _CnsldtnFSItem_2.ConsolidationChartOfAccounts AND FinancialStatementItem = _CnsldtnFSItem_2.CnsldtnFinancialStatementItem  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnUnit_2 AS _PartnerUnit ON _PartnerUnit.ConsolidationDimension = 'Y1' AND PartnerConsolidationUnit = _PartnerUnit.ConsolidationUnit  -- association [0..1]
LEFT OUTER JOIN I_CompanyCode AS _CompanyCode ON CompanyCode = _CompanyCode.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnGLAccount AS _GLAccountInChartOfAccounts ON ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts AND GLAccount = _GLAccountInChartOfAccounts.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_GLAccountInCompanyCode AS _GLAccountInCompanyCode ON CompanyCode = _GLAccountInCompanyCode.CompanyCode AND GLAccount = _GLAccountInCompanyCode.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnGLChartOfAccounts AS _GLChartOfAccounts ON ChartOfAccounts = _GLChartOfAccounts.ChartOfAccounts  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnSubItemCategory AS _SubItemCategory ON SubItemCategory = _SubItemCategory.SubItemCategory  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnSubItem AS _SubItem ON SubItemCategory = _SubItem.SubItemCategory AND SubItem = _SubItem.SubItem  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnDocumentType AS _DocumentType ON _DocumentType.ConsolidationDimension = 'Y1' AND ConsolidationDocumentType = _DocumentType.ConsolidationDocumentType  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnPostingLevel AS _PostingLevel ON PostingLevel = _PostingLevel.PostingLevel  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnUnit_2 AS _InvesteeUnit ON _InvesteeUnit.ConsolidationDimension = 'Y1' AND InvesteeConsolidationUnit = _InvesteeUnit.ConsolidationUnit  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnUnit_2 AS _InvestorUnit ON _InvestorUnit.ConsolidationDimension = 'Y1' AND InvestorConsolidationUnit = _InvestorUnit.ConsolidationUnit  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnApportionment AS _Apportionment ON ConsolidationApportionment = _Apportionment.ConsolidationApportionment  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnCrcyCnvrsnDiffType AS _CrcyCnvrsnDiffType ON CurrencyConversionsDiffType = _CrcyCnvrsnDiffType.CurrencyConversionsDiffType  -- association [1..1]
LEFT OUTER JOIN I_Currency AS _TransactionCurrency ON TransactionCurrency = _TransactionCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _LocalCurrency ON LocalCurrency = _LocalCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_Currency AS _GroupCurrency ON GroupCurrency = _GroupCurrency.Currency  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _BaseUnit ON BaseUnit = _BaseUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnInternalOrder AS _InternalOrder ON OrderID = _InternalOrder.InternalOrder  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnCustomer AS _Customer ON Customer = _Customer.Customer  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnSupplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnMaterial AS _Material ON Material = _Material.Material  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnMaterialGroup AS _MaterialGroup ON MaterialGroup = _MaterialGroup.MaterialGroup  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnPlant AS _Plant ON Plant = _Plant.Plant  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnFinTransType AS _FinancialTransactionType ON FinancialTransactionType = _FinancialTransactionType.FinancialTransactionType  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnWBSElement AS _WBSElement ON Project = _WBSElement.Project AND WBSElementExternalID = _WBSElement.WBSElement  -- association [0..1]
LEFT OUTER JOIN I_WBSElementBasicData AS _WBSElementInternalID ON WBSElementInternalID = _WBSElementInternalID.WBSElementInternalID  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnProject AS _Project ON Project = _Project.Project  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnCostCenter AS _CostCenter ON ControllingArea = _CostCenter.ControllingArea AND CostCenter = _CostCenter.CostCenter  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnProfitCenter AS _ProfitCenter ON ControllingArea = _ProfitCenter.ControllingArea AND ProfitCenter = _ProfitCenter.ProfitCenter  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnProfitCenterForElim AS _ProfitCenterForElim ON ControllingArea = _ProfitCenterForElim.ControllingArea AND ConsolidationPrftCtrForElim = _ProfitCenterForElim.ProfitCenter  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnFunctionalArea AS _FunctionalArea ON FunctionalArea = _FunctionalArea.FunctionalArea  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnBusinessArea AS _BusinessArea ON BusinessArea = _BusinessArea.BusinessArea  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnSegment AS _Segment ON Segment = _Segment.Segment  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnSegmentForElim AS _SegmentForElim ON ConsolidationSegmentForElim = _SegmentForElim.Segment  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnCostCenter AS _PartnerCostCenter ON ControllingArea = _PartnerCostCenter.ControllingArea AND PartnerCostCenter = _PartnerCostCenter.CostCenter  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnProfitCenter AS _PartnerProfitCenter ON ControllingArea = _PartnerProfitCenter.ControllingArea AND PartnerProfitCenter = _PartnerProfitCenter.ProfitCenter  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnFunctionalArea AS _PartnerFunctionalArea ON PartnerFunctionalArea = _PartnerFunctionalArea.FunctionalArea  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnBusinessArea AS _PartnerBusinessArea ON PartnerBusinessArea = _PartnerBusinessArea.BusinessArea  -- association [0..1]
LEFT OUTER JOIN I_Globalcompany AS _PartnerCompany ON PartnerCompany = _PartnerCompany.Company  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnSegment AS _PartnerSegment ON PartnerSegment = _PartnerSegment.Segment  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnBillingType AS _BillingDocumentType ON BillingDocumentType = _BillingDocumentType.BillingDocumentType  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnSalesOrganization AS _SalesOrganization ON SalesOrganization = _SalesOrganization.SalesOrganization  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnDistributionChannel AS _DistributionChannel ON DistributionChannel = _DistributionChannel.DistributionChannel  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnDivision AS _Division ON OrganizationDivision = _Division.Division  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnMaterial AS _SoldMaterial ON SoldMaterial = _SoldMaterial.Material  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnProduct AS _SoldProduct ON SoldProduct = _SoldProduct.Product  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnMaterialGroup AS _SoldProductGroup ON SoldProductGroup = _SoldProductGroup.MaterialGroup  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnCustomerGroup AS _CustomerGroup ON CustomerGroup = _CustomerGroup.CustomerGroup  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnCountry AS _Country ON CustomerSupplierCountry = _Country.Country  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnIndustry AS _Industry ON CustomerSupplierIndustry = _Industry.Industry  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnSalesDistrict AS _SalesDistrict ON SalesDistrict = _SalesDistrict.SalesDistrict  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnCustomer AS _BillToParty ON BillToParty = _BillToParty.Customer  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnCustomer AS _ShipToParty ON ShipToParty = _ShipToParty.Customer  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnAdhocItem AS _AdhocItem ON ConsolidationChartOfAccounts = _AdhocItem.ConsolidationChartOfAccounts AND CnsldtnAdhocItem = _AdhocItem.CnsldtnAdhocItem  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnAdhocSet AS _AdhocSet ON ConsolidationChartOfAccounts = _AdhocSet.ConsolidationChartOfAccounts AND CnsldtnAdhocSet = _AdhocSet.CnsldtnAdhocSet  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnAdhocSetItem AS _AdhocSetItem ON ConsolidationChartOfAccounts = _AdhocSetItem.ConsolidationChartOfAccounts AND CnsldtnAdhocSet = _AdhocSetItem.CnsldtnAdhocSet AND CnsldtnAdhocSetItem = _AdhocSetItem.CnsldtnAdhocSetItem  -- association [0..1]
LEFT OUTER JOIN I_FsclYearQtrByFsclPeriod AS _FsclYearQtrByFsclPeriod ON FiscalYear = _FsclYearQtrByFsclPeriod.FiscalYear AND FiscalPeriod = _FsclYearQtrByFsclPeriod.FiscalPeriod AND FiscalYearVariant = _FsclYearQtrByFsclPeriod.FiscalYearVariant  -- association [0..1]
;