I_SAFTJournalLineItem

DDL: I_SAFTJOURNALLINEITEM SQL: ISAFTJOURNALITM Type: view COMPOSITE

SAF-T Journal Item

I_SAFTJournalLineItem is a Composite CDS View that provides data about "SAF-T Journal Item" in SAP S/4HANA. It reads from 7 data sources and exposes 161 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. It has 4 associations to related views.

Data Sources (7)

SourceAliasJoin Type
I_CFinBillingDocument CFinBillingDocument inner
I_CompanyCode CompanyCode inner
I_CompanyCode CompanyCode inner
I_GLAccountInCompanyCode GLAccount inner
I_GLAccountInCompanyCode GLAccount inner
I_JournalEntryItem JournalEntryItem from
I_JournalEntryItem JournalEntryItem union

Associations (4)

CardinalityTargetAliasCondition
[0..*] I_TaxItem _TaxItem _TaxItem.AccountingDocument = JournalEntryItem.AccountingDocument and _TaxItem.CompanyCode = JournalEntryItem.CompanyCode and _TaxItem.FiscalYear = JournalEntryItem.FiscalYear and _TaxItem.TaxCode = JournalEntryItem.TaxCode
[0..*] I_CFinPurchasingDocHistory _CFinPurchasingDocHistory JournalEntryItem.ReferenceDocument = _CFinPurchasingDocHistory.CFinMaterialDocument and ( JournalEntryItem.ReferenceDocumentType = 'RMRP' or JournalEntryItem.ReferenceDocumentType = 'CF3PM' ) and JournalEntryItem.LogicalSystem = _CFinPurchasingDocHistory.SenderLogicalSystem
[0..*] I_CustomerToBusinessPartner _CustomerToBP _CustomerToBP.Customer = JournalEntryItem.Customer
[0..*] I_SupplierToBusinessPartner _SupplierToBP _SupplierToBP.Supplier = JournalEntryItem.Supplier

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ISAFTJOURNALITM view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED 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 Item view

Fields (161)

