C_StRpOplAcctgDocumentItemCube
Opl Acc.Doc.Item Cube for Stat.Reporting
C_StRpOplAcctgDocumentItemCube is a Consumption CDS View (Cube) that provides data about "Opl Acc.Doc.Item Cube for Stat.Reporting" in SAP S/4HANA. It reads from 1 data source (I_OperationalAcctgDocItem) and exposes 58 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocumentItem, StatryRptgEntity. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_OperationalAcctgDocItem | I_OperationalAcctgDocItem | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_StRpJournalEntryLog | _ReportedItemsLog | _ReportedItemsLog.CompanyCode = $projection.CompanyCode and _ReportedItemsLog.AccountingDocument = $projection.AccountingDocument and _ReportedItemsLog.FiscalYear = $projection.FiscalYear |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CSROPACCTDOCITCU | 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 | Opl Acc.Doc.Item Cube for Stat.Reporting | view | |
| Metadata.allowExtensions | true | view |
Fields (58)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | CompanyCode | Receiver Company Code | |
| KEY | AccountingDocument | AccountingDocument | Journal Entry | |
| KEY | FiscalYear | FiscalYear | G/L Fiscal Year | |
| KEY | AccountingDocumentItem | AccountingDocumentItem | Posting View Item | |
| KEY | StatryRptgEntity | _ReportedItemsLog | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptCategory | _ReportedItemsLog | StatryRptCategory | Report ID |
| KEY | StatryRptRunID | _ReportedItemsLog | StatryRptRunID | Report Run ID |
| PostingDate | PostingDate | Posting Date for GR | ||
| DocumentDate | DocumentDate | Journal Entry Date | ||
| ChartOfAccounts | ChartOfAccounts | Node Class | ||
| GLAccount | GLAccount | General Ledger | ||
| GLAccountLongName | ||||
| Supplier | Supplier | Supplier | ||
| SupplierName | _Supplier | SupplierName | Supplier Name | |
| Customer | Customer | Sold-to Party | ||
| CustomerName | _Customer | CustomerName | Name of Customer | |
| 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 | |
| AccountingDocCreatedByUser | _JournalEntry | AccountingDocCreatedByUser | User which created overhead document | |
| TransactionDate | ||||
| TransactionCurrency | TransactionCurrency | Transaction Currency | ||
| curr232endasDebitAmountInTransCrcy | ||||
| curr232endasCreditAmountInTransCrcy | ||||
| CompanyCodeCurrency | CompanyCodeCurrency | Local Currency | ||
| curr232endasDebitAmountInCoCodeCrcy | ||||
| curr232endasCreditAmountInCoCodeCrcy | ||||
| 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 | ||
| _CompanyCode | _CompanyCode | |||
| _FiscalYear | _FiscalYear | |||
| _JournalEntry | _JournalEntry | |||
| _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_StRpOplAcctgDocumentItemCube.
-- 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: CSROPACCTDOCITCU
CREATE VIEW C_StRpOplAcctgDocumentItemCube AS
SELECT
CompanyCode,
AccountingDocument,
FiscalYear,
AccountingDocumentItem,
_ReportedItemsLog.StatryRptgEntity AS StatryRptgEntity,
_ReportedItemsLog.StatryRptCategory AS StatryRptCategory,
_ReportedItemsLog.StatryRptRunID AS StatryRptRunID,
PostingDate,
DocumentDate,
ChartOfAccounts,
GLAccount,
_GLAccountInChartOfAccounts._Text[1: Language = $session.system_language].GLAccountLongName AS GLAccountLongName,
Supplier,
_Supplier.SupplierName AS SupplierName,
Customer,
_Customer.CustomerName AS CustomerName,
AccountingDocumentType,
PostingKey,
FinancialAccountType,
SpecialGLCode,
AccountingDocumentCategory,
DebitCreditCode,
AssignmentReference,
DocumentItemText,
_JournalEntry.DocumentReferenceID AS DocumentReferenceID,
_JournalEntry.AccountingDocCreatedByUser AS AccountingDocCreatedByUser,
cast( coalesce( _JournalEntry.JrnlEntryCntrySpecificDate1, '' ) as datum ) AS TransactionDate,
TransactionCurrency,
case DebitCreditCode when 'S' then AmountInTransactionCurrency else cast( '0' as abap.curr( 23,2)) end as DebitAmountInTransCrcy AS curr232endasDebitAmountInTransCrcy,
case DebitCreditCode when 'H' then -AmountInTransactionCurrency else cast( '0' as abap.curr( 23,2)) end as CreditAmountInTransCrcy AS curr232endasCreditAmountInTransCrcy,
CompanyCodeCurrency,
case DebitCreditCode when 'S' then AmountInCompanyCodeCurrency else cast( '0' as abap.curr( 23,2)) end as DebitAmountInCoCodeCrcy AS curr232endasDebitAmountInCoCodeCrcy,
case DebitCreditCode when 'H' then -AmountInCompanyCodeCurrency else cast( '0' as abap.curr( 23,2)) end as CreditAmountInCoCodeCrcy AS curr232endasCreditAmountInCoCodeCrcy,
ClearingDate,
ClearingAccountingDocument,
ClearingDocFiscalYear,
ClearingJournalEntry,
ClearingJournalEntryFiscalYear
FROM I_OperationalAcctgDocItem
LEFT OUTER JOIN I_StRpJournalEntryLog AS _ReportedItemsLog ON _ReportedItemsLog.CompanyCode = CompanyCode AND _ReportedItemsLog.AccountingDocument = AccountingDocument AND _ReportedItemsLog.FiscalYear = FiscalYear -- association [0..*]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA