P_KZ_VATRetForeignDocRoundRen

DDL: P_KZ_VATRETFOREIGNDOCROUNDREN SQL: PKZVATRETFORRR Type: view COMPOSITE Package: GLO_FIN_FI_KZ

Round view for section 5 of old VAT return

P_KZ_VATRetForeignDocRoundRen is a Composite CDS View that provides data about "Round view for section 5 of old VAT return" in SAP S/4HANA. It reads from 1 data source (P_KZ_VATRetForeignDocRenew) and exposes 41 fields. Part of development package GLO_FIN_FI_KZ.

Data Sources (1)

SourceAliasJoin Type
P_KZ_VATRetForeignDocRenew P_KZ_VATRetForeignDocRenew from

Parameters (4)

NameTypeDefault
P_VATReturnVersion j_3rvatdversion
P_TaxItemGroupingVersion verstax
P_ReportingPeriodStartDate datum
P_ReportingPeriodEndDate datum

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PKZVATRETFORRR view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.compiler.compareFilter true view

Fields (41)

KeyFieldSource TableSource FieldDescription
CompanyCode CompanyCode Receiver Company Code
AccountingDocument AccountingDocument Journal Entry
FiscalYear FiscalYear G/L Fiscal Year
PostingDate PostingDate Posting Date for GR
TaxReportingDate TaxReportingDate Tax Reporting Date
DocumentDate DocumentDate Journal Entry Date
AccountingDocumentType AccountingDocumentType Journal Entry Type
IsReversal IsReversal Reversal doc.
IsReversed IsReversed Reversed?
OriginalReferenceDocument OriginalReferenceDocument Reference Key
ReferenceDocumentType ReferenceDocumentType Reference Document Type
DocumentReferenceID DocumentReferenceID Reference
BusinessTransactionType BusinessTransactionType Bus.transaction
SenderLogicalSystem SenderLogicalSystem Sender Logical System
CompanyCodeCurrency CompanyCodeCurrency Local Currency
Currency Currency Valuation Crcy
SupplierName SupplierName Supplier Name
Country Country Venue: Ctry/Reg
TaxNumber1 TaxNumber1 VAT Reg. No.
TaxCode TaxCode Tax Code
AccountingDocumentItem AccountingDocumentItem Posting View Item
FiscalPeriod FiscalPeriod Tax period
ControllingArea ControllingArea Controlling Area
Segment Segment Segment number
ProfitCenter ProfitCenter Profit Center
CostCenter CostCenter Cost Center
BusinessArea BusinessArea Business Area
Supplier Supplier Supplier
Customer Customer Sold-to Party
MasterFixedAsset MasterFixedAsset Fixed Asset
FixedAsset FixedAsset Sub-number
AssetClass AssetClass Asset Class
AssignmentReference AssignmentReference Assignment Reference
Plant Plant Valuation Area
InventoryValuationType InventoryValuationType Valuation Type
ValuationArea ValuationArea Valuation Area
Product Product Product Sold
FunctionalArea FunctionalArea Sendr Fctl Area
Material Material Vehicle Model
AccountingDocumentCategory AccountingDocumentCategory Journal Entry Category
KZ_TaxTurnoverCode KZ_TaxTurnoverCode

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_VATRetForeignDocRoundRen.
-- 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: PKZVATRETFORRR
-- Parameters: P_VATReturnVersion : j_3rvatdversion, P_TaxItemGroupingVersion : verstax, P_ReportingPeriodStartDate : datum, P_ReportingPeriodEndDate : datum

CREATE VIEW P_KZ_VATRetForeignDocRoundRen AS
SELECT
  CompanyCode,
  AccountingDocument,
  FiscalYear,
  PostingDate,
  TaxReportingDate,
  DocumentDate,
  AccountingDocumentType,
  IsReversal,
  IsReversed,
  OriginalReferenceDocument,
  ReferenceDocumentType,
  DocumentReferenceID,
  BusinessTransactionType,
  SenderLogicalSystem,
  CompanyCodeCurrency,
  Currency,
  SupplierName,
  Country,
  TaxNumber1,
  TaxCode,
  AccountingDocumentItem,
  FiscalPeriod,
  ControllingArea,
  Segment,
  ProfitCenter,
  CostCenter,
  BusinessArea,
  Supplier,
  Customer,
  MasterFixedAsset,
  FixedAsset,
  AssetClass,
  AssignmentReference,
  Plant,
  InventoryValuationType,
  ValuationArea,
  Product,
  FunctionalArea,
  Material,
  AccountingDocumentCategory,
  KZ_TaxTurnoverCode
FROM P_KZ_VATRetForeignDocRenew
;