P_RU_UTNDocSubmdCurPerd
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)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpTaskDetails | _sbmRunDetails | inner |
| I_RU_UnifiedTaxNtcPaytRptgItem | _submittedDoc | inner |
| I_StRpRepRun | _submittedRun | from |
Parameters (4)
| Name | Type | Default |
|---|---|---|
| P_StatryRptgEntity | srf_reporting_entity | |
| P_StatryRptCategory | srf_rep_cat_id | |
| P_ReportingYear | srf_reporting_year | |
| P_StatryRptTaskPeriod | srf_reporting_period_num |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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 */
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA