P_PL_SAFTMapTaxCode

DDL: P_PL_SAFTMAPTAXCODE SQL: PPLSAFTMAPTXCD Type: view COMPOSITE

P_PL_SAFTMapTaxCode is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_JournalEntry, I_OperationalAcctgDocItem, P_PL_SAFTINVOICETAXD) and exposes 5 fields with key fields CompanyCode, AccountingDocument, FiscalYear.

Data Sources (3)

SourceAliasJoin Type
I_JournalEntry Entry from
I_OperationalAcctgDocItem Item inner
P_PL_SAFTINVOICETAXD Tax inner

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPLSAFTMAPTXCD view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #X view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode I_JournalEntry CompanyCode
KEY AccountingDocument I_JournalEntry AccountingDocument
KEY FiscalYear I_JournalEntry FiscalYear
AmountInTransactionCurrency
AmountInCompanyCodeCurrency
@AbapCatalog.sqlViewName: 'PPLSAFTMAPTXCD'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #COMPOSITE
@VDM.private: true
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.dataClass:  #MIXED
@ObjectModel.usageType.serviceQuality: #X
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_PL_SAFTMapTaxCode
  as select from I_JournalEntry            as Entry
    inner join   I_OperationalAcctgDocItem as Item on  Item.CompanyCode          =  Entry.CompanyCode
                                                   and Item.AccountingDocument   =  Entry.AccountingDocument
                                                   and Item.FiscalYear           =  Entry.FiscalYear
                                                   and Item.FinancialAccountType <> 'D'
                                                   
    inner join   P_PL_SAFTINVOICETAXD       as Tax  on  Tax.CompanyCode        = Item.CompanyCode
                                                   and Tax.AccountingDocument = Item.AccountingDocument
                                                   and Tax.FiscalYear         = Item.FiscalYear
                                                   and Tax.TaxCode            = Item.TaxCode

{
  key Entry.CompanyCode,
  key Entry.AccountingDocument,
  key Entry.FiscalYear,
      
      sum(AmountInTransactionCurrency) as AmountInTransactionCurrency,
      sum(AmountInCompanyCodeCurrency) as AmountInCompanyCodeCurrency
      
//      Tax.PL_SAFTTaxPercentageCode

}
group by
  Entry.CompanyCode,
  Entry.AccountingDocument,
  Entry.FiscalYear
//  Tax.PL_SAFTTaxPercentageCode