C_GR_GLAccountSuplrDetCube

DDL: C_GR_GLACCOUNTSUPLRDETCUBE Type: view_entity CONSUMPTION

Greece GLAccount Supplier Detail - Cube

C_GR_GLAccountSuplrDetCube is a Consumption CDS View (Cube) that provides data about "Greece GLAccount Supplier Detail - Cube" in SAP S/4HANA. It reads from 1 data source (P_GR_GLAccountPartnerDetail) and exposes 39 fields with key fields Ledger, SourceLedger, FiscalYear, CompanyCode, AccountingDocument. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_GR_GLAccountPartnerDetail P_GR_GLAccountPartnerDetail from

Parameters (10)

NameTypeDefault
P_FromPostingDate fis_budat_from
P_ToPostingDate fis_budat_to
P_FromFiscalPeriod fis_period_from
P_ToFiscalPeriod fis_period_to
P_BalanceCumulativeLevel fis_cuml_level
P_ZeroBalanceGLAccIsDisplayed figr_de_isgl_zeroaccntdisplay
P_IsHeadOffice figr_de_isgl_display_branch
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id

Associations (6)

CardinalityTargetAliasCondition
[0..1] I_JournalEntryItem _JournalEntryItem $projection.SourceLedger = _JournalEntryItem.SourceLedger and $projection.Ledger = _JournalEntryItem.Ledger and $projection.FiscalYear = _JournalEntryItem.FiscalYear and $projection.CompanyCode = _JournalEntryItem.CompanyCode and $projection.AccountingDocument = _JournalEntryItem.AccountingDocument and $projection.LedgerGLLineItem = _JournalEntryItem.LedgerGLLineItem
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts $projection.ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts and $projection.GLAccount = _GLAccountInChartOfAccounts.GLAccount
[0..1] I_GLAccountInChartOfAccounts _AlternativeGLAccount $projection.CountryChartOfAccounts = _AlternativeGLAccount.ChartOfAccounts and $projection.AlternativeGLAccount = _AlternativeGLAccount.GLAccount
[0..1] I_ChartOfAccounts _ChartOfAccounts $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts
[0..1] I_ChartOfAccounts _CountryChartOfAccounts $projection.CountryChartOfAccounts = _CountryChartOfAccounts.ChartOfAccounts

Annotations (10)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
Metadata.allowExtensions true view
VDM.viewType #CONSUMPTION view
Analytics.dataCategory #CUBE view
Analytics.internalName #LOCAL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label Greece GLAccount Supplier Detail - Cube view
Environment.sql.passValueForClient true view

Fields (39)

KeyFieldSource TableSource FieldDescription
KEY Ledger Item Ledger Ledger
KEY SourceLedger Item SourceLedger Source Ledger
KEY FiscalYear Item FiscalYear G/L Fiscal Year
KEY CompanyCode Item CompanyCode Receiver Company Code
KEY AccountingDocument Item AccountingDocument Journal Entry
KEY LedgerGLLineItem Item LedgerGLLineItem Journal Entry Item
KEY Supplier Item Supplier Supplier
GLAccount Item GLAccount General Ledger
ChartOfAccounts Item ChartOfAccounts Node Class
CountryChartOfAccounts Item CountryChartOfAccounts Chart of Accts
AlternativeGLAccount Item AlternativeGLAccount Group Account
PostingDate Item PostingDate Posting Date for GR
PostingKey Item PostingKey Posting Key
SpecialGLCode Item SpecialGLCode Special G/L Ind
BranchAccount Item BranchAccount Branch Account No.
ReferenceDocument _JournalEntryItem ReferenceDocument Reference Document
DocumentItemText _JournalEntryItem DocumentItemText Text
CompanyCodeCurrency Item CompanyCodeCurrency Local Currency
DebitAmountInCoCodeCrcy Item DebitAmountInCoCodeCrcy Debit Amount in Company Code Currency
CreditAmountInCoCodeCrcy Item CreditAmountInCoCodeCrcy Credit Amount in Company Code Currency
AmountInCompanyCodeCurrency Item AmountInCompanyCodeCurrency Local Crcy Amt
CumulativeBalAmtInCoCodeCrcy Item CumulativeBalAmtInCoCodeCrcy
CarryFwdBalAmtInCCCrcy Item CarryFwdBalAmtInCCCrcy
DebitCarryFwdBalAmtInCCCrcy Item DebitCarryFwdBalAmtInCCCrcy
CreditCarryFwdBalAmtInCCCrcy Item CreditCarryFwdBalAmtInCCCrcy
PrevPeriodYTDAmtInCCCrcy Item PrevPeriodYTDAmtInCCCrcy
DebitPrevPeriodYTDAmtInCCCrcy Item DebitPrevPeriodYTDAmtInCCCrcy
CreditPrevPeriodYTDAmtInCCCrcy Item CreditPrevPeriodYTDAmtInCCCrcy
EndingBalanceAmtInCoCodeCrcy Item EndingBalanceAmtInCoCodeCrcy
SupplierName _Supplier BPSupplierName Supplier Name
SupplierHeadOffice
SupplierAddressID _Supplier AddressID Ship-to address
SupplierCountry _Supplier Country Venue: Ctry/Reg
SupplierVATRegistration _Supplier VATRegistration VAT Registration No.
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_ChartOfAccounts _ChartOfAccounts
_AlternativeGLAccount _AlternativeGLAccount
_CountryChartOfAccounts _CountryChartOfAccounts
_Supplier _Supplier

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_GR_GLAccountSuplrDetCube.
-- 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.
-- Parameters: P_FromPostingDate : fis_budat_from, P_ToPostingDate : fis_budat_to, P_FromFiscalPeriod : fis_period_from, P_ToFiscalPeriod : fis_period_to, P_BalanceCumulativeLevel : fis_cuml_level, P_ZeroBalanceGLAccIsDisplayed : figr_de_isgl_zeroaccntdisplay, P_IsHeadOffice : figr_de_isgl_display_branch, P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id

