C_CL_StRpJournalEntryItemCube

DDL: C_CL_STRPJOURNALENTRYITEMCUBE SQL: CCLSTRPJEITM Type: view CONSUMPTION

Jrnl Entr Items for Chile Reporting Cube

C_CL_StRpJournalEntryItemCube is a Consumption CDS View (Cube) that provides data about "Jrnl Entr Items for Chile Reporting Cube" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountLineItemRawData, I_StRpJournalEntryHeaderLog) and exposes 76 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. It has 1 association to related views.

Data Sources (2)

SourceAliasJoin Type
I_GLAccountLineItemRawData JournalEntryItem from
I_StRpJournalEntryHeaderLog JournalEntryLog inner

Parameters (1)

NameTypeDefault
P_ReportingCurrency glo_reporting_currency

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_Currency _ReportingCurrency _ReportingCurrency.Currency = $projection.ReportingCurrency

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName CCLSTRPJEITM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #CONSUMPTION view
Analytics.dataCategory #CUBE view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
EndUserText.label Jrnl Entr Items for Chile Reporting Cube view
Metadata.allowExtensions true view

Fields (76)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger I_GLAccountLineItemRawData SourceLedger Source Ledger
KEY CompanyCode I_GLAccountLineItemRawData CompanyCode Receiver Company Code
KEY FiscalYear I_GLAccountLineItemRawData FiscalYear G/L Fiscal Year
KEY AccountingDocument I_GLAccountLineItemRawData AccountingDocument Journal Entry
KEY LedgerGLLineItem I_GLAccountLineItemRawData LedgerGLLineItem Journal Entry Item
KEY Ledger I_GLAccountLineItemRawData SourceLedger Source Ledger
KEY StatryRptgEntity I_StRpJournalEntryHeaderLog StatryRptgEntity Reporting Entity
KEY StatryRptCategory I_StRpJournalEntryHeaderLog StatryRptCategory Report ID
KEY StatryRptRunID I_StRpJournalEntryHeaderLog StatryRptRunID Report Run ID
AccountingDocumentHeaderText
DocumentReferenceID
AccountingDocumentType I_GLAccountLineItemRawData AccountingDocumentType Journal Entry Type
AccountingDocumentTypeName
CL_ReportingDocumentType I_CL_DocTypeVchrTypeAssgmt CL_ReportingDocumentType
AccountingDocumentCategory I_GLAccountLineItemRawData AccountingDocumentCategory Journal Entry Category
FinancialAccountType I_GLAccountLineItemRawData FinancialAccountType Fin. Account Type
GLRecordType I_GLAccountLineItemRawData GLRecordType Record Type
GLAccountType I_GLAccountLineItemRawData GLAccountType G/L Account Type
GLAccount I_GLAccountLineItemRawData GLAccount General Ledger
GLAccountLongName
AlternativeGLAccount I_GLAccountLineItemRawData AlternativeGLAccount Group Account
ChartOfAccounts I_GLAccountLineItemRawData ChartOfAccounts Node Class
CountryChartOfAccounts I_GLAccountLineItemRawData CountryChartOfAccounts Chart of Accts
FiscalPeriod I_GLAccountLineItemRawData FiscalPeriod Tax period
FiscalYearVariant I_GLAccountLineItemRawData FiscalYearVariant FY Variant
FiscalYearPeriod I_GLAccountLineItemRawData FiscalYearPeriod Period/Year
DocumentDate I_GLAccountLineItemRawData DocumentDate Journal Entry Date
PostingDate I_GLAccountLineItemRawData PostingDate Posting Date for GR
NetDueDate I_GLAccountLineItemRawData NetDueDate Net Due Date
AccountingDocumentItem I_GLAccountLineItemRawData AccountingDocumentItem Posting View Item
FinancialTransactionType I_GLAccountLineItemRawData FinancialTransactionType Transact. Type
IsReversal I_GLAccountLineItemRawData IsReversal Reversal doc.
IsReversed I_GLAccountLineItemRawData IsReversed Reversed?
ReversalReferenceDocumentCntxt I_GLAccountLineItemRawData ReversalReferenceDocumentCntxt Reversal Reference Document Context
ReversalReferenceDocument I_GLAccountLineItemRawData ReversalReferenceDocument Reversal Reference Document
ControllingArea I_GLAccountLineItemRawData ControllingArea Controlling Area
CostCenter I_GLAccountLineItemRawData CostCenter Cost Center
ProfitCenter I_GLAccountLineItemRawData ProfitCenter Profit Center
FunctionalArea I_GLAccountLineItemRawData FunctionalArea Sendr Fctl Area
BusinessArea I_GLAccountLineItemRawData BusinessArea Business Area
Segment I_GLAccountLineItemRawData Segment Segment number
DocumentItemText
SpecialGLCode I_GLAccountLineItemRawData SpecialGLCode Special G/L Ind
TaxCode I_GLAccountLineItemRawData TaxCode Tax Code
ClearingDate I_GLAccountLineItemRawData ClearingDate Clearing Date
ClearingAccountingDocument
ClearingDocFiscalYear
Supplier I_GLAccountLineItemRawData Supplier Supplier
Customer I_GLAccountLineItemRawData Customer Sold-to Party
DebitCreditCode I_GLAccountLineItemRawData DebitCreditCode Single-Character Flag
CompanyCodeCurrency I_GLAccountLineItemRawData CompanyCodeCurrency Local Currency
ReportingCurrency
_ReportingCurrency _ReportingCurrency
_CompanyCode I_GLAccountLineItemRawData _CompanyCode
_FiscalYear I_GLAccountLineItemRawData _FiscalYear
_JournalEntry I_GLAccountLineItemRawData _JournalEntry
_GLAccountInChartOfAccounts I_GLAccountLineItemRawData _GLAccountInChartOfAccounts
_AlternativeGLAccount I_GLAccountLineItemRawData _AlternativeGLAccount
_GLAccountType I_GLAccountLineItemRawData _GLAccountType
_SpecialGLCode I_GLAccountLineItemRawData _SpecialGLCode
_CountryChartOfAccounts I_GLAccountLineItemRawData _CountryChartOfAccounts
_CompanyCodeCurrency I_GLAccountLineItemRawData _CompanyCodeCurrency
_Customer I_GLAccountLineItemRawData _Customer
_Supplier I_GLAccountLineItemRawData _Supplier
_Segment I_GLAccountLineItemRawData _Segment
_ControllingArea I_GLAccountLineItemRawData _ControllingArea
_BusinessArea I_GLAccountLineItemRawData _BusinessArea
_FunctionalArea I_GLAccountLineItemRawData _FunctionalArea
_ChartOfAccounts I_GLAccountLineItemRawData _ChartOfAccounts
_ProfitCenter I_GLAccountLineItemRawData _ProfitCenter
_CostCenter I_GLAccountLineItemRawData _CostCenter
_AccountingDocumentType I_GLAccountLineItemRawData _AccountingDocumentType
_FinancialAccountType I_GLAccountLineItemRawData _FinancialAccountType
_DebitCreditCode I_GLAccountLineItemRawData _DebitCreditCode
_AccountingDocumentCategory I_GLAccountLineItemRawData _AccountingDocumentCategory
_FinancialTransactionType I_GLAccountLineItemRawData _FinancialTransactionType

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_CL_StRpJournalEntryItemCube.
-- 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: CCLSTRPJEITM
-- Parameters: P_ReportingCurrency : glo_reporting_currency

