C_KZ_VATRetIncCustomDeclnQuery

DDL: C_KZ_VATRETINCCUSTOMDECLNQUERY SQL: CKZVATRETCSTDECQ Type: view CONSUMPTION Package: GLO_FIN_IS_VAT_KZ_RETURN

Section 3 Query

C_KZ_VATRetIncCustomDeclnQuery is a Consumption CDS View that provides data about "Section 3 Query" in SAP S/4HANA. It reads from 1 data source (C_KZ_VATRetIncCustomDeclnCube) and exposes 16 fields with key fields CompanyCode, FiscalYear, FiscalPeriod, CustomsDeclaration, KZ_VATReturnSection. Part of development package GLO_FIN_IS_VAT_KZ_RETURN.

Data Sources (1)

SourceAliasJoin Type
C_KZ_VATRetIncCustomDeclnCube C_KZ_VATRetIncCustomDeclnCube from

Parameters (2)

NameTypeDefault
P_FiscalYear gjahr
P_FiscalPeriod j_3rf_quarters

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CKZVATRETCSTDECQ view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
VDM.viewType #CONSUMPTION view
Analytics.query true view
Analytics.internalName #LOCAL view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.personalData.blocking #BLOCKED_DATA_INCLUDED view
Metadata.allowExtensions true view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
EndUserText.label Section 3 Query view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY CompanyCode CompanyCode Receiver Company Code
KEY FiscalYear FiscalYear G/L Fiscal Year
KEY FiscalPeriod FiscalPeriod Tax period
KEY CustomsDeclaration CustomsDeclaration Cus. Decl. No.
KEY KZ_VATReturnSection KZ_VATReturnSection VAT Return Section
KEY KZ_VATLineItem KZ_VATLineItem
CustomsDeclarationRegDate CustomsDeclarationRegDate
PaymentDate PaymentDate Payment Date
TaxAmount Tax Amt in Rptg Crcy
PaidAmountInPaytCurrency Payment Amount
PrevPerdsBalTaxAmtInCoCodeCrcy
OpenTotalTaxAmount
Currency Currency Valuation Crcy
StatryRptgEntity StatryRptgEntity Reporting Entity
StatryRptCategory StatryRptCategory Report ID
StatryRptRunID StatryRptRunID Report Run ID

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 C_KZ_VATRetIncCustomDeclnQuery.
-- 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: CKZVATRETCSTDECQ
-- Parameters: P_FiscalYear : gjahr, P_FiscalPeriod : j_3rf_quarters

CREATE VIEW C_KZ_VATRetIncCustomDeclnQuery AS
SELECT
  CompanyCode,
  FiscalYear,
  FiscalPeriod,
  CustomsDeclaration,
  KZ_VATReturnSection,
  KZ_VATLineItem,
  CustomsDeclarationRegDate,
  PaymentDate,
  cast ( TaxAmount as fikz_vat_dmbtr) AS TaxAmount,
  cast ( PaidAmountInPaytCurrency as fikz_pvat_c ) AS PaidAmountInPaytCurrency,
  cast ( PrevPerdsBalTaxAmtInCoCodeCrcy as fikz_pvat_prev_c ) AS PrevPerdsBalTaxAmtInCoCodeCrcy,
  cast ( OpenTotalTaxAmount as fikz_vat_debt_c ) AS OpenTotalTaxAmount,
  Currency,
  StatryRptgEntity,
  StatryRptCategory,
  StatryRptRunID
FROM C_KZ_VATRetIncCustomDeclnCube
;