P_RU_CFinVatDocExtrasCm

DDL: P_RU_CFINVATDOCEXTRASCM SQL: PRUCFINVATEXTRCM Type: view COMPOSITE

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)

SourceAliasJoin Type
I_JournalEntry JournalEntry inner
I_Ru_VatDocExtras VatDocExtras from
I_Ru_VatDocExtras VatDocExtras union_all

Annotations (7)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;