I_StRpRunDetails
Reporting Periods of Reporting Documents
I_StRpRunDetails is a Composite CDS View (Cube) that provides data about "Reporting Periods of Reporting Documents" in SAP S/4HANA. It reads from 3 data sources (I_StRpJournalEntryLog, I_StRpRepRun, I_StRpTaskDetails) and exposes 18 fields with key fields StatryRptgEntity, StatryRptCategory, StatryRptRunID, CompanyCode, AccountingDocument. It has 2 associations to related views.
Data Sources (3)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpJournalEntryLog | _StRpJournalEntryLog | from |
| I_StRpRepRun | _StRpRepRun | inner |
| I_StRpTaskDetails | _StRpTaskDetails | inner |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_StRpCategoryPhaseText | _PhaseText | $projection.StatryRptCategory = _PhaseText.StatryRptCategory and _StRpRepRun.StatryRptRunType = _PhaseText.StatryRptCatPhase and _PhaseText.StatryRptCatVersion = 'ACT' and _PhaseText.Language = $session.system_language |
| [0..1] | I_StRpCategoryText | _CategoryText | $projection.StatryRptCategory = _CategoryText.StatryRptCategory and _CategoryText.StatryRptCatVersion = 'ACT' and _CategoryText.Language = $session.system_language |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| EndUserText.label | Reporting Periods of Reporting Documents | view | |
| AbapCatalog.sqlViewName | ISTRPTRUNDET | view | |
| VDM.viewType | #COMPOSITE | view | |
| Analytics.dataCategory | #CUBE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| Metadata.allowExtensions | true | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | StatryRptgEntity | I_StRpJournalEntryLog | StatryRptgEntity | Reporting Entity |
| KEY | StatryRptCategory | I_StRpJournalEntryLog | StatryRptCategory | Report ID |
| KEY | StatryRptRunID | I_StRpJournalEntryLog | StatryRptRunID | Report Run ID |
| KEY | CompanyCode | I_StRpJournalEntryLog | CompanyCode | Receiver Company Code |
| KEY | AccountingDocument | I_StRpJournalEntryLog | AccountingDocument | Journal Entry |
| KEY | FiscalYear | I_StRpJournalEntryLog | FiscalYear | G/L Fiscal Year |
| StatryRptRunUUID | I_StRpRepRun | StatryRptRunUUID | UUID | |
| StatryRptActivityUUID | I_StRpRepRun | StatryRptActivityUUID | UUID | |
| StatryRptRunStatus | I_StRpRepRun | StatryRptRunStatus | Report Run Status | |
| StatryRptRunType | I_StRpRepRun | StatryRptRunType | Report Run Type | |
| StatryRptSubmittedDateTime | I_StRpRepRun | StatryRptSubmittedDateTime | Submitted On | |
| ReportingYear | I_StRpTaskDetails | ReportingYear | Year | |
| StatryRptTaskPeriod | I_StRpTaskDetails | StatryRptTaskPeriod | Tax Period | |
| StatryRptTaskPeriodStartDate | I_StRpTaskDetails | StatryRptTaskPeriodStartDate | Start Date | |
| StatryRptTaskPeriodEndDate | I_StRpTaskDetails | StatryRptTaskPeriodEndDate | End Date | |
| _PhaseText | _PhaseText | |||
| _TransactionalTaxItem | I_StRpJournalEntryLog | _TransactionalTaxItem | ||
| _CategoryText | _CategoryText |
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 I_StRpRunDetails.
-- 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: ISTRPTRUNDET
CREATE VIEW I_StRpRunDetails AS
SELECT
_StRpJournalEntryLog.StatryRptgEntity AS StatryRptgEntity,
_StRpJournalEntryLog.StatryRptCategory AS StatryRptCategory,
_StRpJournalEntryLog.StatryRptRunID AS StatryRptRunID,
_StRpJournalEntryLog.CompanyCode AS CompanyCode,
_StRpJournalEntryLog.AccountingDocument AS AccountingDocument,
_StRpJournalEntryLog.FiscalYear AS FiscalYear,
_StRpRepRun.StatryRptRunUUID AS StatryRptRunUUID,
_StRpRepRun.StatryRptActivityUUID AS StatryRptActivityUUID,
_StRpRepRun.StatryRptRunStatus AS StatryRptRunStatus,
_StRpRepRun.StatryRptRunType AS StatryRptRunType,
_StRpRepRun.StatryRptSubmittedDateTime AS StatryRptSubmittedDateTime,
_StRpTaskDetails.ReportingYear AS ReportingYear,
_StRpTaskDetails.StatryRptTaskPeriod AS StatryRptTaskPeriod,
_StRpTaskDetails.StatryRptTaskPeriodStartDate AS StatryRptTaskPeriodStartDate,
_StRpTaskDetails.StatryRptTaskPeriodEndDate AS StatryRptTaskPeriodEndDate,
_StRpJournalEntryLog._TransactionalTaxItem AS _TransactionalTaxItem
FROM I_StRpJournalEntryLog AS _StRpJournalEntryLog
INNER JOIN I_StRpRepRun AS _StRpRepRun ON /* join condition not captured in parsed metadata */
INNER JOIN I_StRpTaskDetails AS _StRpTaskDetails ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_StRpCategoryPhaseText AS _PhaseText ON StatryRptCategory = _PhaseText.StatryRptCategory AND _StRpRepRun.StatryRptRunType = _PhaseText.StatryRptCatPhase AND _PhaseText.StatryRptCatVersion = 'ACT' AND _PhaseText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_StRpCategoryText AS _CategoryText ON StatryRptCategory = _CategoryText.StatryRptCategory AND _CategoryText.StatryRptCatVersion = 'ACT' AND _CategoryText.Language = $session.system_language -- association [0..1]
;
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