C_KZ_VATRetForeignItemCube
VAT Retrun Foreign documents: Cube View
C_KZ_VATRetForeignItemCube is a Consumption CDS View (Cube) that provides data about "VAT Retrun Foreign documents: Cube View" in SAP S/4HANA. It reads from 1 data source (P_KZ_VATRetForeignDoc) and exposes 88 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_KZ_VATRetForeignDoc | P_KZ_VATRetForeignDoc | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_ReportingPeriodStartDate | datum | |
| P_ReportingPeriodEndDate | datum |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CKZVATFOREIGNC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| Analytics.dataCategory | #CUBE | view | |
| Analytics.internalName | #LOCAL | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #CHECK | 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 | VAT Retrun Foreign documents: Cube View | view |
Fields (88)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | CompanyCode | Receiver Company Code | ||
| AccountingDocument | AccountingDocument | Journal Entry | ||
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| TaxBaseAmountInCoCodeCrcy | TxBaseAmt CoCodeCrcy | |||
| TaxBaseAmountInTransCrcy | TaxBaseAmountInTransCrcy | Value-Added Tax | ||
| TaxAmountInCoCodeCrcy | Tax Amount in Company Code Currency | |||
| TaxAmount | TaxAmount | Tax Amt in Rptg Crcy | ||
| 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 | ||
| 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 | Local Currency | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| Currency | Currency | Valuation Crcy | ||
| PaymentRequestAmountInPaytCrcy | TxBaseAmt CoCodeCrcy | |||
| PaidAmountInPaytCurrency | ||||
| SupplierName | SupplierName | Supplier Name | ||
| Country | Venue: Ctry/Reg | |||
| CountryThreeDigitISOCode | CountryThreeDigitISOCode | |||
| TaxNumber1 | TaxNumber1 | VAT Reg. No. | ||
| TaxNumber3 | TaxNumber3 | |||
| StatryRptgEntity | StatryRptgEntity | Reporting Entity | ||
| StatryRptCategory | StatryRptCategory | Report ID | ||
| StatryRptRunID | StatryRptRunID | Report Run ID | ||
| AccountingDocumentItem | AccountingDocumentItem | Posting View Item | ||
| KZ_VATReturnVersion | KZ_VATReturnVersion | |||
| KZ_VATReturnSectionType | KZ_VATReturnSectionType | |||
| KZ_VATLineItem | KZ_LineItem | |||
| VATReturnItemDescription | Well Code Des. | |||
| ControllingArea | ControllingArea | Controlling Area | ||
| CostCenter | CostCenter | Cost Center | ||
| Segment | Segment | Segment number | ||
| BusinessArea | BusinessArea | Business Area | ||
| Supplier | Supplier | Supplier | ||
| SupplierCountry | _Supplier | Country | Venue: Ctry/Reg | |
| Customer | Customer | Sold-to Party | ||
| BPCustomerName | _Customer | BPCustomerName | Name of Customer | |
| CustomerCountry | _Customer | Country | Venue: Ctry/Reg | |
| CountryelseendasBusinessPartnerCountry | ||||
| 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 | ||
| TaxCode | TaxCode | Tax Code | ||
| KZ_TaxTurnoverCode | KZ_TaxTurnoverCode | |||
| ExternalContractNumber | _Contract | ExternalContractNumber | ||
| ExternalContractDate | _Contract | ExternalContractDate | ||
| _AccountingDocumentCategory | _AccountingDocumentCategory | |||
| _AccountingDocumentType | _AccountingDocumentType | |||
| _BusinessArea | _BusinessArea | |||
| _BusinessTransactionType | _BusinessTransactionType | |||
| _CompanyCodeCurrency | _CompanyCodeCurrency | |||
| _ControllingArea | _ControllingArea | |||
| _CostCenter | _CostCenter | |||
| _Customer | _Customer | |||
| _FiscalYear | _FiscalYear | |||
| _FunctionalArea | _FunctionalArea | |||
| _InventoryValuationType | _InventoryValuationType | |||
| _Material | _Material | |||
| _Product | _Product | |||
| _ReferenceDocumentType | _ReferenceDocumentType | |||
| _Segment | _Segment | |||
| _Supplier | _Supplier | |||
| _FiscalPeriod | _FiscalPeriod | |||
| _CompanyCode | _CompanyCode | |||
| _AccountingDocumentTypeText | _AccountingDocumentTypeText | |||
| _BusinessTransactionTypeText | _BusinessTransactionTypeText | |||
| _TransactionCurrency | _TransactionCurrency |
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_VATRetForeignItemCube.
-- 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: CKZVATFOREIGNC
-- Parameters: P_ReportingPeriodStartDate : datum, P_ReportingPeriodEndDate : datum
CREATE VIEW C_KZ_VATRetForeignItemCube AS
SELECT
CompanyCode,
AccountingDocument,
FiscalYear,
cast( TaxBaseAmountInCoCodeCrcy as fikz_taxbaseamountcccrcy) AS TaxBaseAmountInCoCodeCrcy,
TaxBaseAmountInTransCrcy,
cast( TaxAmountInCoCodeCrcy as fikz_taxamountcccrcy) AS TaxAmountInCoCodeCrcy,
TaxAmount,
PostingDate,
TaxReportingDate,
DocumentDate,
AccountingDocumentType,
IsReversal,
IsReversed,
OriginalReferenceDocument,
ReferenceDocumentType,
DocumentReferenceID,
BusinessTransactionType,
SenderLogicalSystem,
AccountingDocumentHeaderText,
AccountingDocCreatedByUser,
Reference1InDocumentHeader,
Reference2InDocumentHeader,
DocumentItemText,
CompanyCodeCurrency,
DocumentCurrency,
Currency,
cast ( VATToBePaid as fikz_vat_to_be_paid) AS PaymentRequestAmountInPaytCrcy,
cast ( PaidVAT as fikz_pvat_c) AS PaidAmountInPaytCurrency,
SupplierName,
cast (Country as fikz_country_code) AS Country,
CountryThreeDigitISOCode,
TaxNumber1,
TaxNumber3,
StatryRptgEntity,
StatryRptCategory,
StatryRptRunID,
AccountingDocumentItem,
KZ_VATReturnVersion,
KZ_VATReturnSectionType,
KZ_LineItem AS KZ_VATLineItem,
cast ( Description as fikz_vat_description) AS VATReturnItemDescription,
ControllingArea,
CostCenter,
Segment,
BusinessArea,
Supplier,
_Supplier.Country AS SupplierCountry,
Customer,
_Customer.BPCustomerName AS BPCustomerName,
_Customer.Country AS CustomerCountry,
case when _Customer.Country is not initial then _Customer.Country when _Supplier.Country is not initial then _Supplier.Country else '' end as BusinessPartnerCountry AS CountryelseendasBusinessPartnerCountry,
FiscalPeriod,
MasterFixedAsset,
FixedAsset,
AssetClass,
AssignmentReference,
Plant,
InventoryValuationType,
ValuationArea,
Product,
FunctionalArea,
Material,
AccountingDocumentCategory,
TaxCode,
KZ_TaxTurnoverCode,
_Contract.ExternalContractNumber AS ExternalContractNumber,
_Contract.ExternalContractDate AS ExternalContractDate
FROM P_KZ_VATRetForeignDoc
;
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