P_LU_SAFTZeroTaxLine

DDL: P_LU_SAFTZEROTAXLINE SQL: PLUSAFTZEROTAX Type: view COMPOSITE

P_LU_SAFTZeroTaxLine is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_LU_SAFTJournalEntry, I_TaxItem) and exposes 21 fields with key fields CompanyCode, FiscalYear, AccountingDocument, LedgerGLLineItem, Ledger.

Data Sources (2)

SourceAliasJoin Type
I_LU_SAFTJournalEntry JournalLine from
I_TaxItem TaxItem inner

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PLUSAFTZEROTAX 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 (21)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_LU_SAFTJournalEntry CompanyCode
KEY FiscalYear I_LU_SAFTJournalEntry FiscalYear
KEY AccountingDocument I_LU_SAFTJournalEntry AccountingDocument
KEY LedgerGLLineItem I_LU_SAFTJournalEntry LedgerGLLineItem
KEY Ledger I_LU_SAFTJournalEntry Ledger
PostingDate I_LU_SAFTJournalEntry PostingDate
AccountingDocumentType I_LU_SAFTJournalEntry AccountingDocumentType
TaxCalculationProcedure I_LU_SAFTJournalEntry TaxCalculationProcedure
TaxCode I_LU_SAFTJournalEntry TaxCode
DebitCreditCode I_LU_SAFTJournalEntry DebitCreditCode
DocumentItemText I_LU_SAFTJournalEntry DocumentItemText
AccountingDocumentItemType I_LU_SAFTJournalEntry AccountingDocumentItemType
AlternativeGLAccount I_LU_SAFTJournalEntry AlternativeGLAccount
FinancialAccountType I_LU_SAFTJournalEntry FinancialAccountType
TransactionCurrency I_LU_SAFTJournalEntry TransactionCurrency
TaxItem I_TaxItem TaxItem
ActiveGLAccount I_TaxItem GLAccount
CompanyCodeCurrency I_LU_SAFTJournalEntry CompanyCodeCurrency
TaxAmount
AmountInCompanyCodeCurrency I_LU_SAFTJournalEntry AmountInCompanyCodeCurrency
_CompanyCodeCurrency I_LU_SAFTJournalEntry _CompanyCodeCurrency
@AbapCatalog.sqlViewName: 'PLUSAFTZEROTAX'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.private: true
@VDM.viewType: #COMPOSITE
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass:  #MIXED
@ObjectModel.usageType.serviceQuality: #P
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.personalData.blocking : #NOT_REQUIRED
define view P_LU_SAFTZeroTaxLine
  as select from I_LU_SAFTJournalEntry as JournalLine
    inner join   I_TaxItem             as TaxItem on  JournalLine.AccountingDocument = TaxItem.AccountingDocument
                                                  and JournalLine.CompanyCode        = TaxItem.CompanyCode
                                                  and JournalLine.FiscalYear         = TaxItem.FiscalYear
                                                  and JournalLine.TaxCode            = TaxItem.TaxCode
{

  key JournalLine.CompanyCode                    as CompanyCode,
  key JournalLine.FiscalYear                     as FiscalYear,
  key JournalLine.AccountingDocument             as AccountingDocument,
  key JournalLine.LedgerGLLineItem               as LedgerGLLineItem,
  key JournalLine.Ledger                         as Ledger,

      JournalLine.PostingDate,
      JournalLine.AccountingDocumentType,
      JournalLine.TaxCalculationProcedure,
      JournalLine.TaxCode,
      JournalLine.DebitCreditCode,
      JournalLine.DocumentItemText,
      JournalLine.AccountingDocumentItemType,
      JournalLine.AlternativeGLAccount,
      JournalLine.FinancialAccountType,
      JournalLine.TransactionCurrency,
      TaxItem.TaxItem,
      TaxItem.GLAccount                          as ActiveGLAccount,

      @Semantics.currencyCode:true
      JournalLine.CompanyCodeCurrency,

      @DefaultAggregation:#SUM
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      coalesce(TaxItem.TaxAmountInCoCodeCrcy, 0) as TaxAmount,

      JournalLine.AmountInCompanyCodeCurrency,

      JournalLine._CompanyCodeCurrency

}
where
      JournalLine.AccountingDocumentItemType <> 'T'
  and JournalLine.FinancialAccountType       =  'S'
  and JournalLine.TaxCode                    <> ''
  and JournalLine.TransactionTypeDetermination = ' '
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_LU_SAFTJOURNALENTRY",
"I_TAXITEM"
],
"ASSOCIATED":
[
"I_CURRENCY"
],
"BASE":
[
"I_LU_SAFTJOURNALENTRY"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/