I_StRpRunDetails

DDL: I_STRPRUNDETAILS SQL: ISTRPTRUNDET Type: view COMPOSITE

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)

SourceAliasJoin Type
I_StRpJournalEntryLog _StRpJournalEntryLog from
I_StRpRepRun _StRpRepRun inner
I_StRpTaskDetails _StRpTaskDetails inner

Associations (2)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;