P_RU_CFinVatDocExtrasCm
P_RU_CFinVatDocExtrasCm is a Composite CDS View in SAP S/4HANA. It reads from 3 data sources (I_JournalEntry, I_Ru_VatDocExtras, I_Ru_VatDocExtras) and exposes 29 fields with key fields CompanyCode, AccountingDocument, FiscalYear, AccountingDocument, FiscalYear.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_JournalEntry | JournalEntry | inner |
| I_Ru_VatDocExtras | VatDocExtras | from |
| I_Ru_VatDocExtras | VatDocExtras | union_all |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PRUCFINVATEXTRCM | view | |
| AbapCatalog.preserveKey | true | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (29)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CompanyCode | I_Ru_VatDocExtras | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | I_Ru_VatDocExtras | AccountingDocument | Journal Entry |
| KEY | FiscalYear | I_Ru_VatDocExtras | FiscalYear | G/L Fiscal Year |
| SenderLogicalSystem | Sender Logical System | |||
| SenderCompanyCode | Sender Company Code | |||
| SenderAccountingDocument | Sender Journal Entry | |||
| SenderFiscalYear | Sender FiscalYr | |||
| ExternalInvoice | I_Ru_VatDocExtras | ExternalInvoice | External Number | |
| InvoiceDate | I_Ru_VatDocExtras | InvoiceDate | Run On | |
| ExternalPayment | I_Ru_VatDocExtras | ExternalPayment | Payment Order Number | |
| PaymentDate | I_Ru_VatDocExtras | PaymentDate | Payment Date | |
| Supplier | I_Ru_VatDocExtras | Supplier | Supplier | |
| Customer | I_Ru_VatDocExtras | Customer | Sold-to Party | |
| RU_IncomingInvoiceNumber | I_Ru_VatDocExtras | RU_IncomingInvoiceNumber | Inc.Orig.Inv.Number | |
| CompanyCode | Receiver Company Code | |||
| KEY | AccountingDocument | I_JournalEntry | AccountingDocument | Journal Entry |
| KEY | FiscalYear | I_JournalEntry | FiscalYear | G/L Fiscal Year |
| SenderLogicalSystem | I_JournalEntry | SenderLogicalSystem | Sender Logical System | |
| SenderCompanyCode | I_JournalEntry | SenderCompanyCode | Sender Company Code | |
| SenderAccountingDocument | I_JournalEntry | SenderAccountingDocument | Sender Journal Entry | |
| SenderFiscalYear | I_JournalEntry | SenderFiscalYear | Sender FiscalYr | |
| ExternalInvoice | I_Ru_VatDocExtras | ExternalInvoice | External Number | |
| InvoiceDate | I_Ru_VatDocExtras | InvoiceDate | Run On | |
| ExternalPayment | I_Ru_VatDocExtras | ExternalPayment | Payment Order Number | |
| PaymentDate | I_Ru_VatDocExtras | PaymentDate | Payment Date | |
| Supplier | I_Ru_VatDocExtras | Supplier | Supplier | |
| Customer | I_Ru_VatDocExtras | Customer | Sold-to Party | |
| RU_IncomingInvoiceNumber | I_Ru_VatDocExtras | RU_IncomingInvoiceNumber | Inc.Orig.Inv.Number | |
| RU_IncomingInvoiceDate | I_Ru_VatDocExtras | RU_IncomingInvoiceDate | Inc.ExternalDocDate |
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_CFinVatDocExtrasCm.
-- 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: PRUCFINVATEXTRCM
CREATE VIEW P_RU_CFinVatDocExtrasCm AS
SELECT
VatDocExtras.CompanyCode AS CompanyCode,
VatDocExtras.AccountingDocument AS AccountingDocument,
VatDocExtras.FiscalYear AS FiscalYear,
cast( ' ' as logsystem_sender preserving type ) AS SenderLogicalSystem,
cast( ' ' as bukrs_sender preserving type ) AS SenderCompanyCode,
cast( ' ' as fis_belnr_sender preserving type ) AS SenderAccountingDocument,
cast( '0000' as gjahr_sender preserving type ) AS SenderFiscalYear,
VatDocExtras.ExternalInvoice AS ExternalInvoice,
VatDocExtras.InvoiceDate AS InvoiceDate,
VatDocExtras.ExternalPayment AS ExternalPayment,
VatDocExtras.PaymentDate AS PaymentDate,
VatDocExtras.Supplier AS Supplier,
VatDocExtras.Customer AS Customer,
VatDocExtras.RU_IncomingInvoiceNumber AS RU_IncomingInvoiceNumber,
VatDocExtras.RU_IncomingInvoiceDate AS RU_IncomingInvoiceDate
FROM I_Ru_VatDocExtras AS VatDocExtras
INNER JOIN I_JournalEntry AS JournalEntry ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_Ru_VatDocExtras
;
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