P_RU_VATRetImpEAEU

DDL: P_RU_VATRETIMPEAEU SQL: PRUVATRETEAEU Type: view CONSUMPTION Package: GLO_FIN_IS_VAT_RU_RETURN

Source CDS for Section 1 and 1.1

P_RU_VATRetImpEAEU is a Consumption CDS View that provides data about "Source CDS for Section 1 and 1.1" in SAP S/4HANA. It reads from 4 data sources (P_RU_CheckLinkToImpNotNum, P_RU_VATReturnGeneralSection3, P_RU_VATReturnGeneralSection3, P_RU_BSET) and exposes 89 fields. Part of development package GLO_FIN_IS_VAT_RU_RETURN.

Data Sources (4)

SourceAliasJoin Type
P_RU_CheckLinkToImpNotNum IsLinkExists inner
P_RU_VATReturnGeneralSection3 P_RU_VATReturnGeneralSection3 from
P_RU_VATReturnGeneralSection3 P_RU_VATReturnGeneralSection3 union_all
P_RU_BSET ReferredDocument inner

Parameters (2)

NameTypeDefault
P_FiscalYearVariant fis_periv
P_Date datum

Annotations (7)

NameValueLevelField
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.sqlViewName PRUVATRETEAEU view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Source CDS for Section 1 and 1.1 view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (89)

KeyFieldSource TableSource FieldDescription
CompanyCode SelectedDocument CompanyCode Receiver Company Code
AccountingDocument SelectedDocument AccountingDocument Journal Entry
FiscalYear SelectedDocument FiscalYear G/L Fiscal Year
PostingDate SelectedDocument PostingDate Posting Date for GR
TaxReportingDate SelectedDocument TaxReportingDate Tax Reporting Date
DocumentDate SelectedDocument DocumentDate Journal Entry Date
IsReversal SelectedDocument IsReversal Reversal doc.
IsReversed SelectedDocument IsReversed Reversed?
SourceDocument SelectedDocument SourceDocument Document
SourceDocumentFiscalYear SelectedDocument SourceDocumentFiscalYear
ExternalInvoice SelectedDocument ExternalInvoice External Number
InvoiceDate SelectedDocument InvoiceDate Run On
CompanyCodeCurrency SelectedDocument CompanyCodeCurrency Local Currency
BusinessTransactionType SelectedDocument BusinessTransactionType Bus.transaction
AccountingDocumentType SelectedDocument AccountingDocumentType Journal Entry Type
TaxCode SelectedDocument TaxCode Tax Code
TaxBaseAmountInCoCodeCrcy SelectedDocument TaxBaseAmountInCoCodeCrcy TxBaseAmt CoCodeCrcy
TaxAmountInCoCodeCrcy SelectedDocument TaxAmountInCoCodeCrcy Tax Amount in Company Code Currency
RU_VATReturnVersion SelectedDocument RU_VATReturnVersion VAT Return Version
RU_VATReturnSection SelectedDocument RU_VATReturnSection VAT Return Section
RU_VATReturnSectionType SelectedDocument RU_VATReturnSectionType Section Type
RU_VATReturnLine SelectedDocument RU_VATReturnLine Line
VATReturnItemDescription SelectedDocument VATReturnItemDescription
RU_VATSubScenarioVersion SelectedDocument RU_VATSubScenarioVersion Subscenario Version
RU_VATSubScenario SelectedDocument RU_VATSubScenario Subscenario
RU_VATScenario SelectedDocument RU_VATScenario VAT Scenario
StatryRptgEntity SelectedDocument StatryRptgEntity Reporting Entity
StatryRptCategory SelectedDocument StatryRptCategory Report ID
P_FiscalYearVariant
CompanyCode Receiver Company Code
AccountingDocument SelectedDocument AccountingDocument Journal Entry
FiscalYear SelectedDocument FiscalYear G/L Fiscal Year
PostingDate SelectedDocument PostingDate Posting Date for GR
TaxReportingDate SelectedDocument TaxReportingDate Tax Reporting Date
DocumentDate SelectedDocument DocumentDate Journal Entry Date
IsReversal SelectedDocument IsReversal Reversal doc.
IsReversed SelectedDocument IsReversed Reversed?
SourceDocument SelectedDocument SourceDocument Document
SourceDocumentFiscalYear SelectedDocument SourceDocumentFiscalYear
ExternalInvoice SelectedDocument ExternalInvoice External Number
InvoiceDate SelectedDocument InvoiceDate Run On
CompanyCodeCurrency SelectedDocument CompanyCodeCurrency Local Currency
BusinessTransactionType SelectedDocument BusinessTransactionType Bus.transaction
AccountingDocumentType SelectedDocument AccountingDocumentType Journal Entry Type
TaxCode SelectedDocument TaxCode Tax Code
TaxBaseAmountInCoCodeCrcy SelectedDocument TaxBaseAmountInCoCodeCrcy TxBaseAmt CoCodeCrcy
TaxAmountInCoCodeCrcy SelectedDocument TaxAmountInCoCodeCrcy Tax Amount in Company Code Currency
RU_VATReturnVersion SelectedDocument RU_VATReturnVersion VAT Return Version
RU_VATReturnSection SelectedDocument RU_VATReturnSection VAT Return Section
RU_VATReturnSectionType SelectedDocument RU_VATReturnSectionType Section Type
RU_VATReturnLine SelectedDocument RU_VATReturnLine Line
VATReturnItemDescription SelectedDocument VATReturnItemDescription
RU_VATSubScenarioVersion SelectedDocument RU_VATSubScenarioVersion Subscenario Version
RU_VATSubScenario SelectedDocument RU_VATSubScenario Subscenario
RU_VATScenario SelectedDocument RU_VATScenario VAT Scenario
StatryRptgEntity SelectedDocument StatryRptgEntity Reporting Entity
StatryRptCategory SelectedDocument StatryRptCategory Report ID
P_FiscalYearVariant
ExternalInvoice External Number
InvoiceDate Run On
CompanyCode Receiver Company Code
AccountingDocument Journal Entry
FiscalYear G/L Fiscal Year
PostingDate Posting Date for GR
TaxReportingDate SelectedDocument TaxReportingDate Tax Reporting Date
DocumentDate Journal Entry Date
IsReversal Reversal doc.
IsReversed Reversed?
SourceDocument Document
SourceDocumentFiscalYear
ExternalInvoice SelectedDocument ExternalInvoice External Number
InvoiceDate SelectedDocument InvoiceDate Run On
CompanyCodeCurrency SelectedDocument CompanyCodeCurrency Local Currency
BusinessTransactionType Bus.transaction
AccountingDocumentType Journal Entry Type
TaxCode Tax Code
TaxBaseAmountInCoCodeCrcy TxBaseAmt CoCodeCrcy
TaxAmountInCoCodeCrcy P_RU_BSET TaxAmountInCoCodeCrcy Tax Amount in Company Code Currency
RU_VATReturnVersion SelectedDocument RU_VATReturnVersion VAT Return Version
RU_VATReturnSection SelectedDocument RU_VATReturnSection VAT Return Section
RU_VATReturnSectionType SelectedDocument RU_VATReturnSectionType Section Type
RU_VATReturnLine Line
VATReturnItemDescription VATReturnLineText VATReturnItemDescription
RU_VATSubScenarioVersion Subscenario Version
RU_VATSubScenario Subscenario
RU_VATScenario VAT Scenario
StatryRptgEntity SelectedDocument StatryRptgEntity Reporting Entity
StatryRptCategory SelectedDocument StatryRptCategory Report ID
StatryRptRunID SelectedDocument StatryRptRunID Report Run ID

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_VATRetImpEAEU.
-- 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: PRUVATRETEAEU
-- Parameters: P_FiscalYearVariant : fis_periv, P_Date : datum

