I_SAFTGenLedgerOneTimeCustomer

DDL: I_SAFTGENLEDGERONETIMECUSTOMER SQL: ISAFTGENLEDOTC Type: view COMPOSITE

SAF-T Gen Ledger One Time Customer

I_SAFTGenLedgerOneTimeCustomer is a Composite CDS View that provides data about "SAF-T Gen Ledger One Time Customer" in SAP S/4HANA. It reads from 2 data sources (I_JournalEntryItem, I_JournalEntryItemOneTimeData) and exposes 42 fields with key fields SourceLedger, CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_JournalEntryItem a from
I_JournalEntryItemOneTimeData b inner

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_OperationalAcctgDocItem _AccdocItem a.CompanyCode = _AccdocItem.CompanyCode and a.AccountingDocument = _AccdocItem.AccountingDocument and a.FiscalYear = _AccdocItem.FiscalYear and a.AccountingDocumentItem = _AccdocItem.AccountingDocumentItem and _AccdocItem.VATRegistration <> ''
[0..1] I_CustomerCompany _CustCompany a.Customer = _CustCompany.Customer and a.CompanyCode = _CustCompany.CompanyCode

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName ISAFTGENLEDOTC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
EndUserText.label SAF-T Gen Ledger One Time Customer view

Fields (42)

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
ChartOfAccounts I_JournalEntryItem ChartOfAccounts Node Class
GLAccount I_JournalEntryItem GLAccount General Ledger
AccountingDocumentCategory I_JournalEntryItem AccountingDocumentCategory Journal Entry Category
AccountingDocumentItem I_JournalEntryItem AccountingDocumentItem Posting View Item
PostingDate I_JournalEntryItem PostingDate Posting Date for GR
Customer I_JournalEntryItem Customer Sold-to Party
CompanyCodeCurrency I_JournalEntryItem CompanyCodeCurrency Local Currency
ReconciliationAccount _CustCompany ReconciliationAccount Recon. account
CompanyName
StreetName I_JournalEntryItemOneTimeData StreetAddressName Street
StreetPrefixName
AdditionalStreetPrefixName
StreetSuffixName
AdditionalStreetSuffixName
HouseNumber
CityName I_JournalEntryItemOneTimeData CityName Name
PostalCode I_JournalEntryItemOneTimeData PostalCode Postal Code
Country I_JournalEntryItemOneTimeData Country Venue: Ctry/Reg
Region I_JournalEntryItemOneTimeData Region Venue Region
POBox I_JournalEntryItemOneTimeData POBox PO Box
POBoxPostalCode I_JournalEntryItemOneTimeData POBoxPostalCode PO Box Postal Code
AddressID I_JournalEntryItemOneTimeData AddressID Ship-to address
PhoneNumber
FaxNumber
EmailAddress
WebsiteURL
_Customer I_JournalEntryItem _Customer
_ChartOfAccounts I_JournalEntryItem _ChartOfAccounts
_GLAccountInChartOfAccounts I_JournalEntryItem _GLAccountInChartOfAccounts
_SourceLedger I_JournalEntryItem _SourceLedger
_CompanyCode I_JournalEntryItem _CompanyCode
_FiscalYear I_JournalEntryItem _FiscalYear
_JournalEntry I_JournalEntryItem _JournalEntry
_Ledger I_JournalEntryItem _Ledger
_AccountingDocumentCategory I_JournalEntryItem _AccountingDocumentCategory
_GLAccountInCompanyCode I_JournalEntryItem _GLAccountInCompanyCode

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_SAFTGenLedgerOneTimeCustomer.
-- 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: ISAFTGENLEDOTC

CREATE VIEW I_SAFTGenLedgerOneTimeCustomer 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,
  a.ChartOfAccounts AS ChartOfAccounts,
  a.GLAccount AS GLAccount,
  a.AccountingDocumentCategory AS AccountingDocumentCategory,
  a.AccountingDocumentItem AS AccountingDocumentItem,
  a.PostingDate AS PostingDate,
  a.Customer AS Customer,
  a.CompanyCodeCurrency AS CompanyCodeCurrency,
  _CustCompany.ReconciliationAccount AS ReconciliationAccount,
  concat(b.BusinessPartnerName1, concat (' ', b.BusinessPartnerName2)) AS CompanyName,
  b.StreetAddressName AS StreetName,
  '' AS StreetPrefixName,
  '' AS AdditionalStreetPrefixName,
  '' AS StreetSuffixName,
  '' AS AdditionalStreetSuffixName,
  cast('' as abap.char(10)) AS HouseNumber,
  b.CityName AS CityName,
  b.PostalCode AS PostalCode,
  b.Country AS Country,
  b.Region AS Region,
  b.POBox AS POBox,
  b.POBoxPostalCode AS POBoxPostalCode,
  b.AddressID AS AddressID,
  cast('' as abap.char(30)) AS PhoneNumber,
  '' AS FaxNumber,
  cast('' as abap.char(241)) AS EmailAddress,
  cast('' as abap.char(50)) AS WebsiteURL,
  a._Customer AS _Customer,
  a._ChartOfAccounts AS _ChartOfAccounts,
  a._GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts,
  a._SourceLedger AS _SourceLedger,
  a._CompanyCode AS _CompanyCode,
  a._FiscalYear AS _FiscalYear,
  a._JournalEntry AS _JournalEntry,
  a._Ledger AS _Ledger,
  a._AccountingDocumentCategory AS _AccountingDocumentCategory,
  a._GLAccountInCompanyCode AS _GLAccountInCompanyCode
FROM I_JournalEntryItem AS a
INNER JOIN I_JournalEntryItemOneTimeData AS b ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_OperationalAcctgDocItem AS _AccdocItem ON a.CompanyCode = _AccdocItem.CompanyCode AND a.AccountingDocument = _AccdocItem.AccountingDocument AND a.FiscalYear = _AccdocItem.FiscalYear AND a.AccountingDocumentItem = _AccdocItem.AccountingDocumentItem AND _AccdocItem.VATRegistration <> ''  -- association [0..1]
LEFT OUTER JOIN I_CustomerCompany AS _CustCompany ON a.Customer = _CustCompany.Customer AND a.CompanyCode = _CustCompany.CompanyCode  -- association [0..1]
;