CREATE VIEW C_GR_GLAccountSuplrDetCube AS
SELECT
  Item.Ledger AS Ledger,
  Item.SourceLedger AS SourceLedger,
  Item.FiscalYear AS FiscalYear,
  Item.CompanyCode AS CompanyCode,
  Item.AccountingDocument AS AccountingDocument,
  Item.LedgerGLLineItem AS LedgerGLLineItem,
  Item.Supplier AS Supplier,
  Item.GLAccount AS GLAccount,
  Item.ChartOfAccounts AS ChartOfAccounts,
  Item.CountryChartOfAccounts AS CountryChartOfAccounts,
  Item.AlternativeGLAccount AS AlternativeGLAccount,
  Item.PostingDate AS PostingDate,
  Item.PostingKey AS PostingKey,
  Item.SpecialGLCode AS SpecialGLCode,
  Item.BranchAccount AS BranchAccount,
  _JournalEntryItem.ReferenceDocument AS ReferenceDocument,
  _JournalEntryItem.DocumentItemText AS DocumentItemText,
  Item.CompanyCodeCurrency AS CompanyCodeCurrency,
  Item.DebitAmountInCoCodeCrcy AS DebitAmountInCoCodeCrcy,
  Item.CreditAmountInCoCodeCrcy AS CreditAmountInCoCodeCrcy,
  Item.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  Item.CumulativeBalAmtInCoCodeCrcy AS CumulativeBalAmtInCoCodeCrcy,
  Item.CarryFwdBalAmtInCCCrcy AS CarryFwdBalAmtInCCCrcy,
  Item.DebitCarryFwdBalAmtInCCCrcy AS DebitCarryFwdBalAmtInCCCrcy,
  Item.CreditCarryFwdBalAmtInCCCrcy AS CreditCarryFwdBalAmtInCCCrcy,
  Item.PrevPeriodYTDAmtInCCCrcy AS PrevPeriodYTDAmtInCCCrcy,
  Item.DebitPrevPeriodYTDAmtInCCCrcy AS DebitPrevPeriodYTDAmtInCCCrcy,
  Item.CreditPrevPeriodYTDAmtInCCCrcy AS CreditPrevPeriodYTDAmtInCCCrcy,
  Item.EndingBalanceAmtInCoCodeCrcy AS EndingBalanceAmtInCoCodeCrcy,
  _Supplier.BPSupplierName AS SupplierName,
  _Supplier._SupplierCompany[1: CompanyCode = companycode ].SupplierHeadOffice AS SupplierHeadOffice,
  _Supplier.AddressID AS SupplierAddressID,
  _Supplier.Country AS SupplierCountry,
  _Supplier.VATRegistration AS SupplierVATRegistration
FROM P_GR_GLAccountPartnerDetail
LEFT OUTER JOIN I_JournalEntryItem AS _JournalEntryItem ON SourceLedger = _JournalEntryItem.SourceLedger AND Ledger = _JournalEntryItem.Ledger AND FiscalYear = _JournalEntryItem.FiscalYear AND CompanyCode = _JournalEntryItem.CompanyCode AND AccountingDocument = _JournalEntryItem.AccountingDocument AND LedgerGLLineItem = _JournalEntryItem.LedgerGLLineItem  -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier  -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts ON ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts AND GLAccount = _GLAccountInChartOfAccounts.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _AlternativeGLAccount ON CountryChartOfAccounts = _AlternativeGLAccount.ChartOfAccounts AND AlternativeGLAccount = _AlternativeGLAccount.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts  -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _CountryChartOfAccounts ON CountryChartOfAccounts = _CountryChartOfAccounts.ChartOfAccounts  -- association [0..1]
;