I_PT_SAFTGenLedgerEntry
SAF-T PT Journal Ledger Entry
I_PT_SAFTGenLedgerEntry is a Composite CDS View that provides data about "SAF-T PT Journal Ledger Entry" in SAP S/4HANA. It reads from 3 data sources (I_PT_SAFTTransactionType, P_PT_SAFTTAXLAND, P_PT_SAFTTAXLANDSUP) and exposes 22 fields with key fields CompanyCode, FiscalYear, AccountingDocument, Ledger. It has 5 associations to related views. Part of development package GLO_FIN_IS_SAFT_PT.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_PT_SAFTTransactionType | c | left_outer |
| P_PT_SAFTTAXLAND | MultVatCustomer | left_outer |
| P_PT_SAFTTAXLANDSUP | MultVatSupplier | left_outer |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_PT_SAFTGenericSettings | _b | _b.CompanyCode = a.CompanyCode and _b.FiscalYearFrom <= a.FiscalYear and _b.FiscalYearTo >= a.FiscalYear and _b.SourceLedger = a.Ledger |
| [0..1] | I_PT_SAFTGenLedgerCustomer | _Customer | _Customer.Ledger = a.Ledger and _Customer.AccountingDocument = a.AccountingDocument and _Customer.CompanyCode = a.CompanyCode and _Customer.FiscalYear = a.FiscalYear and _Customer.Customer = a.Customer |
| [0..1] | I_PT_SAFTGenLedgerOneTimeCust | _OneTimeAccountCustomer | _OneTimeAccountCustomer.Ledger = a.Ledger and _OneTimeAccountCustomer.CompanyCode = a.CompanyCode and _OneTimeAccountCustomer.AccountingDocument = a.AccountingDocument and _OneTimeAccountCustomer.FiscalYear = a.FiscalYear |
| [0..1] | I_PT_SAFTGenLdgrOneTmeSupplier | _OneTimeAccountSupplier | _OneTimeAccountSupplier.Ledger = a.Ledger and _OneTimeAccountSupplier.CompanyCode = a.CompanyCode and _OneTimeAccountSupplier.AccountingDocument = a.AccountingDocument and _OneTimeAccountSupplier.FiscalYear = a.FiscalYear |
| [0..1] | I_PT_SAFTGenLedgerSupplier | _AccountSupplier | _AccountSupplier.Ledger = a.Ledger and _AccountSupplier.CompanyCode = a.CompanyCode and _AccountSupplier.AccountingDocument = a.AccountingDocument and _AccountSupplier.FiscalYear = a.FiscalYear |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ISAFTPTGENLDENT | 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.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | SAF-T PT Journal Ledger Entry | view |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | a | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | a | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | a | AccountingDocument | Journal Entry |
| KEY | Ledger | a | Ledger | Ledger |
| JournalEntryType | a | AccountingDocumentType | Journal Entry Type | |
| FiscalPeriod | a | FiscalPeriod | Tax period | |
| TransactionDate | a | DocumentDate | Journal Entry Date | |
| CreatedByUser | a | AccountingDocCreatedByUser | User which created overhead document | |
| PostingDate | a | PostingDate | Posting Date for GR | |
| CustomerCountryendasCustomerCountry | ||||
| SupplierCountryendasSupplierCountry | ||||
| Customer | a | Customer | Sold-to Party | |
| Supplier | a | Supplier | Supplier | |
| IsOneTimeAccount | a | IsOneTimeAccount | One-time acct | |
| SpecialGLCode | a | SpecialGLCode | Special G/L Ind | |
| _CompanyCode | _CompanyCode | |||
| _FiscalYear | _FiscalYear | |||
| _AccountingDocumentType | _AccountingDocumentType | |||
| _Customer | _Customer | |||
| _OneTimeAccountCustomer | _OneTimeAccountCustomer | |||
| _OneTimeAccountSupplier | _OneTimeAccountSupplier | |||
| _AccountSupplier | _AccountSupplier |
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_PT_SAFTGenLedgerEntry.
-- 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: ISAFTPTGENLDENT
CREATE VIEW I_PT_SAFTGenLedgerEntry AS
SELECT
a.CompanyCode AS CompanyCode,
a.FiscalYear AS FiscalYear,
a.AccountingDocument AS AccountingDocument,
a.Ledger AS Ledger,
a.AccountingDocumentType AS JournalEntryType,
a.FiscalPeriod AS FiscalPeriod,
a.DocumentDate AS TransactionDate,
a.AccountingDocCreatedByUser AS CreatedByUser,
a.PostingDate AS PostingDate,
case when MultVatCustomer.CustomerCountry is not initial and a.DelivOfGoodsDestCountry is not initial then a.DelivOfGoodsDestCountry else MultVatCustomer.CustomerCountry end as CustomerCountry AS CustomerCountryendasCustomerCountry,
case when MultVatSupplier.SupplierCountry is not initial and a.DelivOfGoodsDestCountry is not initial then a.DelivOfGoodsDestCountry else MultVatSupplier.SupplierCountry end as SupplierCountry AS SupplierCountryendasSupplierCountry,
a.Customer AS Customer,
a.Supplier AS Supplier,
a.IsOneTimeAccount AS IsOneTimeAccount,
a.SpecialGLCode AS SpecialGLCode
LEFT OUTER JOIN I_PT_SAFTTransactionType AS c ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_PT_SAFTTAXLAND AS MultVatCustomer ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_PT_SAFTTAXLANDSUP AS MultVatSupplier ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_PT_SAFTGenericSettings AS _b ON _b.CompanyCode = a.CompanyCode AND _b.FiscalYearFrom <= a.FiscalYear AND _b.FiscalYearTo >= a.FiscalYear AND _b.SourceLedger = a.Ledger -- association [0..1]
LEFT OUTER JOIN I_PT_SAFTGenLedgerCustomer AS _Customer ON _Customer.Ledger = a.Ledger AND _Customer.AccountingDocument = a.AccountingDocument AND _Customer.CompanyCode = a.CompanyCode AND _Customer.FiscalYear = a.FiscalYear AND _Customer.Customer = a.Customer -- association [0..1]
LEFT OUTER JOIN I_PT_SAFTGenLedgerOneTimeCust AS _OneTimeAccountCustomer ON _OneTimeAccountCustomer.Ledger = a.Ledger AND _OneTimeAccountCustomer.CompanyCode = a.CompanyCode AND _OneTimeAccountCustomer.AccountingDocument = a.AccountingDocument AND _OneTimeAccountCustomer.FiscalYear = a.FiscalYear -- association [0..1]
LEFT OUTER JOIN I_PT_SAFTGenLdgrOneTmeSupplier AS _OneTimeAccountSupplier ON _OneTimeAccountSupplier.Ledger = a.Ledger AND _OneTimeAccountSupplier.CompanyCode = a.CompanyCode AND _OneTimeAccountSupplier.AccountingDocument = a.AccountingDocument AND _OneTimeAccountSupplier.FiscalYear = a.FiscalYear -- association [0..1]
LEFT OUTER JOIN I_PT_SAFTGenLedgerSupplier AS _AccountSupplier ON _AccountSupplier.Ledger = a.Ledger AND _AccountSupplier.CompanyCode = a.CompanyCode AND _AccountSupplier.AccountingDocument = a.AccountingDocument AND _AccountSupplier.FiscalYear = a.FiscalYear -- 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