P_LU_SAFTJournalTax
Journal Entries Relevant for Tax
P_LU_SAFTJournalTax is a Composite CDS View that provides data about "Journal Entries Relevant for Tax" in SAP S/4HANA. It reads from 1 data source (P_LU_SAFTDownPaymentDocOnly) and exposes 49 fields with key fields CompanyCode, FiscalYear, AccountingDocument, Ledger, LedgerGLLineItem. Part of development package GLO_FIN_IS_SAFT_LU.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_LU_SAFTDownPaymentDocOnly | SpGLTax | inner |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PLUSAFTJNLTAX | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #P | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view |
Fields (49)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | JournalEntry | CompanyCode | Receiver Company Code |
| KEY | FiscalYear | JournalEntry | FiscalYear | G/L Fiscal Year |
| KEY | AccountingDocument | JournalEntry | AccountingDocument | Journal Entry |
| KEY | Ledger | JournalEntry | Ledger | Ledger |
| KEY | LedgerGLLineItem | JournalEntry | LedgerGLLineItem | Journal Entry Item |
| AccountingDocumentItem | JournalEntry | AccountingDocumentItem | Posting View Item | |
| DocumentTransaction | JournalEntry | DocumentTransaction | Transaction ID | |
| AccountingDocumentType | JournalEntry | AccountingDocumentType | Journal Entry Type | |
| DocumentDate | JournalEntry | DocumentDate | Journal Entry Date | |
| PostingDate | JournalEntry | PostingDate | Posting Date for GR | |
| FiscalPeriod | JournalEntry | FiscalPeriod | Tax period | |
| AccountingDocumentCategory | JournalEntry | AccountingDocumentCategory | Journal Entry Category | |
| AccountingDocCreatedByUser | JournalEntry | AccountingDocCreatedByUser | User which created overhead document | |
| AccountingDocumentCreationDate | JournalEntry | AccountingDocumentCreationDate | Journal Entry Date | |
| ExchangeRate | JournalEntry | ExchangeRate | Exchange rate | |
| Customer | JournalEntry | Customer | Sold-to Party | |
| Supplier | JournalEntry | Supplier | Supplier | |
| FinancialAccountType | JournalEntry | FinancialAccountType | Fin. Account Type | |
| ChartOfAccounts | JournalEntry | ChartOfAccounts | Node Class | |
| GLAccount | JournalEntry | GLAccount | General Ledger | |
| SpecialGLCode | JournalEntry | SpecialGLCode | Special G/L Ind | |
| TaxCode | JournalEntry | TaxCode | Tax Code | |
| TaxCalculationProcedure | JournalEntry | TaxCalculationProcedure | Tax Procedure | |
| DocumentItemText | JournalEntry | DocumentItemText | Text | |
| DebitCreditCode | JournalEntry | DebitCreditCode | Single-Character Flag | |
| IsReversal | JournalEntry | IsReversal | Reversal doc. | |
| Quantity | JournalEntry | Quantity | Value | |
| CompanyCodeCurrency | JournalEntry | CompanyCodeCurrency | Local Currency | |
| TransactionCurrency | JournalEntry | TransactionCurrency | Transaction Currency | |
| AmountInCompanyCodeCurrency | JournalEntry | AmountInCompanyCodeCurrency | Local Crcy Amt | |
| AmountInTransactionCurrency | JournalEntry | AmountInTransactionCurrency | Pt Crcy Amt | |
| AccountingDocumentItemType | JournalEntry | AccountingDocumentItemType | Line Item ID | |
| VATRegistration | JournalEntry | VATRegistration | VAT Registration No. | |
| CompanyCodeCountry | JournalEntry | CompanyCodeCountry | Reporting Ctry/Reg. | |
| DelivOfGoodsDestCountry | JournalEntry | DelivOfGoodsDestCountry | Dest. C/R | |
| TransactionTypeDetermination | JournalEntry | TransactionTypeDetermination | Transaction Key | |
| CAIsDownPaymentRequest | ||||
| _CompanyCode | JournalEntry | _CompanyCode | ||
| _FiscalYear | JournalEntry | _FiscalYear | ||
| _AccountingDocumentType | JournalEntry | _AccountingDocumentType | ||
| _AccountingDocumentCategory | JournalEntry | _AccountingDocumentCategory | ||
| _AccountingDocumentTypeText | JournalEntry | _AccountingDocumentTypeText | ||
| _Ledger | JournalEntry | _Ledger | ||
| _ChartOfAccounts | JournalEntry | _ChartOfAccounts | ||
| _DebitCreditCode | JournalEntry | _DebitCreditCode | ||
| _CompanyCodeCurrency | JournalEntry | _CompanyCodeCurrency | ||
| _TransactionCurrency | JournalEntry | _TransactionCurrency | ||
| _Supplier | JournalEntry | _Supplier | ||
| _Customer | JournalEntry | _Customer |
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 P_LU_SAFTJournalTax.
-- 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: PLUSAFTJNLTAX
CREATE VIEW P_LU_SAFTJournalTax AS
SELECT
JournalEntry.CompanyCode AS CompanyCode,
JournalEntry.FiscalYear AS FiscalYear,
JournalEntry.AccountingDocument AS AccountingDocument,
JournalEntry.Ledger AS Ledger,
JournalEntry.LedgerGLLineItem AS LedgerGLLineItem,
JournalEntry.AccountingDocumentItem AS AccountingDocumentItem,
JournalEntry.DocumentTransaction AS DocumentTransaction,
JournalEntry.AccountingDocumentType AS AccountingDocumentType,
JournalEntry.DocumentDate AS DocumentDate,
JournalEntry.PostingDate AS PostingDate,
JournalEntry.FiscalPeriod AS FiscalPeriod,
JournalEntry.AccountingDocumentCategory AS AccountingDocumentCategory,
JournalEntry.AccountingDocCreatedByUser AS AccountingDocCreatedByUser,
JournalEntry.AccountingDocumentCreationDate AS AccountingDocumentCreationDate,
JournalEntry.ExchangeRate AS ExchangeRate,
JournalEntry.Customer AS Customer,
JournalEntry.Supplier AS Supplier,
JournalEntry.FinancialAccountType AS FinancialAccountType,
JournalEntry.ChartOfAccounts AS ChartOfAccounts,
JournalEntry.GLAccount AS GLAccount,
JournalEntry.SpecialGLCode AS SpecialGLCode,
JournalEntry.TaxCode AS TaxCode,
JournalEntry.TaxCalculationProcedure AS TaxCalculationProcedure,
JournalEntry.DocumentItemText AS DocumentItemText,
JournalEntry.DebitCreditCode AS DebitCreditCode,
JournalEntry.IsReversal AS IsReversal,
JournalEntry.Quantity AS Quantity,
JournalEntry.CompanyCodeCurrency AS CompanyCodeCurrency,
JournalEntry.TransactionCurrency AS TransactionCurrency,
JournalEntry.AmountInCompanyCodeCurrency AS AmountInCompanyCodeCurrency,
JournalEntry.AmountInTransactionCurrency AS AmountInTransactionCurrency,
JournalEntry.AccountingDocumentItemType AS AccountingDocumentItemType,
JournalEntry.VATRegistration AS VATRegistration,
JournalEntry.CompanyCodeCountry AS CompanyCodeCountry,
JournalEntry.DelivOfGoodsDestCountry AS DelivOfGoodsDestCountry,
JournalEntry.TransactionTypeDetermination AS TransactionTypeDetermination,
coalesce(SpGLTax.CAIsDownPaymentRequest, ' ') AS CAIsDownPaymentRequest,
JournalEntry._CompanyCode AS _CompanyCode,
JournalEntry._FiscalYear AS _FiscalYear,
JournalEntry._AccountingDocumentType AS _AccountingDocumentType,
JournalEntry._AccountingDocumentCategory AS _AccountingDocumentCategory,
JournalEntry._AccountingDocumentTypeText AS _AccountingDocumentTypeText,
JournalEntry._Ledger AS _Ledger,
JournalEntry._ChartOfAccounts AS _ChartOfAccounts,
JournalEntry._DebitCreditCode AS _DebitCreditCode,
JournalEntry._CompanyCodeCurrency AS _CompanyCodeCurrency,
JournalEntry._TransactionCurrency AS _TransactionCurrency,
JournalEntry._Supplier AS _Supplier,
JournalEntry._Customer AS _Customer
INNER JOIN P_LU_SAFTDownPaymentDocOnly AS SpGLTax ON /* join condition not captured in parsed metadata */
;
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