P_RU_VATReporting
P_RU_VATReporting is a Consumption CDS View in SAP S/4HANA. It reads from 1 data source (P_RU_VATReporting1) and exposes 56 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_RU_VATReporting1 | VatReporting | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | PRUVATRPTG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (56)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| CompanyCode | P_RU_VATReporting1 | CompanyCode | Receiver Company Code | |
| AccountingDocument | P_RU_VATReporting1 | AccountingDocument | Journal Entry | |
| FiscalYear | P_RU_VATReporting1 | FiscalYear | G/L Fiscal Year | |
| TaxItem | P_RU_VATReporting1 | TaxItem | Tax Item | |
| PostingDate | P_RU_VATReporting1 | PostingDate | Posting Date for GR | |
| TaxReportingDate | P_RU_VATReporting1 | TaxReportingDate | Tax Reporting Date | |
| DocumentDate | P_RU_VATReporting1 | DocumentDate | Journal Entry Date | |
| AccountingDocumentType | P_RU_VATReporting1 | AccountingDocumentType | Journal Entry Type | |
| IsReversal | P_RU_VATReporting1 | IsReversal | Reversal doc. | |
| IsReversed | P_RU_VATReporting1 | IsReversed | Reversed? | |
| OriginalReferenceDocument | P_RU_VATReporting1 | OriginalReferenceDocument | Reference Key | |
| ReferenceDocumentType | P_RU_VATReporting1 | ReferenceDocumentType | Reference Document Type | |
| DocumentReferenceID | P_RU_VATReporting1 | DocumentReferenceID | Reference | |
| BusinessTransactionType | P_RU_VATReporting1 | BusinessTransactionType | Bus.transaction | |
| SenderLogicalSystem | P_RU_VATReporting1 | SenderLogicalSystem | Sender Logical System | |
| CompanyCodeCurrency | P_RU_VATReporting1 | CompanyCodeCurrency | Local Currency | |
| Currency | P_RU_VATReporting1 | Currency | Valuation Crcy | |
| TaxCode | P_RU_VATReporting1 | TaxCode | Tax Code | |
| TaxRate | P_RU_VATReporting1 | TaxRate | Tax Rate | |
| AmountInCompanyCodeCurrency | ||||
| TaxBaseAmountInCoCodeCrcy | ||||
| TaxAmountInCoCodeCrcy | ||||
| AmountInTransactionCurrency | ||||
| TaxBaseAmountInTransCrcy | ||||
| TaxAmount | ||||
| DebitCreditCode | P_RU_VATReporting1 | DebitCreditCode | Single-Character Flag | |
| TransactionTypeDetermination | P_RU_VATReporting1 | TransactionTypeDetermination | Transaction Key | |
| RU_VATReturnVersion | P_RU_VATReporting1 | RU_VATReturnVersion | VAT Return Version | |
| RU_VATReturnSectionType | P_RU_VATReporting1 | RU_VATReturnSectionType | Section Type | |
| RU_VATReturnSection | P_RU_VATReporting1 | RU_VATReturnSection | VAT Return Section | |
| RU_VATReturnLine | P_RU_VATReporting1 | RU_VATReturnLine | Line | |
| RU_VATSubScenarioVersion | P_RU_VATReporting1 | RU_VATSubScenarioVersion | Subscenario Version | |
| RU_VATSubScenario | P_RU_VATReporting1 | RU_VATSubScenario | Subscenario | |
| RU_VATScenario | P_RU_VATReporting1 | RU_VATScenario | VAT Scenario | |
| RU_TotalAmountCalcType | P_RU_VATReporting1 | RU_TotalAmountCalcType | ||
| RU_TaxBaseAmountCalcType | P_RU_VATReporting1 | RU_TaxBaseAmountCalcType | ||
| RU_TaxAmountCalcType | P_RU_VATReporting1 | RU_TaxAmountCalcType | ||
| SignIsInverted | P_RU_VATReporting1 | SignIsInverted | ||
| BusinessPartnerType | P_RU_VATReporting1 | BusinessPartnerType | Undefined range (can be used for patch levels) | |
| AgentType | P_RU_VATReporting1 | AgentType | ||
| PaymentOrderOutputType | P_RU_VATReporting1 | PaymentOrderOutputType | ||
| ImprtCstmsDeclnIsRead | P_RU_VATReporting1 | ImprtCstmsDeclnIsRead | ||
| MatlRcptDateIsRead | P_RU_VATReporting1 | MatlRcptDateIsRead | ||
| RU_CustomerOutputType | P_RU_VATReporting1 | RU_CustomerOutputType | ||
| RU_SupplierAgentOutputType | P_RU_VATReporting1 | RU_SupplierAgentOutputType | ||
| RU_SupplierOutputType | P_RU_VATReporting1 | RU_SupplierOutputType | ||
| RU_SubagentOutputType | P_RU_VATReporting1 | RU_SubagentOutputType | ||
| SalesDealType | P_RU_VATReporting1 | SalesDealType | Deal Type | |
| RU_OrgOperationType | P_RU_VATReporting1 | RU_OrgOperationType | ||
| RU_PersonOperationType | P_RU_VATReporting1 | RU_PersonOperationType | ||
| SourceDocument | P_RU_VATReporting1 | SourceDocument | Document | |
| SourceDocumentFiscalYear | P_RU_VATReporting1 | SourceDocumentFiscalYear | ||
| RevisionNumber | P_RU_VATReporting1 | RevisionNumber | Revision Number | |
| StatryRptgEntity | P_RU_VATReporting1 | StatryRptgEntity | Reporting Entity | |
| StatryRptCategory | P_RU_VATReporting1 | StatryRptCategory | Report ID | |
| StatryRptRunID | P_RU_VATReporting1 | StatryRptRunID | Report Run ID |
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_VATReporting.
-- 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: PRUVATRPTG
CREATE VIEW P_RU_VATReporting AS
SELECT
VatReporting.CompanyCode AS CompanyCode,
VatReporting.AccountingDocument AS AccountingDocument,
VatReporting.FiscalYear AS FiscalYear,
VatReporting.TaxItem AS TaxItem,
VatReporting.PostingDate AS PostingDate,
VatReporting.TaxReportingDate AS TaxReportingDate,
VatReporting.DocumentDate AS DocumentDate,
VatReporting.AccountingDocumentType AS AccountingDocumentType,
VatReporting.IsReversal AS IsReversal,
VatReporting.IsReversed AS IsReversed,
VatReporting.OriginalReferenceDocument AS OriginalReferenceDocument,
VatReporting.ReferenceDocumentType AS ReferenceDocumentType,
VatReporting.DocumentReferenceID AS DocumentReferenceID,
VatReporting.BusinessTransactionType AS BusinessTransactionType,
VatReporting.SenderLogicalSystem AS SenderLogicalSystem,
VatReporting.CompanyCodeCurrency AS CompanyCodeCurrency,
VatReporting.Currency AS Currency,
VatReporting.TaxCode AS TaxCode,
VatReporting.TaxRate AS TaxRate,
coalesce( VatReporting.AmountInCompanyCodeCurrencyTot, VatReporting.AmountInCompanyCodeCurrency ) AS AmountInCompanyCodeCurrency,
coalesce( VatReporting.TaxBaseAmountInCoCodeCrcyTot, VatReporting.TaxBaseAmountInCoCodeCrcy ) AS TaxBaseAmountInCoCodeCrcy,
coalesce( VatReporting.TaxAmountInCoCodeCrcyTot, VatReporting.TaxAmountInCoCodeCrcy ) AS TaxAmountInCoCodeCrcy,
coalesce( VatReporting.AmountInTransactionCurrencyTot, VatReporting.AmountInTransactionCurrency ) AS AmountInTransactionCurrency,
coalesce( VatReporting.TaxBaseAmountInTransCrcyTot, VatReporting.TaxBaseAmountInTransCrcy ) AS TaxBaseAmountInTransCrcy,
coalesce( VatReporting.TaxAmountTot, VatReporting.TaxAmount ) AS TaxAmount,
VatReporting.DebitCreditCode AS DebitCreditCode,
VatReporting.TransactionTypeDetermination AS TransactionTypeDetermination,
VatReporting.RU_VATReturnVersion AS RU_VATReturnVersion,
VatReporting.RU_VATReturnSectionType AS RU_VATReturnSectionType,
VatReporting.RU_VATReturnSection AS RU_VATReturnSection,
VatReporting.RU_VATReturnLine AS RU_VATReturnLine,
VatReporting.RU_VATSubScenarioVersion AS RU_VATSubScenarioVersion,
VatReporting.RU_VATSubScenario AS RU_VATSubScenario,
VatReporting.RU_VATScenario AS RU_VATScenario,
VatReporting.RU_TotalAmountCalcType AS RU_TotalAmountCalcType,
VatReporting.RU_TaxBaseAmountCalcType AS RU_TaxBaseAmountCalcType,
VatReporting.RU_TaxAmountCalcType AS RU_TaxAmountCalcType,
VatReporting.SignIsInverted AS SignIsInverted,
VatReporting.BusinessPartnerType AS BusinessPartnerType,
VatReporting.AgentType AS AgentType,
VatReporting.PaymentOrderOutputType AS PaymentOrderOutputType,
VatReporting.ImprtCstmsDeclnIsRead AS ImprtCstmsDeclnIsRead,
VatReporting.MatlRcptDateIsRead AS MatlRcptDateIsRead,
VatReporting.RU_CustomerOutputType AS RU_CustomerOutputType,
VatReporting.RU_SupplierAgentOutputType AS RU_SupplierAgentOutputType,
VatReporting.RU_SupplierOutputType AS RU_SupplierOutputType,
VatReporting.RU_SubagentOutputType AS RU_SubagentOutputType,
VatReporting.SalesDealType AS SalesDealType,
VatReporting.RU_OrgOperationType AS RU_OrgOperationType,
VatReporting.RU_PersonOperationType AS RU_PersonOperationType,
VatReporting.SourceDocument AS SourceDocument,
VatReporting.SourceDocumentFiscalYear AS SourceDocumentFiscalYear,
VatReporting.RevisionNumber AS RevisionNumber,
VatReporting.StatryRptgEntity AS StatryRptgEntity,
VatReporting.StatryRptCategory AS StatryRptCategory,
VatReporting.StatryRptRunID AS StatryRptRunID
FROM P_RU_VATReporting1 AS VatReporting
;
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