P_TH_StRpRepInfo

DDL: P_TH_STRPREPINFO SQL: PTHSTRPREPINFO Type: view COMPOSITE

P_TH_StRpRepInfo is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_StRpTaskDetails) and exposes 5 fields with key fields StatryRptCategory, StatryRptgEntity.

Data Sources (1)

SourceAliasJoin Type
I_StRpTaskDetails I_StRpTaskDetails inner

Parameters (3)

NameTypeDefault
P_ReportingEntity srf_reporting_entity
P_ReportCategory srf_rep_cat_id
P_ReportRun srf_report_run_id

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PTHSTRPREPINFO view
VDM.viewType #COMPOSITE view
VDM.private true view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.dataClass #MIXED view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY StatryRptCategory I_StRpRepRun StatryRptCategory Report ID
KEY StatryRptgEntity I_StRpRepRun StatryRptgEntity Reporting Entity
StatryRptTaskDueDate I_StRpTaskDetails StatryRptTaskDueDate Net Due Date
system_datethenXelseendasLateFiling
ReportingYear

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_TH_StRpRepInfo.
-- 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: PTHSTRPREPINFO
-- Parameters: P_ReportingEntity : srf_reporting_entity, P_ReportCategory : srf_rep_cat_id, P_ReportRun : srf_report_run_id

CREATE VIEW P_TH_StRpRepInfo AS
SELECT
  I_StRpRepRun.StatryRptCategory AS StatryRptCategory,
  I_StRpRepRun.StatryRptgEntity AS StatryRptgEntity,
  I_StRpTaskDetails.StatryRptTaskDueDate AS StatryRptTaskDueDate,
  case when ( I_StRpTaskDetails.StatryRptTaskDueDate < $session.system_date ) then 'X' else ' ' end as LateFiling AS system_datethenXelseendasLateFiling,
  I_StRpTaskDetails .ReportingYear AS ReportingYear
INNER JOIN I_StRpTaskDetails ON /* join condition not captured in parsed metadata */
;