P_RU_DSVATCRQSec9
P_RU_DSVATCRQSec9 is a Basic CDS View in SAP S/4HANA. It reads from 1 data source (P_RU_VATCRQSEC9) and exposes 29 fields.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_RU_VATCRQSEC9 | VATCRQ9 | 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 | PRUDSVATCRQSEC9 | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| SectionNumber | ||||
| FiscalYear | P_RU_VATCRQSEC9 | FiscalYear | G/L Fiscal Year | |
| TaxPeriod | P_RU_VATCRQSEC9 | TaxPeriod | Tax Period | |
| VATRetCorrNum | P_RU_VATCRQSEC9 | VATRetCorrNum | Corr.VAT Ret.Number | |
| RequestLineItemNum | P_RU_VATCRQSEC9 | RequestLineItemNum | Line Item Number | |
| AddFlag | P_RU_VATCRQSEC9 | AddFlag | Indicator | |
| ExternalDocNumber | P_RU_VATCRQSEC9 | ExternalDocNumber | Ext.Doc.Number | |
| OriginalInvDate | P_RU_VATCRQSEC9 | OriginalInvDate | Orig. VAT Inv. Date | |
| OrigInvRevNumber | P_RU_VATCRQSEC9 | OrigInvRevNumber | Revision Number | |
| OrigInvRevDate | P_RU_VATCRQSEC9 | OrigInvRevDate | Revision Date | |
| CorrectiveInvDate | P_RU_VATCRQSEC9 | CorrectiveInvDate | Corr. VAT Inv. Date | |
| CorrectiveInvExtNumber | P_RU_VATCRQSEC9 | CorrectiveInvExtNumber | Corr. VAT Inv. Ext. | |
| CorrectiveInvRevNumber | P_RU_VATCRQSEC9 | CorrectiveInvRevNumber | Revision of Corr. No | |
| CorrectiveInvRevDate | P_RU_VATCRQSEC9 | CorrectiveInvRevDate | Rev. Date of Corr. | |
| OKVCurrencyCodeendasOKVCurrencyCode | ||||
| DocumentAmountFCurr | P_RU_VATCRQSEC9 | InvoiceAmountFC | Amount Including VAT | |
| DocumentAmount | P_RU_VATCRQSEC9 | InvoiceAmountLC | Amount in LC | |
| VAT18BaseAmount | P_RU_VATCRQSEC9 | VAT18BaseAmount | ||
| VAT10BaseAmount | P_RU_VATCRQSEC9 | VAT10BaseAmount | ||
| VAT7BaseAmount | P_RU_VATCRQSEC9 | VAT7BaseAmount | ||
| VAT5BaseAmount | P_RU_VATCRQSEC9 | VAT5BaseAmount | ||
| VAT0BaseAmount | P_RU_VATCRQSEC9 | VAT0BaseAmount | ||
| VATFreeBaseAmount | P_RU_VATCRQSEC9 | VATFreeBaseAmount | ||
| VAT18Amount | P_RU_VATCRQSEC9 | VAT18Amount | ||
| VAT10Amount | P_RU_VATCRQSEC9 | VAT10Amount | ||
| VAT7Amount | P_RU_VATCRQSEC9 | VAT7Amount | ||
| VAT5Amount | P_RU_VATCRQSEC9 | VAT5Amount | ||
| ErrorCode | P_RU_VATCRQSEC9 | ErrorCode | VAT Return Error | |
| 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_DSVATCRQSec9.
-- 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: PRUDSVATCRQSEC9
-- 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_DSVATCRQSec9 AS
SELECT
$parameters.P_SectionNumber AS SectionNumber,
VATCRQ9.FiscalYear AS FiscalYear,
VATCRQ9.TaxPeriod AS TaxPeriod,
VATCRQ9.VATRetCorrNum AS VATRetCorrNum,
VATCRQ9.RequestLineItemNum AS RequestLineItemNum,
VATCRQ9.AddFlag AS AddFlag,
VATCRQ9.ExternalDocNumber AS ExternalDocNumber,
VATCRQ9.OriginalInvDate AS OriginalInvDate,
VATCRQ9.OrigInvRevNumber AS OrigInvRevNumber,
VATCRQ9.OrigInvRevDate AS OrigInvRevDate,
VATCRQ9.CorrectiveInvDate AS CorrectiveInvDate,
VATCRQ9.CorrectiveInvExtNumber AS CorrectiveInvExtNumber,
VATCRQ9.CorrectiveInvRevNumber AS CorrectiveInvRevNumber,
VATCRQ9.CorrectiveInvRevDate AS CorrectiveInvRevDate,
case when VATCRQ9.OKVCurrencyCode = '000' then '' else VATCRQ9.OKVCurrencyCode end as OKVCurrencyCode AS OKVCurrencyCodeendasOKVCurrencyCode,
VATCRQ9.InvoiceAmountFC AS DocumentAmountFCurr,
VATCRQ9.InvoiceAmountLC AS DocumentAmount,
VATCRQ9.VAT18BaseAmount AS VAT18BaseAmount,
VATCRQ9.VAT10BaseAmount AS VAT10BaseAmount,
VATCRQ9.VAT7BaseAmount AS VAT7BaseAmount,
VATCRQ9.VAT5BaseAmount AS VAT5BaseAmount,
VATCRQ9.VAT0BaseAmount AS VAT0BaseAmount,
VATCRQ9.VATFreeBaseAmount AS VATFreeBaseAmount,
VATCRQ9.VAT18Amount AS VAT18Amount,
VATCRQ9.VAT10Amount AS VAT10Amount,
VATCRQ9.VAT7Amount AS VAT7Amount,
VATCRQ9.VAT5Amount AS VAT5Amount,
VATCRQ9.ErrorCode AS ErrorCode,
reported_items.LineStatus AS Status
FROM P_RU_VATCRQSEC9 AS VATCRQ9
;
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