P_PL_SAFTTAXITEMTOTAL
P_PL_SAFTTAXITEMTOTAL is a CDS View in S/4HANA. 1 CDS views read from this table.
CDS Views using this table (1)
| View | Type | Join | VDM | Description |
|---|---|---|---|---|
| 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