I_SAFTGenLedgerOneTimeCustomer
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)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntryItem | a | from |
| I_JournalEntryItemOneTimeData | b | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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