CREATE VIEW P_RU_VATRetImpEAEU AS
SELECT
  SelectedDocument.CompanyCode AS CompanyCode,
  SelectedDocument.AccountingDocument AS AccountingDocument,
  SelectedDocument.FiscalYear AS FiscalYear,
  SelectedDocument.PostingDate AS PostingDate,
  SelectedDocument.TaxReportingDate AS TaxReportingDate,
  SelectedDocument.DocumentDate AS DocumentDate,
  SelectedDocument.IsReversal AS IsReversal,
  SelectedDocument.IsReversed AS IsReversed,
  SelectedDocument.SourceDocument AS SourceDocument,
  SelectedDocument.SourceDocumentFiscalYear AS SourceDocumentFiscalYear,
  SelectedDocument.ExternalInvoice AS ExternalInvoice,
  SelectedDocument.InvoiceDate AS InvoiceDate,
  SelectedDocument.CompanyCodeCurrency AS CompanyCodeCurrency,
  SelectedDocument.BusinessTransactionType AS BusinessTransactionType,
  SelectedDocument.AccountingDocumentType AS AccountingDocumentType,
  SelectedDocument.TaxCode AS TaxCode,
  SelectedDocument.TaxBaseAmountInCoCodeCrcy AS TaxBaseAmountInCoCodeCrcy,
  SelectedDocument.TaxAmountInCoCodeCrcy AS TaxAmountInCoCodeCrcy,
  SelectedDocument.RU_VATReturnVersion AS RU_VATReturnVersion,
  SelectedDocument.RU_VATReturnSection AS RU_VATReturnSection,
  SelectedDocument.RU_VATReturnSectionType AS RU_VATReturnSectionType,
  SelectedDocument.RU_VATReturnLine AS RU_VATReturnLine,
  SelectedDocument.VATReturnItemDescription AS VATReturnItemDescription,
  SelectedDocument.RU_VATSubScenarioVersion AS RU_VATSubScenarioVersion,
  SelectedDocument.RU_VATSubScenario AS RU_VATSubScenario,
  SelectedDocument.RU_VATScenario AS RU_VATScenario,
  SelectedDocument.StatryRptgEntity AS StatryRptgEntity,
  SelectedDocument.StatryRptCategory AS StatryRptCategory,
  SelectedDocument.StatryRptRunID AS P_FiscalYearVariant,
  SelectedDocument.StatryRptRunID AS StatryRptRunID
FROM P_RU_VATReturnGeneralSection3
INNER JOIN P_RU_CheckLinkToImpNotNum AS IsLinkExists ON /* join condition not captured in parsed metadata */
INNER JOIN P_RU_BSET AS ReferredDocument ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_RU_VATReturnGeneralSection3
;