P_KZ_VATRetForeignDocRound
P_KZ_VATRetForeignDocRound is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (P_KZ_VATRetForeignDoc) and exposes 75 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 (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PKZVATRETFOREIGR | 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 (75)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | CompanyCode | Receiver Company Code | ||
| AccountingDocument | AccountingDocument | Journal Entry | ||
| FiscalYear | FiscalYear | G/L Fiscal Year | ||
| TaxBaseAmountInCoCodeCrcy | ||||
| TaxAmountInCoCodeCrcy | ||||
| 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 | ||
| DocumentCurrency | DocumentCurrency | Document Currency | ||
| Currency | Currency | Valuation Crcy | ||
| VATToBePaid | ||||
| PaidVAT | ||||
| SupplierName | SupplierName | Supplier Name | ||
| Country | Country | Venue: Ctry/Reg | ||
| TaxNumber1 | TaxNumber1 | VAT Reg. No. | ||
| TaxCode | TaxCode | Tax Code | ||
| StatryRptgEntity | StatryRptgEntity | Reporting Entity | ||
| StatryRptCategory | StatryRptCategory | Report ID | ||
| StatryRptRunID | StatryRptRunID | Report Run ID | ||
| AccountingDocumentItem | AccountingDocumentItem | Posting View Item | ||
| KZ_VATReturnSectionType | KZ_VATReturnSectionType | |||
| KZ_LineItem | KZ_LineItem | |||
| Description | Description | Well Code Des. | ||
| 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 | ||
| KZ_VATReturnVersion | KZ_VATReturnVersion | |||
| AccountingDocumentCategory | AccountingDocumentCategory | Journal Entry Category | ||
| KZ_TaxTurnoverCode | KZ_TaxTurnoverCode | |||
| _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 | |||
| _ProfitCenter | _ProfitCenter | |||
| _ReferenceDocumentType | _ReferenceDocumentType | |||
| _Segment | _Segment | |||
| _Supplier | _Supplier | |||
| _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 P_KZ_VATRetForeignDocRound.
-- 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: PKZVATRETFOREIGR
-- Parameters: P_ReportingPeriodStartDate : datum, P_ReportingPeriodEndDate : datum
CREATE VIEW P_KZ_VATRetForeignDocRound AS
SELECT
CompanyCode,
AccountingDocument,
FiscalYear,
round( TaxBaseAmountInCoCodeCrcy, 0) AS TaxBaseAmountInCoCodeCrcy,
round( TaxAmountInCoCodeCrcy,0 ) AS TaxAmountInCoCodeCrcy,
PostingDate,
TaxReportingDate,
DocumentDate,
AccountingDocumentType,
IsReversal,
IsReversed,
OriginalReferenceDocument,
ReferenceDocumentType,
DocumentReferenceID,
BusinessTransactionType,
SenderLogicalSystem,
CompanyCodeCurrency,
DocumentCurrency,
Currency,
round ( VATToBePaid ,0 ) AS VATToBePaid,
round ( PaidVAT,0) AS PaidVAT,
SupplierName,
Country,
TaxNumber1,
TaxCode,
StatryRptgEntity,
StatryRptCategory,
StatryRptRunID,
AccountingDocumentItem,
KZ_VATReturnSectionType,
KZ_LineItem,
Description,
FiscalPeriod,
ControllingArea,
Segment,
ProfitCenter,
CostCenter,
BusinessArea,
Supplier,
Customer,
MasterFixedAsset,
FixedAsset,
AssetClass,
AssignmentReference,
Plant,
InventoryValuationType,
ValuationArea,
Product,
FunctionalArea,
Material,
KZ_VATReturnVersion,
AccountingDocumentCategory,
KZ_TaxTurnoverCode
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