P_RU_ConsolidInvoice

DDL: P_RU_CONSOLIDINVOICE SQL: PRUCNSINV Type: view CONSUMPTION Package: GLO_FIN_IS_VAT_RU

Consolidated Invoice

P_RU_ConsolidInvoice is a Consumption CDS View that provides data about "Consolidated Invoice" in SAP S/4HANA. It reads from 2 data sources (P_RU_InvoiceExternalNumberDate, P_RU_InvoiceExternalNumberDate) and exposes 14 fields. Part of development package GLO_FIN_IS_VAT_RU.

Data Sources (2)

SourceAliasJoin Type
P_RU_InvoiceExternalNumberDate ConnectedDoc inner
P_RU_InvoiceExternalNumberDate CurrentDoc from

Annotations (6)

NameValueLevelField
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName PRUCNSINV view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (14)

KeyFieldSource TableSource FieldDescription
CompanyCode P_RU_InvoiceExternalNumberDate CompanyCode Receiver Company Code
AccountingDocument P_RU_InvoiceExternalNumberDate AccountingDocument Journal Entry
FiscalYear P_RU_InvoiceExternalNumberDate FiscalYear G/L Fiscal Year
ExternalInvoice P_RU_InvoiceExternalNumberDate ExternalInvoice External Number
InvoiceDate P_RU_InvoiceExternalNumberDate InvoiceDate Run On
Supplier P_RU_InvoiceExternalNumberDate Supplier Supplier
Customer P_RU_InvoiceExternalNumberDate Customer Sold-to Party
DebitCreditCode_Real P_RU_InvoiceExternalNumberDate DebitCreditCode_Real
IsReversal P_RU_InvoiceExternalNumberDate IsReversal Reversal doc.
IsReversed P_RU_InvoiceExternalNumberDate IsReversed Reversed?
IsPseudoReversed P_RU_InvoiceExternalNumberDate IsPseudoReversed
IsPseudoReversal P_RU_InvoiceExternalNumberDate IsPseudoReversal
ConnectedAccountingDocument P_RU_InvoiceExternalNumberDate AccountingDocument Journal Entry
ConnectedFiscalYear P_RU_InvoiceExternalNumberDate FiscalYear G/L Fiscal Year

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_ConsolidInvoice.
-- 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: PRUCNSINV

CREATE VIEW P_RU_ConsolidInvoice AS
SELECT
  CurrentDoc.CompanyCode AS CompanyCode,
  CurrentDoc.AccountingDocument AS AccountingDocument,
  CurrentDoc.FiscalYear AS FiscalYear,
  ConnectedDoc.ExternalInvoice AS ExternalInvoice,
  ConnectedDoc.InvoiceDate AS InvoiceDate,
  ConnectedDoc.Supplier AS Supplier,
  ConnectedDoc.Customer AS Customer,
  ConnectedDoc.DebitCreditCode_Real AS DebitCreditCode_Real,
  ConnectedDoc.IsReversal AS IsReversal,
  ConnectedDoc.IsReversed AS IsReversed,
  ConnectedDoc.IsPseudoReversed AS IsPseudoReversed,
  ConnectedDoc.IsPseudoReversal AS IsPseudoReversal,
  ConnectedDoc.AccountingDocument AS ConnectedAccountingDocument,
  ConnectedDoc.FiscalYear AS ConnectedFiscalYear
FROM P_RU_InvoiceExternalNumberDate AS CurrentDoc
INNER JOIN P_RU_InvoiceExternalNumberDate AS ConnectedDoc ON /* join condition not captured in parsed metadata */
;