P_RU_UTNDocSubmdCurPerd

DDL: P_RU_UTNDOCSUBMDCURPERD SQL: PRUUTNPDOCSBMCP Type: view COMPOSITE

UTNP Submd Documents for Current Period

P_RU_UTNDocSubmdCurPerd is a Composite CDS View that provides data about "UTNP Submd Documents for Current Period" in SAP S/4HANA. It reads from 3 data sources (I_StRpTaskDetails, I_RU_UnifiedTaxNtcPaytRptgItem, I_StRpRepRun) and exposes 18 fields.

Data Sources (3)

SourceAliasJoin Type
I_StRpTaskDetails _sbmRunDetails inner
I_RU_UnifiedTaxNtcPaytRptgItem _submittedDoc inner
I_StRpRepRun _submittedRun from

Parameters (4)

NameTypeDefault
P_StatryRptgEntity srf_reporting_entity
P_StatryRptCategory srf_rep_cat_id
P_ReportingYear srf_reporting_year
P_StatryRptTaskPeriod srf_reporting_period_num

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName PRUUTNPDOCSBMCP view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view
EndUserText.label UTNP Submd Documents for Current Period view

Fields (18)

KeyFieldSource TableSource FieldDescription
CompanyCode I_RU_UnifiedTaxNtcPaytRptgItem CompanyCode Receiver Company Code
AccountingDocument I_RU_UnifiedTaxNtcPaytRptgItem AccountingDocument Journal Entry
FiscalYear I_RU_UnifiedTaxNtcPaytRptgItem FiscalYear G/L Fiscal Year
AccountingDocumentItem I_RU_UnifiedTaxNtcPaytRptgItem AccountingDocumentItem Posting View Item
StatryRptgEntity I_StRpRepRun StatryRptgEntity Reporting Entity
StatryRptCategory I_StRpRepRun StatryRptCategory Report ID
StatryRptRunID I_StRpRepRun StatryRptRunID Report Run ID
StatryRptRunStatus I_StRpRepRun StatryRptRunStatus Report Run Status
RU_BudgetClassificationCode I_RU_UnifiedTaxNtcPaytRptgItem RU_BudgetClassificationCode KBK
RU_SupplierKPP I_RU_UnifiedTaxNtcPaytRptgItem RU_SupplierKPP Seller KPP
RU_TerritoryClassfctnOKTMO I_RU_UnifiedTaxNtcPaytRptgItem RU_TerritoryClassfctnOKTMO OKTMO
RU_UnifiedTaxNoticePeriodCode I_RU_UnifiedTaxNtcPaytRptgItem RU_UnifiedTaxNoticePeriodCode Period Code
RU_UnifiedTxNoticePeriodNumber I_RU_UnifiedTaxNtcPaytRptgItem RU_UnifiedTxNoticePeriodNumber Tax period
InputFiscalYear I_RU_UnifiedTaxNtcPaytRptgItem InputFiscalYear Fiscal Year
ReportingYear I_StRpTaskDetails ReportingYear Year
StatryRptTaskPeriod I_StRpTaskDetails StatryRptTaskPeriod Tax Period
AmountInCompanyCodeCurrency
CompanyCodeCurrency _docItem CompanyCodeCurrency Local Currency

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_UTNDocSubmdCurPerd.
-- 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: PRUUTNPDOCSBMCP
-- Parameters: P_StatryRptgEntity : srf_reporting_entity, P_StatryRptCategory : srf_rep_cat_id, P_ReportingYear : srf_reporting_year, P_StatryRptTaskPeriod : srf_reporting_period_num

CREATE VIEW P_RU_UTNDocSubmdCurPerd AS
SELECT
  _submittedDoc.CompanyCode AS CompanyCode,
  _submittedDoc.AccountingDocument AS AccountingDocument,
  _submittedDoc.FiscalYear AS FiscalYear,
  _submittedDoc.AccountingDocumentItem AS AccountingDocumentItem,
  _submittedRun.StatryRptgEntity AS StatryRptgEntity,
  _submittedRun.StatryRptCategory AS StatryRptCategory,
  _submittedRun.StatryRptRunID AS StatryRptRunID,
  _submittedRun.StatryRptRunStatus AS StatryRptRunStatus,
  _submittedDoc.RU_BudgetClassificationCode AS RU_BudgetClassificationCode,
  _submittedDoc.RU_SupplierKPP AS RU_SupplierKPP,
  _submittedDoc.RU_TerritoryClassfctnOKTMO AS RU_TerritoryClassfctnOKTMO,
  _submittedDoc.RU_UnifiedTaxNoticePeriodCode AS RU_UnifiedTaxNoticePeriodCode,
  _submittedDoc.RU_UnifiedTxNoticePeriodNumber AS RU_UnifiedTxNoticePeriodNumber,
  _submittedDoc.InputFiscalYear AS InputFiscalYear,
  _sbmRunDetails.ReportingYear AS ReportingYear,
  _sbmRunDetails.StatryRptTaskPeriod AS StatryRptTaskPeriod,
  _docItem.AmountInCompanyCodeCurrency * (-1) AS AmountInCompanyCodeCurrency,
  _docItem.CompanyCodeCurrency AS CompanyCodeCurrency
FROM I_StRpRepRun AS _submittedRun
INNER JOIN I_StRpTaskDetails AS _sbmRunDetails ON /* join condition not captured in parsed metadata */
INNER JOIN I_RU_UnifiedTaxNtcPaytRptgItem AS _submittedDoc ON /* join condition not captured in parsed metadata */
;