KeyFieldSource TableSource FieldDescription
KEY SourceLedger I_JournalEntryItem SourceLedger Source Ledger
KEY CompanyCode I_JournalEntryItem CompanyCode Receiver Company Code
KEY FiscalYear I_JournalEntryItem FiscalYear G/L Fiscal Year
KEY AccountingDocument I_JournalEntryItem AccountingDocument Journal Entry
KEY LedgerGLLineItem I_JournalEntryItem LedgerGLLineItem Journal Entry Item
KEY Ledger I_JournalEntryItem Ledger Ledger
CompanyCodeCurrency I_JournalEntryItem CompanyCodeCurrency Local Currency
GLAccount I_JournalEntryItem GLAccount General Ledger
AlternativeGLAccount I_JournalEntryItem AlternativeGLAccount Group Account
ChartOfAccounts I_JournalEntryItem ChartOfAccounts Node Class
CountryChartOfAccounts I_JournalEntryItem CountryChartOfAccounts Chart of Accts
ReferenceDocument I_JournalEntryItem ReferenceDocument Reference Document
PostingDate I_JournalEntryItem PostingDate Posting Date for GR
DocumentItemText I_JournalEntryItem DocumentItemText Text
AmountInCompanyCodeCurrency I_JournalEntryItem AmountInCompanyCodeCurrency Local Crcy Amt
DebitCreditCode I_JournalEntryItem DebitCreditCode Single-Character Flag
Customer I_JournalEntryItem Customer Sold-to Party
Supplier I_JournalEntryItem Supplier Supplier
TaxCode I_JournalEntryItem TaxCode Tax Code
ReferenceDocumentType I_JournalEntryItem ReferenceDocumentType Reference Document Type
ReversalReferenceDocument I_JournalEntryItem ReversalReferenceDocument Reversal Reference Document
IsReversed I_JournalEntryItem IsReversed Reversed?
CostCenter I_JournalEntryItem CostCenter Cost Center
ControllingArea I_JournalEntryItem ControllingArea Controlling Area
Quantity I_JournalEntryItem Quantity Value
LogicalSystem I_JournalEntryItem LogicalSystem Logical System
TransactionTypeDetermination I_JournalEntryItem TransactionTypeDetermination Transaction Key
FinancialAccountType I_JournalEntryItem FinancialAccountType Fin. Account Type
Country
TaxCalculationProcedure
OrderID I_JournalEntryItem OrderID Order ID
PersonnelNumber I_JournalEntryItem PersonnelNumber Personnel No.
AmountInTransactionCurrency I_JournalEntryItem AmountInTransactionCurrency Pt Crcy Amt
WBSElement I_JournalEntryItem WBSElement WBS Internal ID
TransactionCurrency I_JournalEntryItem TransactionCurrency Transaction Currency
ValueDate I_JournalEntryItem ValueDate Value Date
AccountingDocumentItem I_JournalEntryItem AccountingDocumentItem Posting View Item
IsReversal I_JournalEntryItem IsReversal Reversal doc.
SalesDocument I_JournalEntryItem SalesDocument SD Document
SalesDocumentItem I_JournalEntryItem SalesDocumentItem Sales Document Item
InvoiceReference I_JournalEntryItem InvoiceReference Invoice Reference
InvoiceItemReference I_JournalEntryItem InvoiceItemReference Item
InvoiceReferenceFiscalYear I_JournalEntryItem InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
DocumentReferenceID
PaymentReference
BillingDocument
DueCalculationBaseDate AcctgDocItem DueCalculationBaseDate Due Calculation Base Date
CashDiscount2Days AcctgDocItem CashDiscount2Days Days from Baseline Date for Payment
CashDiscount1Days AcctgDocItem CashDiscount1Days Days from Baseline Date for Payment
NetPaymentDays AcctgDocItem NetPaymentDays Net Pmt Terms Period
AccountingDocumentItemType AcctgDocItem AccountingDocumentItemType Line Item ID
CentralFinanceBillingDocument I_CFinBillingDocument CentralFinanceBillingDocument
CentralFinanceSalesDocument
ReferenceSDDocument
SDDocumentCategory I_CFinBillingDocument SDDocumentCategory Document Cat.
ReconciliationAccountType I_GLAccountInCompanyCode ReconciliationAccountType Reconcil. ID
SpecialGLCode I_JournalEntryItem SpecialGLCode Special G/L Ind
ExchangeRate
ReferenceDocumentContext I_JournalEntryItem ReferenceDocumentContext Reference Document Context
_TaxItem _TaxItem
_CustomerToBP _CustomerToBP
_SupplierToBP _SupplierToBP
_SourceLedger _SourceLedger
_CompanyCode I_JournalEntryItem _CompanyCode
_FiscalYear _FiscalYear
_JournalEntry _JournalEntry
_Ledger _Ledger
_CompanyCodeCurrency _CompanyCodeCurrency
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_AlternativeGLAccount _AlternativeGLAccount
_ChartOfAccounts _ChartOfAccounts
_CountryChartOfAccounts _CountryChartOfAccounts
_Customer _Customer
_Supplier _Supplier
_CostCenter _CostCenter
_ControllingArea _ControllingArea
_LogicalSystem _LogicalSystem
_ReferenceDocumentType _ReferenceDocumentType
_DebitCreditCode _DebitCreditCode
_CFinPurchasingDocHistory _CFinPurchasingDocHistory
SourceLedgerasSourceLedger
KEY CompanyCode I_JournalEntryItem CompanyCode Receiver Company Code
KEY FiscalYear I_JournalEntryItem FiscalYear G/L Fiscal Year
KEY AccountingDocument I_JournalEntryItem AccountingDocument Journal Entry
KEY LedgerGLLineItem I_JournalEntryItem LedgerGLLineItem Journal Entry Item
KEY Ledger I_JournalEntryItem Ledger Ledger
CompanyCodeCurrency I_JournalEntryItem CompanyCodeCurrency Local Currency
GLAccount I_JournalEntryItem GLAccount General Ledger
AlternativeGLAccount I_JournalEntryItem AlternativeGLAccount Group Account
ChartOfAccounts I_JournalEntryItem ChartOfAccounts Node Class
CountryChartOfAccounts I_JournalEntryItem CountryChartOfAccounts Chart of Accts
ReferenceDocument I_JournalEntryItem ReferenceDocument Reference Document
PostingDate I_JournalEntryItem PostingDate Posting Date for GR
DocumentItemText I_JournalEntryItem DocumentItemText Text
AmountInCompanyCodeCurrency I_JournalEntryItem AmountInCompanyCodeCurrency Local Crcy Amt
DebitCreditCode I_JournalEntryItem DebitCreditCode Single-Character Flag
Customer I_JournalEntryItem Customer Sold-to Party
Supplier I_JournalEntryItem Supplier Supplier
TaxCode I_JournalEntryItem TaxCode Tax Code
ReferenceDocumentType I_JournalEntryItem ReferenceDocumentType Reference Document Type
ReversalReferenceDocument I_JournalEntryItem ReversalReferenceDocument Reversal Reference Document
IsReversed I_JournalEntryItem IsReversed Reversed?
CostCenter I_JournalEntryItem CostCenter Cost Center
ControllingArea I_JournalEntryItem ControllingArea Controlling Area
Quantity I_JournalEntryItem Quantity Value
LogicalSystem I_JournalEntryItem LogicalSystem Logical System
TransactionTypeDetermination I_JournalEntryItem TransactionTypeDetermination Transaction Key
FinancialAccountType I_JournalEntryItem FinancialAccountType Fin. Account Type
Country
TaxCalculationProcedure
OrderID I_JournalEntryItem OrderID Order ID
PersonnelNumber I_JournalEntryItem PersonnelNumber Personnel No.
AmountInTransactionCurrency I_JournalEntryItem AmountInTransactionCurrency Pt Crcy Amt
WBSElement I_JournalEntryItem WBSElement WBS Internal ID
TransactionCurrency I_JournalEntryItem TransactionCurrency Transaction Currency
ValueDate I_JournalEntryItem ValueDate Value Date
AccountingDocumentItem I_JournalEntryItem AccountingDocumentItem Posting View Item
IsReversal I_JournalEntryItem IsReversal Reversal doc.
SalesDocument I_JournalEntryItem SalesDocument SD Document
SalesDocumentItem I_JournalEntryItem SalesDocumentItem Sales Document Item
InvoiceReference I_JournalEntryItem InvoiceReference Invoice Reference
InvoiceItemReference I_JournalEntryItem InvoiceItemReference Item
InvoiceReferenceFiscalYear I_JournalEntryItem InvoiceReferenceFiscalYear Invoice Reference Fiscal Year
DocumentReferenceID
PaymentReference
BillingDocument
DueCalculationBaseDate AcctgDocItem DueCalculationBaseDate Due Calculation Base Date
CashDiscount2Days AcctgDocItem CashDiscount2Days Days from Baseline Date for Payment
CashDiscount1Days AcctgDocItem CashDiscount1Days Days from Baseline Date for Payment
NetPaymentDays AcctgDocItem NetPaymentDays Net Pmt Terms Period
AccountingDocumentItemType AcctgDocItem AccountingDocumentItemType Line Item ID
CentralFinanceBillingDocument
CentralFinanceSalesDocument
ReferenceSDDocument
SDDocumentCategory Document Cat.
ReconciliationAccountType I_GLAccountInCompanyCode ReconciliationAccountType Reconcil. ID
SpecialGLCode I_JournalEntryItem SpecialGLCode Special G/L Ind
ExchangeRate
ReferenceDocumentContext I_JournalEntryItem ReferenceDocumentContext Reference Document Context
_TaxItem _TaxItem
_CustomerToBP _CustomerToBP
_SupplierToBP _SupplierToBP
_SourceLedger _SourceLedger
_CompanyCode I_JournalEntryItem _CompanyCode
_FiscalYear _FiscalYear
_JournalEntry _JournalEntry
_Ledger _Ledger
_CompanyCodeCurrency _CompanyCodeCurrency
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_AlternativeGLAccount _AlternativeGLAccount
_ChartOfAccounts _ChartOfAccounts
_CountryChartOfAccounts _CountryChartOfAccounts
_Customer _Customer
_Supplier _Supplier
_CostCenter _CostCenter
_ControllingArea _ControllingArea
_LogicalSystem _LogicalSystem
_ReferenceDocumentType _ReferenceDocumentType
_DebitCreditCode _DebitCreditCode
_CFinPurchasingDocHistory _CFinPurchasingDocHistory
_Order _Order

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_SAFTJournalLineItem.
-- 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: ISAFTJOURNALITM

