P_SG_STRPRUNLOG2

DDL: P_SG_STRPRUNLOG2 Type: view_entity COMPOSITE

P_SG_STRPRUNLOG2 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_StRpRepRun, I_StRpTaskDetails) and exposes 6 fields with key fields StatryRptgEntity, StatryRptCategory, StatryRptRunID.

Data Sources (2)

SourceAliasJoin Type
I_StRpRepRun _StRpRepRun from
I_StRpTaskDetails _StRpTaskDetails inner

Annotations (3)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY StatryRptgEntity I_StRpTaskDetails StatryRptgEntity Reporting Entity
KEY StatryRptCategory I_StRpTaskDetails StatryRptCategory Report ID
KEY StatryRptRunID
StatryRptRunStatus I_StRpRepRun StatryRptRunStatus Report Run Status
ReportingYear I_StRpTaskDetails ReportingYear Year
StatryRptTaskPeriod I_StRpTaskDetails StatryRptTaskPeriod Tax Period

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_SG_STRPRUNLOG2.
-- 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.

CREATE VIEW P_SG_STRPRUNLOG2 AS
SELECT
  _StRpTaskDetails.StatryRptgEntity AS StatryRptgEntity,
  _StRpTaskDetails.StatryRptCategory AS StatryRptCategory,
  max(_StRpRepRun.StatryRptRunID) AS StatryRptRunID,
  _StRpRepRun.StatryRptRunStatus AS StatryRptRunStatus,
  _StRpTaskDetails.ReportingYear AS ReportingYear,
  _StRpTaskDetails.StatryRptTaskPeriod AS StatryRptTaskPeriod
FROM I_StRpRepRun AS _StRpRepRun
INNER JOIN I_StRpTaskDetails AS _StRpTaskDetails ON /* join condition not captured in parsed metadata */
;