P_RU_VATReturnSettingItem
P_RU_VATReturnSettingItem is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (I_RU_VATReturnSettingItem, I_RU_VATSubScenarioItem) and exposes 65 fields.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_RU_VATReturnSettingItem | VatCustDecl | from |
| I_RU_VATSubScenarioItem | VatCustSubs | union_all |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| VDM.private | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AbapCatalog.sqlViewName | PRUVATSPSETIT | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (65)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| RU_VATReturnVersion | I_RU_VATReturnSettingItem | RU_VATReturnVersion | VAT Return Version | |
| RU_VATSubScenarioVersion | I_RU_VATReturnSettingItem | RU_VATSubScenarioVersion | Subscenario Version | |
| RU_VATReturnSectionType | I_RU_VATReturnSettingItem | RU_VATReturnSectionType | Section Type | |
| RU_VATReturnSection | I_RU_VATReturnSettingItem | RU_VATReturnSection | VAT Return Section | |
| RU_VATReturnLine | I_RU_VATReturnSettingItem | RU_VATReturnLine | Line | |
| s1 | ||||
| RU_VATSubScenario | I_RU_VATReturnSettingItem | RU_VATSubScenario | Subscenario | |
| RU_VATScenario | I_RU_VATReturnSettingItem | RU_VATScenario | VAT Scenario | |
| RU_VATSubScenarioItem | I_RU_VATSubScenarioItem | RU_VATSubScenarioItem | Transfer Item No. | |
| TaxCode | I_RU_VATSubScenarioItem | TaxCode | Tax Code | |
| AccountingDocumentType | I_RU_VATSubScenarioItem | AccountingDocumentType | Journal Entry Type | |
| DebitCreditCode | I_RU_VATSubScenarioItem | DebitCreditCode | Single-Character Flag | |
| TaxItemClassification | I_RU_VATSubScenarioItem | TaxItemClassification | Transaction | |
| RU_SourceDocumentType | I_RU_VATSubScenarioItem | RU_SourceDocumentType | Original Doc. Type | |
| IsCorrectionInvoice | I_RU_VATSubScenarioItem | IsCorrectionInvoice | Correction Type | |
| VATReturnOperation | I_RU_VATSubScenarioItem | VATReturnOperation | Operation Code | |
| s2 | ||||
| RU_TotalAmountCalcType | I_RU_VATReturnSettingItem | RU_TotalAmountCalcType | ||
| RU_TaxBaseAmountCalcType | I_RU_VATReturnSettingItem | RU_TaxBaseAmountCalcType | ||
| RU_TaxAmountCalcType | I_RU_VATReturnSettingItem | RU_TaxAmountCalcType | ||
| SignIsInverted | I_RU_VATReturnSettingItem | SignIsInverted | ||
| BusinessPartnerType | I_RU_VATReturnSettingItem | BusinessPartnerType | Undefined range (can be used for patch levels) | |
| AgentType | I_RU_VATReturnSettingItem | AgentType | ||
| PaymentOrderOutputType | I_RU_VATReturnSettingItem | PaymentOrderOutputType | ||
| ImprtCstmsDeclnIsRead | I_RU_VATReturnSettingItem | ImprtCstmsDeclnIsRead | ||
| MatlRcptDateIsRead | I_RU_VATReturnSettingItem | MatlRcptDateIsRead | ||
| RU_CustomerOutputType | I_RU_VATReturnSettingItem | RU_CustomerOutputType | ||
| RU_SupplierAgentOutputType | I_RU_VATReturnSettingItem | RU_SupplierAgentOutputType | ||
| RU_SupplierOutputType | I_RU_VATReturnSettingItem | RU_SupplierOutputType | ||
| RU_SubagentOutputType | I_RU_VATReturnSettingItem | RU_SubagentOutputType | ||
| SalesDealType | I_RU_VATReturnSettingItem | SalesDealType | Deal Type | |
| RU_OrgOperationType | I_RU_VATReturnSettingItem | RU_OrgOperationType | ||
| RU_VATReturnVersion | VAT Return Version | |||
| RU_VATSubScenarioVersion | I_RU_VATSubScenarioItem | RU_VATSubScenarioVersion | Subscenario Version | |
| RU_VATReturnSectionType | I_RU_VATReturnSettingItem | RU_VATReturnSectionType | Section Type | |
| RU_VATReturnSection | I_RU_VATReturnSettingItem | RU_VATReturnSection | VAT Return Section | |
| RU_VATReturnLine | I_RU_VATReturnSettingItem | RU_VATReturnLine | Line | |
| s1 | ||||
| RU_VATSubScenario | I_RU_VATSubScenarioItem | RU_VATSubScenario | Subscenario | |
| RU_VATScenario | I_RU_VATReturnSettingItem | RU_VATScenario | VAT Scenario | |
| RU_VATSubScenarioItem | I_RU_VATSubScenarioItem | RU_VATSubScenarioItem | Transfer Item No. | |
| TaxCode | I_RU_VATSubScenarioItem | TaxCode | Tax Code | |
| AccountingDocumentType | I_RU_VATSubScenarioItem | AccountingDocumentType | Journal Entry Type | |
| DebitCreditCode | I_RU_VATSubScenarioItem | DebitCreditCode | Single-Character Flag | |
| TaxItemClassification | I_RU_VATSubScenarioItem | TaxItemClassification | Transaction | |
| RU_SourceDocumentType | I_RU_VATSubScenarioItem | RU_SourceDocumentType | Original Doc. Type | |
| IsCorrectionInvoice | I_RU_VATSubScenarioItem | IsCorrectionInvoice | Correction Type | |
| VATReturnOperation | I_RU_VATSubScenarioItem | VATReturnOperation | Operation Code | |
| s2 | ||||
| RU_TotalAmountCalcType | I_RU_VATReturnSettingItem | RU_TotalAmountCalcType | ||
| RU_TaxBaseAmountCalcType | I_RU_VATReturnSettingItem | RU_TaxBaseAmountCalcType | ||
| RU_TaxAmountCalcType | I_RU_VATReturnSettingItem | RU_TaxAmountCalcType | ||
| SignIsInverted | I_RU_VATReturnSettingItem | SignIsInverted | ||
| BusinessPartnerType | I_RU_VATReturnSettingItem | BusinessPartnerType | Undefined range (can be used for patch levels) | |
| AgentType | I_RU_VATReturnSettingItem | AgentType | ||
| PaymentOrderOutputType | I_RU_VATReturnSettingItem | PaymentOrderOutputType | ||
| ImprtCstmsDeclnIsRead | I_RU_VATReturnSettingItem | ImprtCstmsDeclnIsRead | ||
| MatlRcptDateIsRead | I_RU_VATReturnSettingItem | MatlRcptDateIsRead | ||
| RU_CustomerOutputType | I_RU_VATReturnSettingItem | RU_CustomerOutputType | ||
| RU_SupplierAgentOutputType | I_RU_VATReturnSettingItem | RU_SupplierAgentOutputType | ||
| RU_SupplierOutputType | I_RU_VATReturnSettingItem | RU_SupplierOutputType | ||
| RU_SubagentOutputType | I_RU_VATReturnSettingItem | RU_SubagentOutputType | ||
| SalesDealType | I_RU_VATReturnSettingItem | SalesDealType | Deal Type | |
| RU_OrgOperationType | I_RU_VATReturnSettingItem | RU_OrgOperationType | ||
| RU_PersonOperationType | I_RU_VATReturnSettingItem | RU_PersonOperationType |
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_VATReturnSettingItem.
-- 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: PRUVATSPSETIT
CREATE VIEW P_RU_VATReturnSettingItem AS
SELECT
VatCustDecl.RU_VATReturnVersion AS RU_VATReturnVersion,
VatCustDecl.RU_VATSubScenarioVersion AS RU_VATSubScenarioVersion,
VatCustDecl.RU_VATReturnSectionType AS RU_VATReturnSectionType,
VatCustDecl.RU_VATReturnSection AS RU_VATReturnSection,
VatCustDecl.RU_VATReturnLine AS RU_VATReturnLine,
'|' AS s1,
VatCustDecl.RU_VATSubScenario AS RU_VATSubScenario,
VatCustDecl.RU_VATScenario AS RU_VATScenario,
VatCustSubs.RU_VATSubScenarioItem AS RU_VATSubScenarioItem,
VatCustSubs.TaxCode AS TaxCode,
VatCustSubs.AccountingDocumentType AS AccountingDocumentType,
VatCustSubs.DebitCreditCode AS DebitCreditCode,
VatCustSubs.TaxItemClassification AS TaxItemClassification,
VatCustSubs.RU_SourceDocumentType AS RU_SourceDocumentType,
VatCustSubs.IsCorrectionInvoice AS IsCorrectionInvoice,
VatCustSubs.VATReturnOperation AS VATReturnOperation,
'|' AS s2,
VatCustDecl.RU_TotalAmountCalcType AS RU_TotalAmountCalcType,
VatCustDecl.RU_TaxBaseAmountCalcType AS RU_TaxBaseAmountCalcType,
VatCustDecl.RU_TaxAmountCalcType AS RU_TaxAmountCalcType,
VatCustDecl.SignIsInverted AS SignIsInverted,
VatCustDecl.BusinessPartnerType AS BusinessPartnerType,
VatCustDecl.AgentType AS AgentType,
VatCustDecl.PaymentOrderOutputType AS PaymentOrderOutputType,
VatCustDecl.ImprtCstmsDeclnIsRead AS ImprtCstmsDeclnIsRead,
VatCustDecl.MatlRcptDateIsRead AS MatlRcptDateIsRead,
VatCustDecl.RU_CustomerOutputType AS RU_CustomerOutputType,
VatCustDecl.RU_SupplierAgentOutputType AS RU_SupplierAgentOutputType,
VatCustDecl.RU_SupplierOutputType AS RU_SupplierOutputType,
VatCustDecl.RU_SubagentOutputType AS RU_SubagentOutputType,
VatCustDecl.SalesDealType AS SalesDealType,
VatCustDecl.RU_OrgOperationType AS RU_OrgOperationType,
VatCustDecl.RU_PersonOperationType AS RU_PersonOperationType
FROM I_RU_VATReturnSettingItem AS VatCustDecl
-- UNION ALL with additional select branch(es): I_RU_VATSubScenarioItem
;
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