P_DefTaxTransfer1

DDL: P_DEFTAXTRANSFER1 SQL: PDEFTAXTRANSFER1 Type: view COMPOSITE

P_DefTaxTransfer1 is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_JournalEntry) and exposes 7 fields with key fields CompanyCode, AccountingDocument, FiscalYear.

Data Sources (1)

SourceAliasJoin Type
I_JournalEntry I_JournalEntry from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PDEFTAXTRANSFER1 view
AbapCatalog.compiler.compareFilter true view
VDM.private true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view

Fields (7)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_JournalEntry CompanyCode Receiver Company Code
KEY AccountingDocument I_JournalEntry AccountingDocument Journal Entry
KEY FiscalYear I_JournalEntry FiscalYear G/L Fiscal Year
DocumentReferenceIDLength
InvoiceNumber
InvoiceFiscalYear
_Invoice _Invoice

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_DefTaxTransfer1.
-- 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: PDEFTAXTRANSFER1

CREATE VIEW P_DefTaxTransfer1 AS
SELECT
  I_JournalEntry.CompanyCode AS CompanyCode,
  I_JournalEntry.AccountingDocument AS AccountingDocument,
  I_JournalEntry.FiscalYear AS FiscalYear,
  length( DocumentReferenceID ) AS DocumentReferenceIDLength,
  substring( I_JournalEntry.DocumentReferenceID, 1, 10 ) AS InvoiceNumber,
  concat( '20', substring( I_JournalEntry.DocumentReferenceID, 11, 2 ) ) AS InvoiceFiscalYear
FROM I_JournalEntry
;