P_KZ_VATRetCdecTotals

DDL: P_KZ_VATRETCDECTOTALS SQL: PKZVATRETCDECTOT Type: view COMPOSITE

P_KZ_VATRetCdecTotals is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_KZ_VATRetCdec) and exposes 9 fields with key fields StatryRptgEntity, StatryRptCategory, StatryRptRunID.

Data Sources (1)

SourceAliasJoin Type
P_KZ_VATRetCdec P_KZ_VATRetCdec from

Parameters (2)

NameTypeDefault
P_FiscalYear gjahr
P_FiscalPeriod j_3rf_quarters

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PKZVATRETCDECTOT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #MASTER view
VDM.private true view
VDM.viewType #COMPOSITE view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY StatryRptgEntity StatryRptgEntity Reporting Entity
KEY StatryRptCategory StatryRptCategory Report ID
KEY StatryRptRunID StatryRptRunID Report Run ID
LineItem
LocalVATAmount
PaidVATAmount
PaidVATAmountPrev
VatDebt
Currency Currency Valuation Crcy

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_KZ_VATRetCdecTotals.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PKZVATRETCDECTOT
-- Parameters: P_FiscalYear : gjahr, P_FiscalPeriod : j_3rf_quarters

CREATE VIEW P_KZ_VATRetCdecTotals AS
SELECT
  StatryRptgEntity,
  StatryRptCategory,
  StatryRptRunID,
  '1' AS LineItem,
  sum(LocalVATAmount) AS LocalVATAmount,
  sum(PaidVATAmount) AS PaidVATAmount,
  sum(PaidVATAmountPrev) AS PaidVATAmountPrev,
  sum(VatDebt) AS VatDebt,
  Currency
FROM P_KZ_VATRetCdec
;