CREATE VIEW I_SAFTJournalLineItem AS
SELECT
  JournalEntryItem.SourceLedger AS SourceLedger,
  JournalEntryItem.CompanyCode AS CompanyCode,
  JournalEntryItem.FiscalYear AS FiscalYear,
  JournalEntryItem.AccountingDocument AS AccountingDocument,
  JournalEntryItem.LedgerGLLineItem AS LedgerGLLineItem,
  JournalEntryItem.Ledger AS Ledger,
  JournalEntryItem.CompanyCodeCurrency AS CompanyCodeCurrency,
  JournalEntryItem.GLAccount AS GLAccount,
  JournalEntryItem.AlternativeGLAccount AS AlternativeGLAccount,
  JournalEntryItem.ChartOfAccounts AS ChartOfAccounts,
  JournalEntryItem.CountryChartOfAccounts AS CountryChartOfAccounts,
  JournalEntryItem.ReferenceDocument AS ReferenceDocument,
  JournalEntryItem.PostingDate AS PostingDate,
  JournalEntryItem.DocumentItemText AS DocumentItemText,
  JournalEntryItem.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
  JournalEntryItem.DebitCreditCode AS DebitCreditCode,
  JournalEntryItem.Customer AS Customer,
  JournalEntryItem.Supplier AS Supplier,
  JournalEntryItem.TaxCode AS TaxCode,
  JournalEntryItem.ReferenceDocumentType AS ReferenceDocumentType,
  JournalEntryItem.ReversalReferenceDocument AS ReversalReferenceDocument,
  JournalEntryItem.IsReversed AS IsReversed,
  JournalEntryItem.CostCenter AS CostCenter,
  JournalEntryItem.ControllingArea AS ControllingArea,
  JournalEntryItem.Quantity AS Quantity,
  JournalEntryItem.LogicalSystem AS LogicalSystem,
  JournalEntryItem.TransactionTypeDetermination AS TransactionTypeDetermination,
  JournalEntryItem.FinancialAccountType AS FinancialAccountType,
  JournalEntryItem._CompanyCode.Country AS Country,
  JournalEntryItem._CompanyCode._Country.TaxCalculationProcedure AS TaxCalculationProcedure,
  JournalEntryItem.OrderID AS OrderID,
  JournalEntryItem.PersonnelNumber AS PersonnelNumber,
  JournalEntryItem.AmountInTransactionCurrency AS AmountInTransactionCurrency,
  JournalEntryItem.WBSElement AS WBSElement,
  JournalEntryItem.TransactionCurrency AS TransactionCurrency,
  JournalEntryItem.ValueDate AS ValueDate,
  JournalEntryItem.AccountingDocumentItem AS AccountingDocumentItem,
  JournalEntryItem.IsReversal AS IsReversal,
  JournalEntryItem.SalesDocument AS SalesDocument,
  JournalEntryItem.SalesDocumentItem AS SalesDocumentItem,
  JournalEntryItem.InvoiceReference AS InvoiceReference,
  JournalEntryItem.InvoiceItemReference AS InvoiceItemReference,
  JournalEntryItem.InvoiceReferenceFiscalYear AS InvoiceReferenceFiscalYear,
  JournalEntryItem._JournalEntry.DocumentReferenceID AS DocumentReferenceID,
  coalesce(AcctgDocItem.PaymentReference, ' ') AS PaymentReference,
  coalesce(AcctgDocItem.BillingDocument, ' ') AS BillingDocument,
  AcctgDocItem.DueCalculationBaseDate AS DueCalculationBaseDate,
  AcctgDocItem.CashDiscount2Days AS CashDiscount2Days,
  AcctgDocItem.CashDiscount1Days AS CashDiscount1Days,
  AcctgDocItem.NetPaymentDays AS NetPaymentDays,
  AcctgDocItem.AccountingDocumentItemType AS AccountingDocumentItemType,
  CFinBillingDocument.CentralFinanceBillingDocument AS CentralFinanceBillingDocument,
  CFinBillingDocument._Item.CentralFinanceSalesDocument AS CentralFinanceSalesDocument,
  CFinBillingDocument._Item.ReferenceSDDocument AS ReferenceSDDocument,
  CFinBillingDocument.SDDocumentCategory AS SDDocumentCategory,
  GLAccount.ReconciliationAccountType AS ReconciliationAccountType,
  JournalEntryItem.SpecialGLCode AS SpecialGLCode,
  cast( JournalEntryItem._JournalEntry.ExchangeRate as cade_kursf ) AS ExchangeRate,
  JournalEntryItem.ReferenceDocumentContext AS ReferenceDocumentContext,
  JournalEntryItem._CompanyCode AS _CompanyCode
