P_RU_DSVATReporting4Jrnl
VAT Reporting: Restriction by Original/Correction (Journal)
P_RU_DSVATReporting4Jrnl is a Consumption CDS View that provides data about "VAT Reporting: Restriction by Original/Correction (Journal)" in SAP S/4HANA. It reads from 2 data sources (P_RU_CFinVATCorrectionDocument, P_RU_DSVATReporting3Jrnl) and exposes 20 fields. Part of development package GLO_FIN_IS_VAT_RU.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_RU_CFinVATCorrectionDocument | CorrDoc | left_outer |
| P_RU_DSVATReporting3Jrnl | VatReporting | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | PRUDSVATRPTG4J | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (20)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | P_RU_DSVATReporting3Jrnl | CompanyCode | Receiver Company Code | |
| AccountingDocument | P_RU_DSVATReporting3Jrnl | AccountingDocument | Journal Entry | |
| FiscalYear | P_RU_DSVATReporting3Jrnl | FiscalYear | G/L Fiscal Year | |
| PostingDate | P_RU_DSVATReporting3Jrnl | PostingDate | Posting Date for GR | |
| TaxReportingDate | P_RU_DSVATReporting3Jrnl | TaxReportingDate | Tax Reporting Date | |
| IsReversal | P_RU_DSVATReporting3Jrnl | IsReversal | Reversal doc. | |
| IsReversed | P_RU_DSVATReporting3Jrnl | IsReversed | Reversed? | |
| ReverseDocument | P_RU_DSVATReporting3Jrnl | ReverseDocument | Reversed With | |
| ReverseDocumentFiscalYear | P_RU_DSVATReporting3Jrnl | ReverseDocumentFiscalYear | Year | |
| TaxItem | P_RU_DSVATReporting3Jrnl | TaxItem | Tax Item | |
| TaxCode | P_RU_DSVATReporting3Jrnl | TaxCode | Tax Code | |
| RU_VATReturnVersion | P_RU_DSVATReporting3Jrnl | RU_VATReturnVersion | VAT Return Version | |
| RU_VATReturnSectionType | P_RU_DSVATReporting3Jrnl | RU_VATReturnSectionType | Section Type | |
| RU_VATReturnLine | P_RU_DSVATReporting3Jrnl | RU_VATReturnLine | Line | |
| RU_VATSubScenario | P_RU_DSVATReporting3Jrnl | RU_VATSubScenario | Subscenario | |
| RU_VATScenario | P_RU_DSVATReporting3Jrnl | RU_VATScenario | VAT Scenario | |
| RU_SourceDocumentType | P_RU_DSVATReporting3Jrnl | RU_SourceDocumentType | ||
| IsCorrectionInvoice | P_RU_DSVATReporting3Jrnl | IsCorrectionInvoice | ||
| OriginalDocument | P_RU_DSVATReporting3Jrnl | OriginalDocument | Original Document | |
| OriginalDocumentYear | P_RU_DSVATReporting3Jrnl | OriginalDocumentYear | Orig. Doc. Year |
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_RU_DSVATReporting4Jrnl.
-- 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: PRUDSVATRPTG4J
CREATE VIEW P_RU_DSVATReporting4Jrnl AS
SELECT
VatReporting.CompanyCode AS CompanyCode,
VatReporting.AccountingDocument AS AccountingDocument,
VatReporting.FiscalYear AS FiscalYear,
VatReporting.PostingDate AS PostingDate,
VatReporting.TaxReportingDate AS TaxReportingDate,
VatReporting.IsReversal AS IsReversal,
VatReporting.IsReversed AS IsReversed,
VatReporting.ReverseDocument AS ReverseDocument,
VatReporting.ReverseDocumentFiscalYear AS ReverseDocumentFiscalYear,
VatReporting.TaxItem AS TaxItem,
VatReporting.TaxCode AS TaxCode,
VatReporting.RU_VATReturnVersion AS RU_VATReturnVersion,
VatReporting.RU_VATReturnSectionType AS RU_VATReturnSectionType,
VatReporting.RU_VATReturnLine AS RU_VATReturnLine,
VatReporting.RU_VATSubScenario AS RU_VATSubScenario,
VatReporting.RU_VATScenario AS RU_VATScenario,
VatReporting.RU_SourceDocumentType AS RU_SourceDocumentType,
VatReporting.IsCorrectionInvoice AS IsCorrectionInvoice,
VatReporting.OriginalDocument AS OriginalDocument,
VatReporting.OriginalDocumentYear AS OriginalDocumentYear
FROM P_RU_DSVATReporting3Jrnl AS VatReporting
LEFT OUTER JOIN P_RU_CFinVATCorrectionDocument AS CorrDoc ON /* join condition not captured in parsed metadata */
;
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