C_KZ_VATRetForeignItemQuery
VAT Retrun Foreign documents Query
C_KZ_VATRetForeignItemQuery is a Consumption CDS View that provides data about "VAT Retrun Foreign documents Query" in SAP S/4HANA. It reads from 1 data source (C_KZ_VATRetForeignItemCube) and exposes 85 fields. Part of development package GLO_FIN_IS_VAT_KZ_RETURN.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| C_KZ_VATRetForeignItemCube | C_KZ_VATRetForeignItemCube | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_ReportingPeriodStartDate | datum | |
| P_ReportingPeriodEndDate | datum |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CKZVATFOREIGNQ | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.query | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #PRIVILEGED_ONLY | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| EndUserText.label | VAT Retrun Foreign documents Query | view |
Fields (85)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | CompanyCode | Receiver Company Code | ||
| AccountingDocument | AccountingDocument | Journal Entry | ||
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| KZ_VATLineItem | KZ_VATLineItem | |||
| SupplierName | SupplierName | Supplier Name | ||
| TaxNumber1 | VAT Reg. No. | |||
| TaxNumber3 | ||||
| TaxReportingDate | TaxReportingDate | Tax Reporting Date | ||
| ExternalContractNumber | ExternalContractNumber | |||
| ExternalContractDate | ExternalContractDate | |||
| TaxCode | TaxCode | Tax Code | ||
| KZ_TaxTurnoverCode | KZ_TaxTurnoverCode | |||
| TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | |||
| TaxBaseAmountInTransCrcy | Value-Added Tax | |||
| TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | |||
| TaxAmount | Tax Amt in Rptg Crcy | |||
| PostingDate | PostingDate | Posting Date for GR | ||
| 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 | ||
| AccountingDocumentHeaderText | AccountingDocumentHeaderText | Doc.Header Text | ||
| AccountingDocCreatedByUser | AccountingDocCreatedByUser | User which created overhead document | ||
| Reference1InDocumentHeader | Reference1InDocumentHeader | Reference 1 | ||
| Reference2InDocumentHeader | Reference2InDocumentHeader | Reference 2 | ||
| DocumentItemText | DocumentItemText | Text | ||
| CompanyCodeCurrency | CompanyCodeCurrency | Company Code Currency | ||
| DocumentCurrency | Document Currency | |||
| Currency | Currency | Valuation Crcy | ||
| PaymentRequestAmountInPaytCrcy | PaymentRequestAmountInPaytCrcy | |||
| PaidAmountInPaytCurrency | PaidAmountInPaytCurrency | Payment Amount | ||
| Country | Country | Venue: Ctry/Reg | ||
| CountryThreeDigitISOCode | CountryThreeDigitISOCode | |||
| AccountingDocumentItem | AccountingDocumentItem | Posting View Item | ||
| KZ_VATReturnVersion | KZ_VATReturnVersion | |||
| KZ_VATReturnSectionType | KZ_VATReturnSectionType | |||
| VATReturnItemDescription | VATReturnItemDescription | |||
| ControllingArea | ControllingArea | Controlling Area | ||
| CostCenter | CostCenter | Cost Center | ||
| Segment | Segment | Segment number | ||
| BusinessArea | BusinessArea | Business Area | ||
| Supplier | Supplier | Supplier | ||
| Customer | Customer | Sold-to Party | ||
| BPCustomerName | BPCustomerName | Name of Customer | ||
| BusinessPartnerCountry | BusinessPartnerCountry | BP Ctry/Reg. | ||
| FiscalPeriod | FiscalPeriod | Tax period | ||
| 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 | ||
| StatryRptgEntity | StatryRptgEntity | Reporting Entity | ||
| StatryRptCategory | StatryRptCategory | Report ID | ||
| StatryRptRunID | StatryRptRunID | Report Run ID | ||
| _AccountingDocumentCategory | _AccountingDocumentCategory | |||
| _AccountingDocumentType | _AccountingDocumentType | |||
| _AccountingDocumentTypeText | _AccountingDocumentTypeText | |||
| _BusinessArea | _BusinessArea | |||
| _BusinessTransactionType | _BusinessTransactionType | |||
| _BusinessTransactionTypeText | _BusinessTransactionTypeText | |||
| _CompanyCode | _CompanyCode | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _ControllingArea | _ControllingArea | |||
| _CostCenter | _CostCenter | |||
| _Customer | _Customer | |||
| _FiscalPeriod | _FiscalPeriod | |||
| _FiscalYear | _FiscalYear | |||
| _FunctionalArea | _FunctionalArea | |||
| _InventoryValuationType | _InventoryValuationType | |||
| _Material | _Material | |||
| _Product | _Product | |||
| _ReferenceDocumentType | _ReferenceDocumentType | |||
| _Segment | _Segment | |||
| _Supplier | _Supplier |
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_VATRetForeignItemQuery.
-- 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: CKZVATFOREIGNQ
-- Parameters: P_ReportingPeriodStartDate : datum, P_ReportingPeriodEndDate : datum
CREATE VIEW C_KZ_VATRetForeignItemQuery AS
SELECT
CompanyCode,
AccountingDocument,
FiscalYear,
KZ_VATLineItem,
SupplierName,
cast (TaxNumber1 as fikz_tax_number) AS TaxNumber1,
cast(TaxNumber3 as fikz_bin_vat) AS TaxNumber3,
TaxReportingDate,
ExternalContractNumber,
ExternalContractDate,
TaxCode,
KZ_TaxTurnoverCode,
cast ( TaxBaseAmountInCoCodeCrcy as fikz_taxbaseamountcccrcy ) AS TaxBaseAmountInCoCodeCrcy,
cast( TaxBaseAmountInTransCrcy as fwbas_shl) AS TaxBaseAmountInTransCrcy,
cast ( TaxAmountInCoCodeCrcy as fikz_taxamountcccrcy ) AS TaxAmountInCoCodeCrcy,
cast( TaxAmount as wmwst_shl) AS TaxAmount,
PostingDate,
DocumentDate,
AccountingDocumentType,
IsReversal,
IsReversed,
OriginalReferenceDocument,
ReferenceDocumentType,
DocumentReferenceID,
BusinessTransactionType,
SenderLogicalSystem,
AccountingDocumentHeaderText,
AccountingDocCreatedByUser,
Reference1InDocumentHeader,
Reference2InDocumentHeader,
DocumentItemText,
CompanyCodeCurrency,
cast( DocumentCurrency as /scmtms/doc_currency) AS DocumentCurrency,
Currency,
PaymentRequestAmountInPaytCrcy,
PaidAmountInPaytCurrency,
Country,
CountryThreeDigitISOCode,
AccountingDocumentItem,
KZ_VATReturnVersion,
KZ_VATReturnSectionType,
VATReturnItemDescription,
ControllingArea,
CostCenter,
Segment,
BusinessArea,
Supplier,
Customer,
BPCustomerName,
BusinessPartnerCountry,
FiscalPeriod,
MasterFixedAsset,
FixedAsset,
AssetClass,
AssignmentReference,
Plant,
InventoryValuationType,
ValuationArea,
Product,
FunctionalArea,
Material,
AccountingDocumentCategory,
StatryRptgEntity,
StatryRptCategory,
StatryRptRunID
FROM C_KZ_VATRetForeignItemCube
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA