P_RU_DSVATSPLedgers6

DDL: P_RU_DSVATSPLEDGERS6 SQL: PRUDSVATSPLD6 Type: view CONSUMPTION Package: GLO_FIN_IS_VAT_RU_SPL

S/P Ledgers: External Invoice Determination

P_RU_DSVATSPLedgers6 is a Consumption CDS View that provides data about "S/P Ledgers: External Invoice Determination" in SAP S/4HANA. It reads from 2 data sources (P_Ru_VatExtraInfo, P_Ru_VatExtraInfo) and exposes 14 fields. Part of development package GLO_FIN_IS_VAT_RU_SPL.

Data Sources (2)

SourceAliasJoin Type
P_Ru_VatExtraInfo VatLongTextExt1 left_outer
P_Ru_VatExtraInfo VatLongTextExt2 left_outer

Parameters (4)

NameTypeDefault
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_PeriodStartDate datum
P_PeriodEndDate datum

Annotations (5)

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

Fields (14)

KeyFieldSource TableSource FieldDescription
CompanyCode VatSalesPurchaseLedgers CompanyCode Receiver Company Code
FiscalYear VatSalesPurchaseLedgers FiscalYear G/L Fiscal Year
AccountingDocument VatSalesPurchaseLedgers AccountingDocument Journal Entry
RU_VATReturnVersion VatSalesPurchaseLedgers RU_VATReturnVersion VAT Return Version
SelectedDocument VatSalesPurchaseLedgers SelectedDocument
TaxCode VatSalesPurchaseLedgers TaxCode Tax Code
TaxReportingDate VatSalesPurchaseLedgers TaxReportingDate Tax Reporting Date
PostingDate VatSalesPurchaseLedgers PostingDate Posting Date for GR
RU_VATSubScenario VatSalesPurchaseLedgers RU_VATSubScenario Subscenario
RU_VATReturnSectionType VatSalesPurchaseLedgers RU_VATReturnSectionType Section Type
RevisionNumber VatSalesPurchaseLedgers RevisionNumber Revision Number
OriginalDocument VatSalesPurchaseLedgers OriginalDocument Original Document
OriginalDocumentYear VatSalesPurchaseLedgers OriginalDocumentYear Orig. Doc. Year
ActionRuleIsGenerated VatSalesPurchaseLedgers ActionRuleIsGenerated

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_DSVATSPLedgers6.
-- 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: PRUDSVATSPLD6
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_PeriodStartDate : datum, P_PeriodEndDate : datum

CREATE VIEW P_RU_DSVATSPLedgers6 AS
SELECT
  VatSalesPurchaseLedgers.CompanyCode AS CompanyCode,
  VatSalesPurchaseLedgers.FiscalYear AS FiscalYear,
  VatSalesPurchaseLedgers.AccountingDocument AS AccountingDocument,
  VatSalesPurchaseLedgers.RU_VATReturnVersion AS RU_VATReturnVersion,
  VatSalesPurchaseLedgers.SelectedDocument AS SelectedDocument,
  VatSalesPurchaseLedgers.TaxCode AS TaxCode,
  VatSalesPurchaseLedgers.TaxReportingDate AS TaxReportingDate,
  VatSalesPurchaseLedgers.PostingDate AS PostingDate,
  VatSalesPurchaseLedgers.RU_VATSubScenario AS RU_VATSubScenario,
  VatSalesPurchaseLedgers.RU_VATReturnSectionType AS RU_VATReturnSectionType,
  VatSalesPurchaseLedgers.RevisionNumber AS RevisionNumber,
  VatSalesPurchaseLedgers.OriginalDocument AS OriginalDocument,
  VatSalesPurchaseLedgers.OriginalDocumentYear AS OriginalDocumentYear,
  VatSalesPurchaseLedgers.ActionRuleIsGenerated AS ActionRuleIsGenerated
LEFT OUTER JOIN P_Ru_VatExtraInfo AS VatLongTextExt1 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_Ru_VatExtraInfo AS VatLongTextExt2 ON /* join condition not captured in parsed metadata */
;