I_PL_SAFTJournalEntryCube
SAFT PL Journal Entry - Cube
I_PL_SAFTJournalEntryCube is a Composite CDS View (Cube) that provides data about "SAFT PL Journal Entry - Cube" in SAP S/4HANA. It reads from 1 data source (I_JournalEntryItem) and exposes 27 fields with key fields SourceLedger, CompanyCode, AccountingDocument, FiscalYear, LedgerGLLineItem. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryItem | I_JournalEntryItem | from |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_PL_IndicatorIsTrueOrFalse | fipl_consider_vendor_customer |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | I_StRpJournalEntryLog | _ReportedItemsLog | $projection.CompanyCode = _ReportedItemsLog.CompanyCode and $projection.AccountingDocument = _ReportedItemsLog.AccountingDocument and $projection.FiscalYear = _ReportedItemsLog.FiscalYear |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | SAFT PL Journal Entry - Cube | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| Metadata.allowExtensions | true | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (27)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | I_JournalEntryItem | SourceLedger | Source Ledger |
| KEY | CompanyCode | I_JournalEntryItem | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | I_JournalEntryItem | AccountingDocument | Journal Entry |
| KEY | FiscalYear | I_JournalEntryItem | FiscalYear | G/L Fiscal Year |
| KEY | LedgerGLLineItem | I_JournalEntryItem | LedgerGLLineItem | Journal Entry Item |
| KEY | Ledger | I_JournalEntryItem | Ledger | Ledger |
| KEY | StatryRptCategory | _ReportedItemsLog | StatryRptCategory | Report ID |
| KEY | StatryRptgEntity | _ReportedItemsLog | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptRunID | _ReportedItemsLog | StatryRptRunID | Report Run ID |
| PostingDate | I_JournalEntryItem | PostingDate | Posting Date for GR | |
| ChartOfAccounts | I_JournalEntryItem | ChartOfAccounts | Node Class | |
| GLAccount | I_JournalEntryItem | GLAccount | General Ledger | |
| DocumentItemTextendasDocumentItemText | ||||
| CompanyCodeCurrency | I_JournalEntryItem | CompanyCodeCurrency | Local Currency | |
| TransactionCurrency | I_JournalEntryItem | TransactionCurrency | Transaction Currency | |
| DebitAmountInCoCodeCrcy | I_JournalEntryItem | DebitAmountInCoCodeCrcy | Debit Amount in Company Code Currency | |
| DebitAmountInTransCrcy | I_JournalEntryItem | DebitAmountInTransCrcy | Debit Amt in DC | |
| CreditAmountInCoCodeCrcy | I_JournalEntryItem | CreditAmountInCoCodeCrcy | Credit Amount in Company Code Currency | |
| CreditAmountInTransCrcy | I_JournalEntryItem | CreditAmountInTransCrcy | Credit Amt in DC | |
| _JournalEntry | I_JournalEntryItem | _JournalEntry | ||
| PL_IndicatorIsCustomerSupplier | ||||
| Supplier | I_JournalEntryItem | Supplier | Supplier | |
| Customer | I_JournalEntryItem | Customer | Sold-to Party | |
| FinancialAccountType | I_JournalEntryItem | FinancialAccountType | Fin. Account Type | |
| AlternativeGLAccount | I_JournalEntryItem | AlternativeGLAccount | Group Account | |
| DebitCreditCode | I_JournalEntryItem | DebitCreditCode | Single-Character Flag | |
| Decimals3then1else2endasDecimals |
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_PL_SAFTJournalEntryCube.
-- 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_PL_IndicatorIsTrueOrFalse : fipl_consider_vendor_customer
CREATE VIEW I_PL_SAFTJournalEntryCube AS
SELECT
I_JournalEntryItem.SourceLedger AS SourceLedger,
I_JournalEntryItem.CompanyCode AS CompanyCode,
I_JournalEntryItem.AccountingDocument AS AccountingDocument,
I_JournalEntryItem.FiscalYear AS FiscalYear,
I_JournalEntryItem.LedgerGLLineItem AS LedgerGLLineItem,
I_JournalEntryItem.Ledger AS Ledger,
_ReportedItemsLog.StatryRptCategory AS StatryRptCategory,
_ReportedItemsLog.StatryRptgEntity AS StatryRptgEntity,
_ReportedItemsLog.StatryRptRunID AS StatryRptRunID,
I_JournalEntryItem.PostingDate AS PostingDate,
I_JournalEntryItem.ChartOfAccounts AS ChartOfAccounts,
I_JournalEntryItem.GLAccount AS GLAccount,
case when substring(I_JournalEntryItem.DocumentItemText, 1, 1) = '*' then substring(I_JournalEntryItem.DocumentItemText, instr(I_JournalEntryItem.DocumentItemText, ' ') + 1, length(I_JournalEntryItem.DocumentItemText)) else I_JournalEntryItem.DocumentItemText end as DocumentItemText AS DocumentItemTextendasDocumentItemText,
I_JournalEntryItem.CompanyCodeCurrency AS CompanyCodeCurrency,
I_JournalEntryItem.TransactionCurrency AS TransactionCurrency,
I_JournalEntryItem.DebitAmountInCoCodeCrcy AS DebitAmountInCoCodeCrcy,
I_JournalEntryItem.DebitAmountInTransCrcy AS DebitAmountInTransCrcy,
I_JournalEntryItem.CreditAmountInCoCodeCrcy AS CreditAmountInCoCodeCrcy,
I_JournalEntryItem.CreditAmountInTransCrcy AS CreditAmountInTransCrcy,
I_JournalEntryItem._JournalEntry AS _JournalEntry,
$parameters.P_PL_IndicatorIsTrueOrFalse AS PL_IndicatorIsCustomerSupplier,
I_JournalEntryItem.Supplier AS Supplier,
I_JournalEntryItem.Customer AS Customer,
I_JournalEntryItem.FinancialAccountType AS FinancialAccountType,
I_JournalEntryItem.AlternativeGLAccount AS AlternativeGLAccount,
I_JournalEntryItem.DebitCreditCode AS DebitCreditCode,
case when I_JournalEntryItem._TransactionCurrency.Decimals = 4 then 0 when I_JournalEntryItem._TransactionCurrency.Decimals = 3 then 1 else 2 end as Decimals AS Decimals3then1else2endasDecimals
FROM I_JournalEntryItem
LEFT OUTER JOIN I_StRpJournalEntryLog AS _ReportedItemsLog ON CompanyCode = _ReportedItemsLog.CompanyCode AND AccountingDocument = _ReportedItemsLog.AccountingDocument AND FiscalYear = _ReportedItemsLog.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