P_RU_StRpJournalEntryLogStat

DDL: P_RU_STRPJOURNALENTRYLOGSTAT SQL: PRUSRJRNLENTRLS Type: view COMPOSITE

P_RU_StRpJournalEntryLogStat is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_RU_StRpJournalEntryLogStat1, P_RU_StRpRepRun) and exposes 14 fields.

Data Sources (2)

SourceAliasJoin Type
P_RU_StRpJournalEntryLogStat1 doc_log from
P_RU_StRpRepRun run inner

Annotations (7)

NameValueLevelField
VDM.private true view
VDM.viewType #COMPOSITE view
AbapCatalog.sqlViewName PRUSRJRNLENTRLS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (14)

KeyFieldSource TableSource FieldDescription
StatryRptgEntity P_RU_StRpJournalEntryLogStat1 StatryRptgEntity Reporting Entity
StatryRptCategory P_RU_StRpJournalEntryLogStat1 StatryRptCategory Report ID
StatryRptRunID P_RU_StRpJournalEntryLogStat1 StatryRptRunID Report Run ID
CompanyCode P_RU_StRpJournalEntryLogStat1 CompanyCode Receiver Company Code
RU_VATReturnSectionType P_RU_StRpJournalEntryLogStat1 RU_VATReturnSectionType Section Type
TotalItem P_RU_StRpJournalEntryLogStat1 TotalItem
StatryRptRunStatus P_RU_StRpRepRun StatryRptRunStatus
StatryRptRunCreatedByUser P_RU_StRpRepRun StatryRptRunCreatedByUser
GeneratedOn
GeneratedAt32asGeneratedAt
StatryRptCatPhase P_RU_StRpRepRun StatryRptCatPhase
StatryRptDef P_RU_StRpRepRun StatryRptDef
Period P_RU_StRpRepRun Period Tax Period
StatryRptRunUUID P_RU_StRpRepRun StatryRptRunUUID

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_StRpJournalEntryLogStat.
-- 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: PRUSRJRNLENTRLS

CREATE VIEW P_RU_StRpJournalEntryLogStat AS
SELECT
  doc_log.StatryRptgEntity AS StatryRptgEntity,
  doc_log.StatryRptCategory AS StatryRptCategory,
  doc_log.StatryRptRunID AS StatryRptRunID,
  doc_log.CompanyCode AS CompanyCode,
  doc_log.RU_VATReturnSectionType AS RU_VATReturnSectionType,
  doc_log.TotalItem AS TotalItem,
  run.StatryRptRunStatus AS StatryRptRunStatus,
  run.StatryRptRunCreatedByUser AS StatryRptRunCreatedByUser,
  cast( run.GeneratedOn as dats preserving type ) AS GeneratedOn,
  concat(concat(concat(substring(run.GeneratedAt, 1, 2), ':'), concat(substring(run.GeneratedAt, 3, 2), ':')), substring(run.GeneratedAt, 3, 2)) as GeneratedAt AS GeneratedAt32asGeneratedAt,
  run.StatryRptCatPhase AS StatryRptCatPhase,
  run.StatryRptDef AS StatryRptDef,
  run.Period AS Period,
  run.StatryRptRunUUID AS StatryRptRunUUID
FROM P_RU_StRpJournalEntryLogStat1 AS doc_log
INNER JOIN P_RU_StRpRepRun AS run ON /* join condition not captured in parsed metadata */
;