P_DefTaxTransfer10

DDL: P_DEFTAXTRANSFER10 SQL: PDEFTAXTRANSFE10 Type: view COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
I_JournalEntry I_JournalEntry from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PDEFTAXTRANSFE10 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 (9)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_JournalEntry CompanyCode
KEY AccountingDocument I_JournalEntry AccountingDocument
KEY FiscalYear I_JournalEntry FiscalYear
DocumentReferenceIDLength
DocumentHeaderTextLength
InvoiceNumber
InvoiceFiscalYear
InvoiceNumberText
InvoiceFiscalYearText
@AbapCatalog.sqlViewName: 'PDEFTAXTRANSFE10'
@AbapCatalog.compiler.compareFilter: true
@VDM.private: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.viewType: #COMPOSITE
define view P_DefTaxTransfer10 as select from I_JournalEntry 
   {
   key I_JournalEntry.CompanyCode as CompanyCode,
   key I_JournalEntry.AccountingDocument,
   key I_JournalEntry.FiscalYear,
   
   length( DocumentReferenceID ) as DocumentReferenceIDLength,
   length( AccountingDocumentHeaderText ) as DocumentHeaderTextLength,
   
   substring( I_JournalEntry.DocumentReferenceID, 1, 10 ) as InvoiceNumber,
   concat( '20', substring( I_JournalEntry.DocumentReferenceID, 11, 2 ) ) as InvoiceFiscalYear,

   substring( I_JournalEntry.AccountingDocumentHeaderText, 1, 10 ) as InvoiceNumberText,
   concat( '20', substring( I_JournalEntry.AccountingDocumentHeaderText, 11, 2 ) ) as InvoiceFiscalYearText
      
} where I_JournalEntry.DocumentReferenceID != '' or I_JournalEntry.AccountingDocumentHeaderText != ''
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_JOURNALENTRY"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/