C_StRpJournalEntryItemCube

DDL: C_STRPJOURNALENTRYITEMCUBE SQL: CSRGLACJRNLENITC Type: view CONSUMPTION

Jrnl Entry Item Cube for Stat.Reporting

C_StRpJournalEntryItemCube is a Consumption CDS View (Cube) that provides data about "Jrnl Entry Item Cube for Stat.Reporting" in SAP S/4HANA. It reads from 1 data source (I_JournalEntryItem) and exposes 60 fields with key fields Ledger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
I_JournalEntryItem I_JournalEntryItem from

Associations (1)

CardinalityTargetAliasCondition
[0..*] I_StRpJournalEntryLog _ReportedItemsLog _ReportedItemsLog.CompanyCode = $projection.CompanyCode and _ReportedItemsLog.AccountingDocument = $projection.AccountingDocument and _ReportedItemsLog.FiscalYear = $projection.FiscalYear

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName CSRGLACJRNLENITC view
AbapCatalog.preserveKey true view
VDM.viewType #CONSUMPTION view
Analytics.dataCategory #CUBE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.sizeCategory #XXL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
EndUserText.label Jrnl Entry Item Cube for Stat.Reporting view
Metadata.allowExtensions true view

Fields (60)

KeyFieldSource TableSource FieldDescription
KEY Ledger Ledger Ledger
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY AccountingDocument AccountingDocument Journal Entry
KEY LedgerGLLineItem LedgerGLLineItem Journal Entry Item
KEY SourceLedger SourceLedger Source Ledger
KEY StatryRptCategory _ReportedItemsLog StatryRptCategory Report ID
KEY StatryRptgEntity _ReportedItemsLog StatryRptgEntity Reporting Entity
KEY StatryRptRunID _ReportedItemsLog StatryRptRunID Report Run ID
AccountingDocumentItem AccountingDocumentItem Posting View Item
PostingDate PostingDate Posting Date for GR
DocumentDate DocumentDate Journal Entry Date
ChartOfAccounts ChartOfAccounts Node Class
GLAccount GLAccount General Ledger
GLAccountLongName
Supplier Supplier Supplier
Customer Customer Sold-to Party
AccountingDocumentType AccountingDocumentType Journal Entry Type
PostingKey PostingKey Posting Key
FinancialAccountType FinancialAccountType Fin. Account Type
SpecialGLCode SpecialGLCode Special G/L Ind
AccountingDocumentCategory AccountingDocumentCategory Journal Entry Category
DebitCreditCode DebitCreditCode Single-Character Flag
AssignmentReference AssignmentReference Assignment Reference
DocumentItemText DocumentItemText Text
DocumentReferenceID _JournalEntry DocumentReferenceID Reference
TransactionDate
AccountingDocCreatedByUser AccountingDocCreatedByUser User which created overhead document
TransactionCurrency TransactionCurrency Transaction Currency
DebitAmountInTransCrcy DebitAmountInTransCrcy Debit Amt in DC
CreditAmountInTransCrcy
CompanyCodeCurrency CompanyCodeCurrency Local Currency
DebitAmountInCoCodeCrcy DebitAmountInCoCodeCrcy Debit Amount in Company Code Currency
CreditAmountInCoCodeCrcy
ClearingDate ClearingDate Clearing Date
ClearingAccountingDocument ClearingAccountingDocument Clearing Journal Entry
ClearingDocFiscalYear ClearingDocFiscalYear Fiscal Year of Clearing Journal Entry
ClearingJournalEntry ClearingJournalEntry Clrng doc.
ClearingJournalEntryFiscalYear ClearingJournalEntryFiscalYear Fiscal Year of Clearing Journal Entry
_Ledger _Ledger
_CompanyCode _CompanyCode
_FiscalYear _FiscalYear
_SourceLedger _SourceLedger
_ChartOfAccounts _ChartOfAccounts
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_GLAccountInCompanyCode _GLAccountInCompanyCode
_Supplier _Supplier
_Customer _Customer
_AccountingDocumentType _AccountingDocumentType
_PostingKey _PostingKey
_FinancialAccountType _FinancialAccountType
_SpecialGLCode _SpecialGLCode
_AccountingDocumentCategory _AccountingDocumentCategory
_DebitCreditCode _DebitCreditCode
_TransactionCurrency _TransactionCurrency
_CompanyCodeCurrency _CompanyCodeCurrency
_ClearingJrnlEntryFiscalYear _ClearingJrnlEntryFiscalYear
_ClearingJournalEntry _ClearingJournalEntry
_ClearingAccountingDocument _ClearingAccountingDocument
_ReportedItemsLog _ReportedItemsLog

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_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: CSRGLACJRNLENITC

CREATE VIEW C_StRpJournalEntryItemCube AS
SELECT
  Ledger,
  CompanyCode,
  FiscalYear,
  AccountingDocument,
  LedgerGLLineItem,
  SourceLedger,
  _ReportedItemsLog.StatryRptCategory AS StatryRptCategory,
  _ReportedItemsLog.StatryRptgEntity AS StatryRptgEntity,
  _ReportedItemsLog.StatryRptRunID AS StatryRptRunID,
  AccountingDocumentItem,
  PostingDate,
  DocumentDate,
  ChartOfAccounts,
  GLAccount,
  _GLAccountInChartOfAccounts._Text[1: Language = $session.system_language].GLAccountLongName AS GLAccountLongName,
  Supplier,
  Customer,
  AccountingDocumentType,
  PostingKey,
  FinancialAccountType,
  SpecialGLCode,
  AccountingDocumentCategory,
  DebitCreditCode,
  AssignmentReference,
  DocumentItemText,
  _JournalEntry.DocumentReferenceID AS DocumentReferenceID,
  cast( coalesce( _JournalEntry.JrnlEntryCntrySpecificDate1, '' ) as datum ) AS TransactionDate,
  AccountingDocCreatedByUser,
  TransactionCurrency,
  DebitAmountInTransCrcy,
  -CreditAmountInTransCrcy AS CreditAmountInTransCrcy,
  CompanyCodeCurrency,
  DebitAmountInCoCodeCrcy,
  -CreditAmountInCoCodeCrcy AS CreditAmountInCoCodeCrcy,
  ClearingDate,
  ClearingAccountingDocument,
  ClearingDocFiscalYear,
  ClearingJournalEntry,
  ClearingJournalEntryFiscalYear
FROM I_JournalEntryItem
LEFT OUTER JOIN I_StRpJournalEntryLog AS _ReportedItemsLog ON _ReportedItemsLog.CompanyCode = CompanyCode AND _ReportedItemsLog.AccountingDocument = AccountingDocument AND _ReportedItemsLog.FiscalYear = FiscalYear  -- association [0..*]
;