FROM I_JournalEntryItem AS JournalEntryItem
INNER JOIN I_CFinBillingDocument AS CFinBillingDocument 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_CompanyCode AS CompanyCode ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_TaxItem AS _TaxItem ON _TaxItem.AccountingDocument = JournalEntryItem.AccountingDocument AND _TaxItem.CompanyCode = JournalEntryItem.CompanyCode AND _TaxItem.FiscalYear = JournalEntryItem.FiscalYear AND _TaxItem.TaxCode = JournalEntryItem.TaxCode  -- association [0..*]
LEFT OUTER JOIN I_CFinPurchasingDocHistory AS _CFinPurchasingDocHistory ON JournalEntryItem.ReferenceDocument = _CFinPurchasingDocHistory.CFinMaterialDocument AND ( JournalEntryItem.ReferenceDocumentType = 'RMRP' OR JournalEntryItem.ReferenceDocumentType = 'CF3PM' ) AND JournalEntryItem.LogicalSystem = _CFinPurchasingDocHistory.SenderLogicalSystem  -- association [0..*]
LEFT OUTER JOIN I_CustomerToBusinessPartner AS _CustomerToBP ON _CustomerToBP.Customer = JournalEntryItem.Customer  -- association [0..*]
LEFT OUTER JOIN I_SupplierToBusinessPartner AS _SupplierToBP ON _SupplierToBP.Supplier = JournalEntryItem.Supplier  -- association [0..*]
-- UNION with additional select branch(es): I_JournalEntryItem
;