I_SAFTGenLedgerOneTimeSupplier

DDL: I_SAFTGENLEDGERONETIMESUPPLIER SQL: ISAFTGLOTSUP Type: view COMPOSITE

SAF-T Gen Ledger OneTimeSupplier

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

Data Sources (2)

SourceAliasJoin Type
I_JournalEntryItem a from
I_JournalEntryItemOneTimeData b inner

Associations (3)

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_SupplierCompany _RecAccount a.Supplier = _RecAccount.Supplier and a.CompanyCode = _RecAccount.CompanyCode
[0..1] I_Address_2 _DfltAddrRprstn $projection.AddressID = _DfltAddrRprstn.AddressID and _DfltAddrRprstn.AddressPersonID is initial and _DfltAddrRprstn.AddressRepresentationCode is initial

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName ISAFTGLOTSUP view
AbapCatalog.compiler.compareFilter 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 OneTimeSupplier view

Fields (40)

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
Supplier I_JournalEntryItem Supplier Supplier
PostingDate I_JournalEntryItem PostingDate Posting Date for GR
CompanyCodeCurrency I_JournalEntryItem CompanyCodeCurrency Local Currency
AddressID I_JournalEntryItemOneTimeData AddressID Ship-to address
CompanyName
StreetAddressName _DfltAddrRprstn StreetName Text
StreetPrefixName _DfltAddrRprstn StreetPrefixName1 Street 2
AdditionalStreetPrefixName _DfltAddrRprstn StreetPrefixName2 Street 3
StreetSuffixName _DfltAddrRprstn StreetSuffixName1 Street 4
AdditionalStreetSuffixName _DfltAddrRprstn StreetSuffixName2 Street 5
HouseNumber _DfltAddrRprstn HouseNumber House Number
CityName I_JournalEntryItemOneTimeData CityName Name
PostalCode I_JournalEntryItemOneTimeData PostalCode Postal Code
Country I_JournalEntryItemOneTimeData Country Venue: Ctry/Reg
POBox I_JournalEntryItemOneTimeData POBox PO Box
POBoxPostalCode I_JournalEntryItemOneTimeData POBoxPostalCode PO Box Postal Code
Region I_JournalEntryItemOneTimeData Region Venue Region
EmailAddress
SearchURLAddress
_CompanyCode _CompanyCode
_JournalEntry _JournalEntry
_Ledger _Ledger
_FiscalYear _FiscalYear
ReconciliationAccount _RecAccount ReconciliationAccount Recon. account
_ChartOfAccounts _ChartOfAccounts
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_AccountingDocumentCategory _AccountingDocumentCategory
_SourceLedger _SourceLedger
_Supplier _Supplier
_DfltAddrRprstn _DfltAddrRprstn

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_SAFTGenLedgerOneTimeSupplier.
-- 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: ISAFTGLOTSUP

CREATE VIEW I_SAFTGenLedgerOneTimeSupplier 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.Supplier AS Supplier,
  a.PostingDate AS PostingDate,
  a.CompanyCodeCurrency AS CompanyCodeCurrency,
  b.AddressID AS AddressID,
  concat( concat( b.BusinessPartnerName1, ' '), b.BusinessPartnerName2 ) AS CompanyName,
  _DfltAddrRprstn.StreetName AS StreetAddressName,
  _DfltAddrRprstn.StreetPrefixName1 AS StreetPrefixName,
  _DfltAddrRprstn.StreetPrefixName2 AS AdditionalStreetPrefixName,
  _DfltAddrRprstn.StreetSuffixName1 AS StreetSuffixName,
  _DfltAddrRprstn.StreetSuffixName2 AS AdditionalStreetSuffixName,
  _DfltAddrRprstn.HouseNumber AS HouseNumber,
  b.CityName AS CityName,
  b.PostalCode AS PostalCode,
  b.Country AS Country,
  b.POBox AS POBox,
  b.POBoxPostalCode AS POBoxPostalCode,
  b.Region AS Region,
  cast('' as abap.char(241)) AS EmailAddress,
  cast('' as abap.char(50)) AS SearchURLAddress,
  _RecAccount.ReconciliationAccount AS ReconciliationAccount
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_SupplierCompany AS _RecAccount ON a.Supplier = _RecAccount.Supplier AND a.CompanyCode = _RecAccount.CompanyCode  -- association [0..1]
LEFT OUTER JOIN I_Address_2 AS _DfltAddrRprstn ON AddressID = _DfltAddrRprstn.AddressID AND _DfltAddrRprstn.AddressPersonID is initial AND _DfltAddrRprstn.AddressRepresentationCode is initial  -- association [0..1]
;