P_RU_VATReportingCustSubs

DDL: P_RU_VATREPORTINGCUSTSUBS SQL: PRUVATRPTGCUSTS Type: view CONSUMPTION

P_RU_VATReportingCustSubs is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (P_RU_VATReportingCustSubs3, P_RU_VATReportingCustSubs4) and exposes 10 fields with key fields RU_VATSubScenarioVersion, RU_VATSubScenario, RU_VATSubScenarioItem, TaxCode, AccountingDocumentType.

Data Sources (2)

SourceAliasJoin Type
P_RU_VATReportingCustSubs3 CustAll inner
P_RU_VATReportingCustSubs4 CustMaxRank from

Annotations (7)

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

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY RU_VATSubScenarioVersion P_RU_VATReportingCustSubs3 RU_VATSubScenarioVersion Subscenario Version
KEY RU_VATSubScenario P_RU_VATReportingCustSubs3 RU_VATSubScenario Subscenario
KEY RU_VATSubScenarioItem P_RU_VATReportingCustSubs3 RU_VATSubScenarioItem
KEY TaxCode P_RU_VATReportingCustSubs4 TaxCode Tax Code
KEY AccountingDocumentType P_RU_VATReportingCustSubs4 AccountingDocumentType Journal Entry Type
KEY DebitCreditCode P_RU_VATReportingCustSubs4 DebitCreditCode Single-Character Flag
KEY TaxItemClassification P_RU_VATReportingCustSubs4 TaxItemClassification
KEY RU_SourceDocumentType P_RU_VATReportingCustSubs4 RU_SourceDocumentType
KEY IsCorrectionInvoice P_RU_VATReportingCustSubs4 IsCorrectionInvoice
VATReturnOperation P_RU_VATReportingCustSubs3 VATReturnOperation Operation Code

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_VATReportingCustSubs.
-- 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: PRUVATRPTGCUSTS

CREATE VIEW P_RU_VATReportingCustSubs AS
SELECT
  CustAll.RU_VATSubScenarioVersion AS RU_VATSubScenarioVersion,
  CustAll.RU_VATSubScenario AS RU_VATSubScenario,
  CustAll.RU_VATSubScenarioItem AS RU_VATSubScenarioItem,
  CustMaxRank.TaxCode AS TaxCode,
  CustMaxRank.AccountingDocumentType AS AccountingDocumentType,
  CustMaxRank.DebitCreditCode AS DebitCreditCode,
  CustMaxRank.TaxItemClassification AS TaxItemClassification,
  CustMaxRank.RU_SourceDocumentType AS RU_SourceDocumentType,
  CustMaxRank.IsCorrectionInvoice AS IsCorrectionInvoice,
  CustAll.VATReturnOperation AS VATReturnOperation
FROM P_RU_VATReportingCustSubs4 AS CustMaxRank
INNER JOIN P_RU_VATReportingCustSubs3 AS CustAll ON /* join condition not captured in parsed metadata */
;