P_RU_DSVATCRQSec8
P_RU_DSVATCRQSec8 is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (P_RU_VATCRQCustomDeclarNum, P_RU_VATCRQSEC8) and exposes 21 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_RU_VATCRQCustomDeclarNum | CustomDeclarNum | left_outer |
| P_RU_VATCRQSEC8 | VATCRQ8 | from |
Parameters (6)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_StatryRptRunID | srf_report_run_id | |
| P_RequestID | j_3rf_vatcrq_n1 | |
| P_SectionNumber | j_3rf_vatcrq_sect_num | |
| P_AddFlag | flag |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | PRUDSVATCRQSEC8 | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| SectionNumber | ||||
| FiscalYear | P_RU_VATCRQSEC8 | FiscalYear | G/L Fiscal Year | |
| TaxPeriod | P_RU_VATCRQSEC8 | TaxPeriod | Tax Period | |
| VATRetCorrNum | P_RU_VATCRQSEC8 | VATRetCorrNum | Corr.VAT Ret.Number | |
| RequestLineItemNum | P_RU_VATCRQSEC8 | RequestLineItemNum | Line Item Number | |
| AddFlag | P_RU_VATCRQSEC8 | AddFlag | Indicator | |
| ExternalDocNumber | P_RU_VATCRQSEC8 | ExternalDocNumber | Ext.Doc.Number | |
| OriginalInvDate | P_RU_VATCRQSEC8 | OriginalInvDate | Orig. VAT Inv. Date | |
| OrigInvRevNumber | P_RU_VATCRQSEC8 | OrigInvRevNumber | Revision Number | |
| OrigInvRevDate | P_RU_VATCRQSEC8 | OrigInvRevDate | Revision Date | |
| CorrectiveInvDate | P_RU_VATCRQSEC8 | CorrectiveInvDate | Corr. VAT Inv. Date | |
| CorrectiveInvExtNumber | P_RU_VATCRQSEC8 | CorrectiveInvExtNumber | Corr. VAT Inv. Ext. | |
| CorrectiveInvRevNumber | P_RU_VATCRQSEC8 | CorrectiveInvRevNumber | Revision of Corr. No | |
| CorrectiveInvRevDate | P_RU_VATCRQSEC8 | CorrectiveInvRevDate | Rev. Date of Corr. | |
| CurrencyCode | P_RU_VATCRQSEC8 | CurrencyCode | Transaction Currency | |
| OKVCurrencyCode | P_RU_VATCRQSEC8 | OKVCurrencyCode | Currency Key (OKV) | |
| InvoiceAmount | P_RU_VATCRQSEC8 | InvoiceAmount | Invce Pr. (Ord. UoM) | |
| TaxAmount | P_RU_VATCRQSEC8 | TaxAmount | Tax Amt in Rptg Crcy | |
| ErrorCode | P_RU_VATCRQSEC8 | ErrorCode | VAT Return Error | |
| CustomDeclarationNumber | P_RU_VATCRQCustomDeclarNum | CustomDeclarationNumber | ||
| Status | reported_items | LineStatus | Line Status |
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_DSVATCRQSec8.
-- 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: PRUDSVATCRQSEC8
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_RequestID : j_3rf_vatcrq_n1, P_SectionNumber : j_3rf_vatcrq_sect_num, P_AddFlag : flag
CREATE VIEW P_RU_DSVATCRQSec8 AS
SELECT
$parameters.P_SectionNumber AS SectionNumber,
VATCRQ8.FiscalYear AS FiscalYear,
VATCRQ8.TaxPeriod AS TaxPeriod,
VATCRQ8.VATRetCorrNum AS VATRetCorrNum,
VATCRQ8.RequestLineItemNum AS RequestLineItemNum,
VATCRQ8.AddFlag AS AddFlag,
VATCRQ8.ExternalDocNumber AS ExternalDocNumber,
VATCRQ8.OriginalInvDate AS OriginalInvDate,
VATCRQ8.OrigInvRevNumber AS OrigInvRevNumber,
VATCRQ8.OrigInvRevDate AS OrigInvRevDate,
VATCRQ8.CorrectiveInvDate AS CorrectiveInvDate,
VATCRQ8.CorrectiveInvExtNumber AS CorrectiveInvExtNumber,
VATCRQ8.CorrectiveInvRevNumber AS CorrectiveInvRevNumber,
VATCRQ8.CorrectiveInvRevDate AS CorrectiveInvRevDate,
VATCRQ8.CurrencyCode AS CurrencyCode,
VATCRQ8.OKVCurrencyCode AS OKVCurrencyCode,
VATCRQ8.InvoiceAmount AS InvoiceAmount,
VATCRQ8.TaxAmount AS TaxAmount,
VATCRQ8.ErrorCode AS ErrorCode,
CustomDeclarNum.CustomDeclarationNumber AS CustomDeclarationNumber,
reported_items.LineStatus AS Status
FROM P_RU_VATCRQSEC8 AS VATCRQ8
LEFT OUTER JOIN P_RU_VATCRQCustomDeclarNum AS CustomDeclarNum 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