P_PL_SAFTTAXITEMTOTAL

CDS View

P_PL_SAFTTAXITEMTOTAL is a CDS View in S/4HANA. 1 CDS views read from this table.

CDS Views using this table (1)

ViewTypeJoinVDMDescription
ACR_PL_SAFT_HELPER_ITEM_TOTAL view left_outer SAF-T PL: Helper class for item totals
@AbapCatalog.sqlViewName: 'PPLSAFTTAXITMTOT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@VDM.viewType: #CONSUMPTION
@VDM.private: true
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.dataClass:  #MIXED
@ObjectModel.usageType.serviceQuality: #X
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_PL_SAFTTaxItemTotal
  with parameters
    P_StartDate : datum,
    P_EndDate   : datum
  as select from P_PL_SAFTTaxVatItemTotalAux as a
{

  key CompanyCode,
  key TaxType,

      @Semantics.currencyCode: true
      CompanyCodeCurrency,

      count(*) as NumberOfLines,

      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      sum(TotalAmountInCoCodeCrcy)         as TotalTaxAmountInCoCodeCrcy,
      
      @Semantics.amount.currencyCode: 'CompanyCodeCurrency'
      sum(TotalAmountInCountryCrcy)         as TotalTaxAmountInCountryCrcy
    
}
where
      TaxItemIsIncluded = 'X'
  and TaxReportingDate  between $parameters.P_StartDate and $parameters.P_EndDate
group by
  CompanyCode,
  TaxType,
  CompanyCodeCurrency

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_PL_SAFTTAXVATITEMTOTALAUX"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/