P_RU_DATASELVATCRQNewItems

DDL: P_RU_DATASELVATCRQNEWITEMS SQL: PRUDTSELVATCRQNI Type: view BASIC

P_RU_DATASELVATCRQNewItems is a Basic CDS View in SAP S/4HANA. It reads from 13 data sources and exposes 69 fields.

Data Sources (13)

SourceAliasJoin Type
P_RU_VATCRQSEC10 VATCRQ10 union_all
P_RU_VATCRQSEC11 VATCRQ11 union_all
P_RU_VATCRQSEC12 VATCRQ12 union_all
P_RU_VATCRQSEC8 VATCRQ8 from
P_RU_VATCRQSEC9 VATCRQ9 union_all
P_RU_VATCRQKS VATCRQKS union_all
P_RU_VATCRQProsessingData VATCRQPROC left_outer
P_RU_VATCRQProsessingData VATCRQPROC left_outer
P_RU_VATCRQProsessingData VATCRQPROC left_outer
P_RU_VATCRQProsessingData VATCRQPROC left_outer
P_RU_VATCRQProsessingData VATCRQPROC left_outer
P_RU_VATCRQProsessingData VATCRQPROC left_outer
P_RU_VATCRQProsessingData VATCRQPROC left_outer

Parameters (4)

NameTypeDefault
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_StatryRptRunID srf_report_run_id
P_RequestID j_3rf_vatcrq_n1

Annotations (5)

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

Fields (69)

KeyFieldSource TableSource FieldDescription
StatryRptgEntity
StatryRptCategory
StatryRptRunID
RequestID P_RU_VATCRQSEC8 RequestID Request ID
FiscalYear P_RU_VATCRQSEC8 FiscalYear G/L Fiscal Year
TaxPeriod P_RU_VATCRQSEC8 TaxPeriod Tax Period
CorrNumber P_RU_VATCRQSEC8 VATRetCorrNum Corr.VAT Ret.Number
LineNumber P_RU_VATCRQSEC8 RequestLineItemNum Line Item Number
AddFlag P_RU_VATCRQSEC8 AddFlag Indicator
P_StatryRptgEntityasStatryRptgEntity
StatryRptCategory
StatryRptRunID
RequestID P_RU_VATCRQSEC9 RequestID Request ID
FiscalYear P_RU_VATCRQSEC9 FiscalYear G/L Fiscal Year
TaxPeriod P_RU_VATCRQSEC9 TaxPeriod Tax Period
CorrNumber P_RU_VATCRQSEC9 VATRetCorrNum Corr.VAT Ret.Number
LineNumber P_RU_VATCRQSEC9 RequestLineItemNum Line Item Number
AddFlag P_RU_VATCRQSEC9 AddFlag Indicator
P_StatryRptgEntityasStatryRptgEntity
StatryRptCategory
StatryRptRunID
RequestID P_RU_VATCRQSEC10 RequestID Request ID
FiscalYear P_RU_VATCRQSEC10 FiscalYear G/L Fiscal Year
TaxPeriod P_RU_VATCRQSEC10 TaxPeriod Tax Period
CorrNumber P_RU_VATCRQSEC10 VATRetCorrNum Corr.VAT Ret.Number
LineNumber P_RU_VATCRQSEC10 RequestLineItemNum Line Item Number
SectionNumber
AddFlag Indicator
P_StatryRptgEntityasStatryRptgEntity
StatryRptCategory
StatryRptRunID
RequestID P_RU_VATCRQSEC11 RequestID Request ID
FiscalYear P_RU_VATCRQSEC11 FiscalYear G/L Fiscal Year
TaxPeriod P_RU_VATCRQSEC11 TaxPeriod Tax Period
CorrNumber P_RU_VATCRQSEC11 VATRetCorrNum Corr.VAT Ret.Number
LineNumber P_RU_VATCRQSEC11 RequestLineItemNum Line Item Number
SectionNumber
AddFlag Indicator
P_StatryRptgEntityasStatryRptgEntity
StatryRptCategory
StatryRptRunID
RequestID P_RU_VATCRQSEC12 RequestID Request ID
FiscalYear P_RU_VATCRQSEC12 FiscalYear G/L Fiscal Year
TaxPeriod P_RU_VATCRQSEC12 TaxPeriod Tax Period
CorrNumber P_RU_VATCRQSEC12 VATRetCorrNum Corr.VAT Ret.Number
LineNumber P_RU_VATCRQSEC12 RequestLineItemNum Line Item Number
SectionNumber
AddFlag Indicator
P_StatryRptgEntityasStatryRptgEntity
StatryRptCategory
StatryRptRunID
RequestID P_RU_VATCRQKS RequestID Request ID
FiscalYear P_RU_VATCRQKS FiscalYear G/L Fiscal Year
TaxPeriod P_RU_VATCRQKS TaxPeriod Tax Period
CorrNumber P_RU_VATCRQKS VATRetCorrNum Corr.VAT Ret.Number
LineNumber P_RU_VATCRQKS RequestLineItemNum Line Item Number
SectionNumber
AddFlag Indicator
P_StatryRptgEntityasStatryRptgEntity
StatryRptCategory
StatryRptRunID
RequestID VATCRQNOTSL RequestID Request ID
FiscalYear VATCRQNOTSL FiscalYear G/L Fiscal Year
TaxPeriod VATCRQNOTSL TaxPeriod Tax Period
CorrNumber VATCRQNOTSL VATRetCorrNum Corr.VAT Ret.Number
LineNumber VATCRQNOTSL RequestLineItemNum Line Item Number
SectionNumber
AddFlag Indicator
LineStatus P_RU_VATCRQProsessingData Status Workflow Status

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_DATASELVATCRQNewItems.
-- 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: PRUDTSELVATCRQNI
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_StatryRptRunID : srf_report_run_id, P_RequestID : j_3rf_vatcrq_n1

CREATE VIEW P_RU_DATASELVATCRQNewItems AS
SELECT
  $parameters.P_StatryRptgEntity AS StatryRptgEntity,
  $parameters.P_StatryRptCategory AS StatryRptCategory,
  $parameters.P_StatryRptRunID AS StatryRptRunID,
  VATCRQ8.RequestID AS RequestID,
  VATCRQ8.FiscalYear AS FiscalYear,
  VATCRQ8.TaxPeriod AS TaxPeriod,
  VATCRQ8.VATRetCorrNum AS CorrNumber,
  VATCRQ8.RequestLineItemNum AS LineNumber,
  VATCRQ8.AddFlag AS AddFlag,
  VATCRQPROC.Status as LineStatus AS P_StatryRptgEntityasStatryRptgEntity,
  '00005' AS SectionNumber,
  VATCRQPROC.Status AS LineStatus
FROM P_RU_VATCRQSEC8 AS VATCRQ8
LEFT OUTER JOIN P_RU_VATCRQProsessingData AS VATCRQPROC ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): P_RU_VATCRQSEC9, P_RU_VATCRQSEC10, P_RU_VATCRQSEC11, P_RU_VATCRQSEC12, P_RU_VATCRQKS
;