I_SAFTJournalItem
SAF-T Journal Ledger Entry Item
I_SAFTJournalItem is a Composite CDS View that provides data about "SAF-T Journal Ledger Entry Item" in SAP S/4HANA. It reads from 5 data sources (I_JournalEntryItem, I_SAFTCompensationDocument, I_OperationalAcctgDocItem, I_OperationalAcctgDocItem, P_SAFTGLItems) and exposes 121 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryItem | a | from |
| I_SAFTCompensationDocument | a | union |
| I_OperationalAcctgDocItem | b | inner |
| I_OperationalAcctgDocItem | b | left_outer |
| P_SAFTGLItems | c | inner |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPTJRNLENTRYI | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | SAF-T Journal Ledger Entry Item | view | |
| VDM.lifecycle.status | #DEPRECATED | view | |
| VDM.lifecycle.successor | I_JournalEntryItem | view |
Fields (121)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | SourceLedger | I_SAFTCompensationDocument | SourceLedger | Source Ledger |
| KEY | CompanyCode | I_SAFTCompensationDocument | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | I_SAFTCompensationDocument | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | I_SAFTCompensationDocument | AccountingDocument | Journal Entry |
| KEY | LedgerGLLineItem | I_SAFTCompensationDocument | LedgerGLLineItem | Journal Entry Item |
| KEY | Ledger | I_SAFTCompensationDocument | Ledger | Ledger |
| ChartOfAccounts | I_OperationalAcctgDocItem | ChartOfAccounts | Node Class | |
| GLAccount | I_OperationalAcctgDocItem | GLAccount | General Ledger | |
| AccountingDocumentCategory | I_OperationalAcctgDocItem | AccountingDocumentCategory | Journal Entry Category | |
| PostingDate | I_OperationalAcctgDocItem | PostingDate | Posting Date for GR | |
| AccountingDocumentCreationDate | ||||
| CreationTime | ||||
| DocumentItemText | I_OperationalAcctgDocItem | DocumentItemText | Text | |
| DebitCreditCode | I_OperationalAcctgDocItem | DebitCreditCode | Single-Character Flag | |
| CompanyCodeCurrency | I_OperationalAcctgDocItem | CompanyCodeCurrency | Local Currency | |
| AmountInCompanyCodeCurrency | I_OperationalAcctgDocItem | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| ReferenceDocumentType | I_OperationalAcctgDocItem | ReferenceDocumentType | Reference Document Type | |
| ReferenceDocument | I_SAFTCompensationDocument | ReferenceDocument | Reference Document | |
| AccountingDocumentItem | I_OperationalAcctgDocItem | AccountingDocumentItem | Posting View Item | |
| Customer | I_SAFTCompensationDocument | Customer | Sold-to Party | |
| Supplier | I_SAFTCompensationDocument | Supplier | Supplier | |
| ControllingArea | I_OperationalAcctgDocItem | ControllingArea | Controlling Area | |
| CostCenter | I_OperationalAcctgDocItem | CostCenter | Cost Center | |
| OrderID | I_OperationalAcctgDocItem | OrderID | Order ID | |
| PersonnelNumber | I_OperationalAcctgDocItem | PersonnelNumber | Personnel No. | |
| AmountInTransactionCurrency | I_OperationalAcctgDocItem | AmountInTransactionCurrency | Pt Crcy Amt | |
| WBSElement | I_SAFTCompensationDocument | WBSElement | WBS Internal ID | |
| TaxCode | I_OperationalAcctgDocItem | TaxCode | Tax Code | |
| TransactionCurrency | I_OperationalAcctgDocItem | TransactionCurrency | Transaction Currency | |
| TransactionTypeDetermination | I_OperationalAcctgDocItem | TransactionTypeDetermination | Transaction Key | |
| FinancialAccountType | I_OperationalAcctgDocItem | FinancialAccountType | Fin. Account Type | |
| InvoiceReference | I_OperationalAcctgDocItem | InvoiceReference | Invoice Reference | |
| InvoiceReferenceFiscalYear | I_OperationalAcctgDocItem | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | |
| InvoiceItemReference | I_OperationalAcctgDocItem | InvoiceItemReference | Item | |
| SalesDocument | I_OperationalAcctgDocItem | SalesDocument | SD Document | |
| SalesDocumentItem | I_OperationalAcctgDocItem | SalesDocumentItem | Sales Document Item | |
| ReversalReferenceDocument | I_SAFTCompensationDocument | ReversalReferenceDocument | Reversal Reference Document | |
| IsReversal | I_SAFTCompensationDocument | IsReversal | Reversal doc. | |
| Country | ||||
| BillingDocument | I_OperationalAcctgDocItem | BillingDocument | SD Document | |
| AccountingDocumentItemType | I_OperationalAcctgDocItem | AccountingDocumentItemType | Line Item ID | |
| PaymentReference | I_OperationalAcctgDocItem | PaymentReference | Payment Reference | |
| ValueDate | I_OperationalAcctgDocItem | ValueDate | Value Date | |
| TaxCalculationProcedure | ||||
| CashDiscount1Days | I_OperationalAcctgDocItem | CashDiscount1Days | Days from Baseline Date for Payment | |
| CashDiscount2Days | I_OperationalAcctgDocItem | CashDiscount2Days | Days from Baseline Date for Payment | |
| NetPaymentDays | I_OperationalAcctgDocItem | NetPaymentDays | Net Pmt Terms Period | |
| DueCalculationBaseDate | I_OperationalAcctgDocItem | DueCalculationBaseDate | Due Calculation Base Date | |
| DocumentReferenceID | ||||
| _SourceLedger | I_SAFTCompensationDocument | _SourceLedger | ||
| _CompanyCode | I_SAFTCompensationDocument | _CompanyCode | ||
| _FiscalYear | I_SAFTCompensationDocument | _FiscalYear | ||
| _JournalEntry | I_SAFTCompensationDocument | _JournalEntry | ||
| _Ledger | I_SAFTCompensationDocument | _Ledger | ||
| _DebitCreditCode | I_OperationalAcctgDocItem | _DebitCreditCode | ||
| _CompanyCodeCurrency | I_OperationalAcctgDocItem | _CompanyCodeCurrency | ||
| _AccountingDocumentCategory | I_OperationalAcctgDocItem | _AccountingDocumentCategory | ||
| _GLAccountInChartOfAccounts | I_OperationalAcctgDocItem | _GLAccountInChartOfAccounts | ||
| _ChartOfAccounts | I_OperationalAcctgDocItem | _ChartOfAccounts | ||
| _ReferenceDocumentType | I_OperationalAcctgDocItem | _ReferenceDocumentType | ||
| SourceLedgerasSourceLedger | ||||
| KEY | CompanyCode | I_SAFTCompensationDocument | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | I_SAFTCompensationDocument | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | I_SAFTCompensationDocument | AccountingDocument | Journal Entry |
| KEY | LedgerGLLineItem | I_SAFTCompensationDocument | LedgerGLLineItem | Journal Entry Item |
| KEY | Ledger | I_SAFTCompensationDocument | Ledger | Ledger |
| ChartOfAccounts | I_SAFTCompensationDocument | ChartOfAccounts | Node Class | |
| GLAccount | I_SAFTCompensationDocument | GLAccount | General Ledger | |
| AccountingDocumentCategory | I_SAFTCompensationDocument | AccountingDocumentCategory | Journal Entry Category | |
| PostingDate | I_SAFTCompensationDocument | PostingDate | Posting Date for GR | |
| AccountingDocumentCreationDate | ||||
| CreationTime | ||||
| DocumentItemText | I_SAFTCompensationDocument | DocumentItemText | Text | |
| DebitCreditCode | I_SAFTCompensationDocument | DebitCreditCode | Single-Character Flag | |
| CompanyCodeCurrency | I_SAFTCompensationDocument | CompanyCodeCurrency | Local Currency | |
| AmountInCompanyCodeCurrency | I_SAFTCompensationDocument | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| ReferenceDocumentType | I_SAFTCompensationDocument | ReferenceDocumentType | Reference Document Type | |
| ReferenceDocument | I_SAFTCompensationDocument | ReferenceDocument | Reference Document | |
| AccountingDocumentItem | I_SAFTCompensationDocument | AccountingDocumentItem | Posting View Item | |
| Customer | I_SAFTCompensationDocument | Customer | Sold-to Party | |
| Supplier | I_SAFTCompensationDocument | Supplier | Supplier | |
| ControllingArea | I_SAFTCompensationDocument | ControllingArea | Controlling Area | |
| CostCenter | I_SAFTCompensationDocument | CostCenter | Cost Center | |
| OrderID | I_SAFTCompensationDocument | OrderID | Order ID | |
| PersonnelNumber | I_SAFTCompensationDocument | PersonnelNumber | Personnel No. | |
| AmountInTransactionCurrency | I_SAFTCompensationDocument | AmountInTransactionCurrency | Pt Crcy Amt | |
| WBSElement | I_SAFTCompensationDocument | WBSElement | WBS Internal ID | |
| TaxCode | I_SAFTCompensationDocument | TaxCode | Tax Code | |
| TransactionCurrency | I_SAFTCompensationDocument | TransactionCurrency | Transaction Currency | |
| TransactionTypeDetermination | I_SAFTCompensationDocument | TransactionTypeDetermination | Transaction Key | |
| FinancialAccountType | I_SAFTCompensationDocument | FinancialAccountType | Fin. Account Type | |
| InvoiceReference | I_SAFTCompensationDocument | InvoiceReference | Invoice Reference | |
| InvoiceReferenceFiscalYear | I_SAFTCompensationDocument | InvoiceReferenceFiscalYear | Invoice Reference Fiscal Year | |
| InvoiceItemReference | I_SAFTCompensationDocument | InvoiceItemReference | Item | |
| SalesDocument | I_SAFTCompensationDocument | SalesDocument | SD Document | |
| SalesDocumentItem | I_SAFTCompensationDocument | SalesDocumentItem | Sales Document Item | |
| ReversalReferenceDocument | I_SAFTCompensationDocument | ReversalReferenceDocument | Reversal Reference Document | |
| IsReversal | I_SAFTCompensationDocument | IsReversal | Reversal doc. | |
| Country | ||||
| BillingDocument | I_OperationalAcctgDocItem | BillingDocument | SD Document | |
| AccountingDocumentItemType | I_OperationalAcctgDocItem | AccountingDocumentItemType | Line Item ID | |
| PaymentReference | I_OperationalAcctgDocItem | PaymentReference | Payment Reference | |
| ValueDate | I_OperationalAcctgDocItem | ValueDate | Value Date | |
| TaxCalculationProcedure | ||||
| CashDiscount1Days | I_OperationalAcctgDocItem | CashDiscount1Days | Days from Baseline Date for Payment | |
| CashDiscount2Days | I_OperationalAcctgDocItem | CashDiscount2Days | Days from Baseline Date for Payment | |
| NetPaymentDays | I_OperationalAcctgDocItem | NetPaymentDays | Net Pmt Terms Period | |
| DueCalculationBaseDate | I_OperationalAcctgDocItem | DueCalculationBaseDate | Due Calculation Base Date | |
| DocumentReferenceID | ||||
| _SourceLedger | I_SAFTCompensationDocument | _SourceLedger | ||
| _CompanyCode | I_SAFTCompensationDocument | _CompanyCode | ||
| _FiscalYear | I_SAFTCompensationDocument | _FiscalYear | ||
| _JournalEntry | I_SAFTCompensationDocument | _JournalEntry | ||
| _Ledger | I_SAFTCompensationDocument | _Ledger | ||
| _DebitCreditCode | I_SAFTCompensationDocument | _DebitCreditCode | ||
| _CompanyCodeCurrency | I_SAFTCompensationDocument | _CompanyCodeCurrency | ||
| _AccountingDocumentCategory | I_SAFTCompensationDocument | _AccountingDocumentCategory | ||
| _GLAccountInChartOfAccounts | I_SAFTCompensationDocument | _GLAccountInChartOfAccounts | ||
| _ChartOfAccounts | I_SAFTCompensationDocument | _ChartOfAccounts | ||
| _ReferenceDocumentType | I_SAFTCompensationDocument | _ReferenceDocumentType | ||
| _Customer | I_SAFTCompensationDocument | _Customer |
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_SAFTJournalItem.
-- 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: IPTJRNLENTRYI
CREATE VIEW I_SAFTJournalItem AS
SELECT
a.SourceLedger AS SourceLedger,
a.CompanyCode AS CompanyCode,
a.FiscalYear AS FiscalYear,
a.AccountingDocument AS AccountingDocument,
a.LedgerGLLineItem AS LedgerGLLineItem,
a.Ledger AS Ledger,
b.ChartOfAccounts AS ChartOfAccounts,
b.GLAccount AS GLAccount,
b.AccountingDocumentCategory AS AccountingDocumentCategory,
b.PostingDate AS PostingDate,
b._JournalEntry.AccountingDocumentCreationDate AS AccountingDocumentCreationDate,
b._JournalEntry.CreationTime AS CreationTime,
b.DocumentItemText AS DocumentItemText,
b.DebitCreditCode AS DebitCreditCode,
b.CompanyCodeCurrency AS CompanyCodeCurrency,
b.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
b.ReferenceDocumentType AS ReferenceDocumentType,
a.ReferenceDocument AS ReferenceDocument,
b.AccountingDocumentItem AS AccountingDocumentItem,
a.Customer AS Customer,
a.Supplier AS Supplier,
b.ControllingArea AS ControllingArea,
b.CostCenter AS CostCenter,
b.OrderID AS OrderID,
b.PersonnelNumber AS PersonnelNumber,
b.AmountInTransactionCurrency AS AmountInTransactionCurrency,
a.WBSElement AS WBSElement,
b.TaxCode AS TaxCode,
b.TransactionCurrency AS TransactionCurrency,
b.TransactionTypeDetermination AS TransactionTypeDetermination,
b.FinancialAccountType AS FinancialAccountType,
b.InvoiceReference AS InvoiceReference,
b.InvoiceReferenceFiscalYear AS InvoiceReferenceFiscalYear,
b.InvoiceItemReference AS InvoiceItemReference,
b.SalesDocument AS SalesDocument,
b.SalesDocumentItem AS SalesDocumentItem,
a.ReversalReferenceDocument AS ReversalReferenceDocument,
a.IsReversal AS IsReversal,
b._CompanyCode.Country AS Country,
b.BillingDocument AS BillingDocument,
b.AccountingDocumentItemType AS AccountingDocumentItemType,
b.PaymentReference AS PaymentReference,
b.ValueDate AS ValueDate,
b._CompanyCode._Country.TaxCalculationProcedure AS TaxCalculationProcedure,
b.CashDiscount1Days AS CashDiscount1Days,
b.CashDiscount2Days AS CashDiscount2Days,
b.NetPaymentDays AS NetPaymentDays,
b.DueCalculationBaseDate AS DueCalculationBaseDate,
coalesce(b._JournalEntry.DocumentReferenceID, ' ') AS DocumentReferenceID,
a._SourceLedger AS _SourceLedger,
a._CompanyCode AS _CompanyCode,
a._FiscalYear AS _FiscalYear,
a._JournalEntry AS _JournalEntry,
a._Ledger AS _Ledger,
b._DebitCreditCode AS _DebitCreditCode,
b._CompanyCodeCurrency AS _CompanyCodeCurrency,
b._AccountingDocumentCategory AS _AccountingDocumentCategory,
b._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts,
b._ChartOfAccounts AS _ChartOfAccounts,
b._ReferenceDocumentType AS _ReferenceDocumentType,
a._Customer AS SourceLedgerasSourceLedger,
a._Customer AS _Customer
FROM I_JournalEntryItem AS a
INNER JOIN I_OperationalAcctgDocItem AS b ON /* join condition not captured in parsed metadata */
INNER JOIN P_SAFTGLItems AS c ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_OperationalAcctgDocItem AS b ON /* join condition not captured in parsed metadata */
-- UNION with additional select branch(es): I_SAFTCompensationDocument
;
Learn More
- S/4HANA CDS View Deprecation: What You Need to Know
- 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
- 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