I_LU_SAFTJournalEntry
SAFT LU General Ledger Documents
I_LU_SAFTJournalEntry is a Composite CDS View that provides data about "SAFT LU General Ledger Documents" in SAP S/4HANA. It reads from 5 data sources (I_CompanyCode, I_LU_SAFTGenericSettings, I_GLAccountInCompanyCode, I_JournalEntry, I_JournalEntryItem) and exposes 53 fields with key fields CompanyCode, FiscalYear, AccountingDocument, Ledger, LedgerGLLineItem.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_CompanyCode | CompanyCode | inner |
| I_LU_SAFTGenericSettings | GenSettings | inner |
| I_GLAccountInCompanyCode | GLAccount | inner |
| I_JournalEntry | JournalEntry | from |
| I_JournalEntryItem | JournalItem | inner |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ILUSAFTGLENTRY | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.dataMaintenance | #RESTRICTED | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_INCLUDED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | SAFT LU General Ledger Documents | view |
Fields (53)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_JournalEntry | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | I_JournalEntry | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | I_JournalEntry | AccountingDocument | Journal Entry |
| KEY | Ledger | I_JournalEntryItem | Ledger | Ledger |
| KEY | LedgerGLLineItem | I_JournalEntryItem | LedgerGLLineItem | Journal Entry Item |
| AccountingDocumentItem | I_JournalEntryItem | AccountingDocumentItem | Posting View Item | |
| DocumentTransaction | ||||
| AccountingDocumentType | I_JournalEntry | AccountingDocumentType | Journal Entry Type | |
| DocumentDate | I_JournalEntry | DocumentDate | Journal Entry Date | |
| PostingDate | I_JournalEntry | PostingDate | Posting Date for GR | |
| FiscalPeriod | I_JournalEntry | FiscalPeriod | Tax period | |
| AccountingDocumentCategory | I_JournalEntry | AccountingDocumentCategory | Journal Entry Category | |
| AccountingDocCreatedByUser | I_JournalEntry | AccountingDocCreatedByUser | User which created overhead document | |
| AccountingDocumentCreationDate | I_JournalEntry | AccountingDocumentCreationDate | Journal Entry Date | |
| ExchangeRate | ||||
| Customer | I_JournalEntryItem | Customer | Sold-to Party | |
| Supplier | I_JournalEntryItem | Supplier | Supplier | |
| FinancialAccountType | I_JournalEntryItem | FinancialAccountType | Fin. Account Type | |
| ChartOfAccounts | I_JournalEntryItem | ChartOfAccounts | Node Class | |
| GLAccount | I_JournalEntryItem | GLAccount | General Ledger | |
| SpecialGLCode | I_JournalEntryItem | SpecialGLCode | Special G/L Ind | |
| TaxCode | I_JournalEntryItem | TaxCode | Tax Code | |
| TaxCalculationProcedure | ||||
| DocumentItemText | I_JournalEntryItem | DocumentItemText | Text | |
| DebitCreditCode | I_JournalEntryItem | DebitCreditCode | Single-Character Flag | |
| IsReversal | I_JournalEntryItem | IsReversal | Reversal doc. | |
| Quantity | I_JournalEntryItem | Quantity | Value | |
| CompanyCodeCurrency | I_JournalEntryItem | CompanyCodeCurrency | Local Currency | |
| TransactionCurrency | I_JournalEntryItem | TransactionCurrency | Transaction Currency | |
| AmountInCompanyCodeCurrency | I_JournalEntryItem | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| AmountInTransactionCurrency | I_JournalEntryItem | AmountInTransactionCurrency | Pt Crcy Amt | |
| AccountingDocumentItemType | ||||
| VATRegistration | ||||
| CompanyCodeCountry | I_CompanyCode | Country | Venue: Ctry/Reg | |
| char3asDelivOfGoodsDestCountry | ||||
| TransactionTypeDetermination | I_JournalEntryItem | TransactionTypeDetermination | Transaction Key | |
| AlternativeGLAccount | I_GLAccountInCompanyCode | AlternativeGLAccount | Group Account | |
| TaxRateValidityStartDate | AcctgDoc | TaxRateValidityStartDate | Tax Rate Validity Start Date | |
| LedgerFiscalYear | I_JournalEntryItem | LedgerFiscalYear | ||
| LedgerFiscalPeriod | I_JournalEntryItem | FiscalPeriod | Tax period | |
| _CompanyCode | I_JournalEntry | _CompanyCode | ||
| _FiscalYear | I_JournalEntry | _FiscalYear | ||
| _AccountingDocumentType | I_JournalEntry | _AccountingDocumentType | ||
| _FiscalPeriod | I_JournalEntry | _FiscalPeriod | ||
| _AccountingDocumentCategory | I_JournalEntry | _AccountingDocumentCategory | ||
| _AccountingDocumentTypeText | I_JournalEntry | _AccountingDocumentTypeText | ||
| _Ledger | I_JournalEntryItem | _Ledger | ||
| _ChartOfAccounts | I_JournalEntryItem | _ChartOfAccounts | ||
| _DebitCreditCode | I_JournalEntryItem | _DebitCreditCode | ||
| _CompanyCodeCurrency | I_JournalEntryItem | _CompanyCodeCurrency | ||
| _TransactionCurrency | I_JournalEntryItem | _TransactionCurrency | ||
| _Supplier | I_JournalEntryItem | _Supplier | ||
| _Customer | I_JournalEntryItem | _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_LU_SAFTJournalEntry.
-- 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: ILUSAFTGLENTRY
CREATE VIEW I_LU_SAFTJournalEntry AS
SELECT
JournalEntry.CompanyCode AS CompanyCode,
JournalEntry.FiscalYear AS FiscalYear,
JournalEntry.AccountingDocument AS AccountingDocument,
JournalItem.Ledger AS Ledger,
JournalItem.LedgerGLLineItem AS LedgerGLLineItem,
JournalItem.AccountingDocumentItem AS AccountingDocumentItem,
cast(concat(JournalEntry.CompanyCode, concat ('_', JournalEntry.AccountingDocument)) as abap.char(70)) AS DocumentTransaction,
JournalEntry.AccountingDocumentType AS AccountingDocumentType,
JournalEntry.DocumentDate AS DocumentDate,
JournalEntry.PostingDate AS PostingDate,
JournalEntry.FiscalPeriod AS FiscalPeriod,
JournalEntry.AccountingDocumentCategory AS AccountingDocumentCategory,
JournalEntry.AccountingDocCreatedByUser AS AccountingDocCreatedByUser,
JournalEntry.AccountingDocumentCreationDate AS AccountingDocumentCreationDate,
cast(abs(JournalEntry.ExchangeRate) as fis_absolute_exchangerate preserving type) AS ExchangeRate,
JournalItem.Customer AS Customer,
JournalItem.Supplier AS Supplier,
JournalItem.FinancialAccountType AS FinancialAccountType,
JournalItem.ChartOfAccounts AS ChartOfAccounts,
JournalItem.GLAccount AS GLAccount,
JournalItem.SpecialGLCode AS SpecialGLCode,
JournalItem.TaxCode AS TaxCode,
CompanyCode._Country.TaxCalculationProcedure AS TaxCalculationProcedure,
JournalItem.DocumentItemText AS DocumentItemText,
JournalItem.DebitCreditCode AS DebitCreditCode,
JournalItem.IsReversal AS IsReversal,
JournalItem.Quantity AS Quantity,
JournalItem.CompanyCodeCurrency AS CompanyCodeCurrency,
JournalItem.TransactionCurrency AS TransactionCurrency,
JournalItem.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
JournalItem.AmountInTransactionCurrency AS AmountInTransactionCurrency,
coalesce(AcctgDoc.AccountingDocumentItemType, 'T') AS AccountingDocumentItemType,
coalesce(AcctgDoc.VATRegistration, '') AS VATRegistration,
CompanyCode.Country AS CompanyCodeCountry,
cast(case when AcctgDoc.VATRegistration is not initial and AcctgDoc.VATRegistration is not null then substring ( AcctgDoc.VATRegistration, 1, 2 ) else '' end as abap.char(3)) as DelivOfGoodsDestCountry AS char3asDelivOfGoodsDestCountry,
JournalItem.TransactionTypeDetermination AS TransactionTypeDetermination,
GLAccount.AlternativeGLAccount AS AlternativeGLAccount,
AcctgDoc.TaxRateValidityStartDate AS TaxRateValidityStartDate,
JournalItem.LedgerFiscalYear AS LedgerFiscalYear,
JournalItem.FiscalPeriod AS LedgerFiscalPeriod,
JournalEntry._CompanyCode AS _CompanyCode,
JournalEntry._FiscalYear AS _FiscalYear,
JournalEntry._AccountingDocumentType AS _AccountingDocumentType,
JournalEntry._FiscalPeriod AS _FiscalPeriod,
JournalEntry._AccountingDocumentCategory AS _AccountingDocumentCategory,
JournalEntry._AccountingDocumentTypeText AS _AccountingDocumentTypeText,
JournalItem._Ledger AS _Ledger,
JournalItem._ChartOfAccounts AS _ChartOfAccounts,
JournalItem._DebitCreditCode AS _DebitCreditCode,
JournalItem._CompanyCodeCurrency AS _CompanyCodeCurrency,
JournalItem._TransactionCurrency AS _TransactionCurrency,
JournalItem._Supplier AS _Supplier,
JournalItem._Customer AS _Customer
FROM I_JournalEntry AS JournalEntry
INNER JOIN I_JournalEntryItem AS JournalItem ON /* join condition not captured in parsed metadata */
INNER JOIN I_GLAccountInCompanyCode AS GLAccount ON /* join condition not captured in parsed metadata */
INNER JOIN I_LU_SAFTGenericSettings AS GenSettings ON /* join condition not captured in parsed metadata */
INNER JOIN I_CompanyCode AS CompanyCode ON /* join condition not captured in parsed metadata */
;
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