CREATE VIEW C_CL_StRpJournalEntryItemCube AS
SELECT
  JournalEntryItem.SourceLedger AS SourceLedger,
  JournalEntryItem.CompanyCode AS CompanyCode,
  JournalEntryItem.FiscalYear AS FiscalYear,
  JournalEntryItem.AccountingDocument AS AccountingDocument,
  JournalEntryItem.LedgerGLLineItem AS LedgerGLLineItem,
  JournalEntryItem.SourceLedger AS Ledger,
  JournalEntryLog.StatryRptgEntity AS StatryRptgEntity,
  JournalEntryLog.StatryRptCategory AS StatryRptCategory,
  JournalEntryLog.StatryRptRunID AS StatryRptRunID,
  JournalEntryItem._JournalEntry.AccountingDocumentHeaderText AS AccountingDocumentHeaderText,
  JournalEntryItem._JournalEntry.DocumentReferenceID AS DocumentReferenceID,
  JournalEntryItem.AccountingDocumentType AS AccountingDocumentType,
  cast( substring(JournalEntryItem._JournalEntry._AccountingDocumentTypeText[1:Language = $session.system_language].AccountingDocumentTypeName, 1, 15) as farp_ltext_003t ) AS AccountingDocumentTypeName,
  I_CL_DocTypeVchrTypeAssgmt.CL_ReportingDocumentType AS CL_ReportingDocumentType,
  JournalEntryItem.AccountingDocumentCategory AS AccountingDocumentCategory,
  JournalEntryItem.FinancialAccountType AS FinancialAccountType,
  JournalEntryItem.GLRecordType AS GLRecordType,
  JournalEntryItem.GLAccountType AS GLAccountType,
  JournalEntryItem.GLAccount AS GLAccount,
  JournalEntryItem._GLAccountInChartOfAccounts._Text[1:Language = $session.system_language].GLAccountLongName AS GLAccountLongName,
  JournalEntryItem.AlternativeGLAccount AS AlternativeGLAccount,
  JournalEntryItem.ChartOfAccounts AS ChartOfAccounts,
  JournalEntryItem.CountryChartOfAccounts AS CountryChartOfAccounts,
  JournalEntryItem.FiscalPeriod AS FiscalPeriod,
  JournalEntryItem.FiscalYearVariant AS FiscalYearVariant,
  JournalEntryItem.FiscalYearPeriod AS FiscalYearPeriod,
  JournalEntryItem.DocumentDate AS DocumentDate,
  JournalEntryItem.PostingDate AS PostingDate,
  JournalEntryItem.NetDueDate AS NetDueDate,
  JournalEntryItem.AccountingDocumentItem AS AccountingDocumentItem,
  JournalEntryItem.FinancialTransactionType AS FinancialTransactionType,
  JournalEntryItem.IsReversal AS IsReversal,
  JournalEntryItem.IsReversed AS IsReversed,
  JournalEntryItem.ReversalReferenceDocumentCntxt AS ReversalReferenceDocumentCntxt,
  JournalEntryItem.ReversalReferenceDocument AS ReversalReferenceDocument,
  JournalEntryItem.ControllingArea AS ControllingArea,
  JournalEntryItem.CostCenter AS CostCenter,
  JournalEntryItem.ProfitCenter AS ProfitCenter,
  JournalEntryItem.FunctionalArea AS FunctionalArea,
  JournalEntryItem.BusinessArea AS BusinessArea,
  JournalEntryItem.Segment AS Segment,
  cast( substring ( JournalEntryItem.DocumentItemText, 1, 30) as farp_sgtxt ) AS DocumentItemText,
  JournalEntryItem.SpecialGLCode AS SpecialGLCode,
  JournalEntryItem.TaxCode AS TaxCode,
  JournalEntryItem.ClearingDate AS ClearingDate,
  cast( '' as fis_augbl ) AS ClearingAccountingDocument,
  cast( '0000' as fis_auggj ) AS ClearingDocFiscalYear,
  JournalEntryItem.Supplier AS Supplier,
  JournalEntryItem.Customer AS Customer,
  JournalEntryItem.DebitCreditCode AS DebitCreditCode,
  JournalEntryItem.CompanyCodeCurrency AS CompanyCodeCurrency,
  cast( $parameters.P_ReportingCurrency as glo_reporting_currency preserving type ) AS ReportingCurrency,
  JournalEntryItem._CompanyCode AS _CompanyCode,
  JournalEntryItem._FiscalYear AS _FiscalYear,
  JournalEntryItem._JournalEntry AS _JournalEntry,
  JournalEntryItem._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts,
  JournalEntryItem._AlternativeGLAccount AS _AlternativeGLAccount,
  JournalEntryItem._GLAccountType AS _GLAccountType,
  JournalEntryItem._SpecialGLCode AS _SpecialGLCode,
  JournalEntryItem._CountryChartOfAccounts AS _CountryChartOfAccounts,
  JournalEntryItem._CompanyCodeCurrency AS _CompanyCodeCurrency,
  JournalEntryItem._Customer AS _Customer,
  JournalEntryItem._Supplier AS _Supplier,
  JournalEntryItem._Segment AS _Segment,
  JournalEntryItem._ControllingArea AS _ControllingArea,
  JournalEntryItem._BusinessArea AS _BusinessArea,
  JournalEntryItem._FunctionalArea AS _FunctionalArea,
  JournalEntryItem._ChartOfAccounts AS _ChartOfAccounts,
  JournalEntryItem._ProfitCenter AS _ProfitCenter,
  JournalEntryItem._CostCenter AS _CostCenter,
  JournalEntryItem._AccountingDocumentType AS _AccountingDocumentType,
  JournalEntryItem._FinancialAccountType AS _FinancialAccountType,
  JournalEntryItem._DebitCreditCode AS _DebitCreditCode,
  JournalEntryItem._AccountingDocumentCategory AS _AccountingDocumentCategory,
  JournalEntryItem._FinancialTransactionType AS _FinancialTransactionType
FROM I_GLAccountLineItemRawData AS JournalEntryItem
INNER JOIN I_StRpJournalEntryHeaderLog AS JournalEntryLog ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Currency AS _ReportingCurrency ON _ReportingCurrency.Currency = ReportingCurrency  -- association [0..1]
;