P_TH_StRpRepInfo
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)
| Source | Alias | Join Type |
|---|---|---|
| I_StRpTaskDetails | I_StRpTaskDetails | inner |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_ReportingEntity | srf_reporting_entity | |
| P_ReportCategory | srf_rep_cat_id | |
| P_ReportRun | srf_report_run_id |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | StatryRptCategory | I_StRpRepRun | StatryRptCategory | |
| KEY | StatryRptgEntity | I_StRpRepRun | StatryRptgEntity | |
| StatryRptTaskDueDate | I_StRpTaskDetails | StatryRptTaskDueDate | ||
| system_datethenXelseendasLateFiling | ||||
| ReportingYear |
@AbapCatalog.sqlViewName: 'PTHSTRPREPINFO'
@VDM.viewType: #COMPOSITE
@VDM.private: true
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #XL
@ObjectModel.usageType.serviceQuality: #D
@ObjectModel.usageType.dataClass: #MIXED
define view P_TH_StRpRepInfo
with parameters
P_ReportingEntity : srf_reporting_entity,
P_ReportCategory : srf_rep_cat_id,
P_ReportRun : srf_report_run_id
as select distinct from I_StRpRepRun
inner join I_StRpTaskDetails on(
I_StRpRepRun.StatryRptTaskUUID = I_StRpTaskDetails.StatryRptTaskUUID
)
{
// key I_StRpRepRun.StatryRptTaskUUID,
key I_StRpRepRun.StatryRptCategory,
key I_StRpRepRun.StatryRptgEntity,
I_StRpTaskDetails.StatryRptTaskDueDate,
case
when ( I_StRpTaskDetails.StatryRptTaskDueDate < $session.system_date ) then 'X'
else ' '
end as LateFiling,
I_StRpTaskDetails .ReportingYear
}
where
I_StRpRepRun.StatryRptgEntity = $parameters.P_ReportingEntity
and I_StRpRepRun.StatryRptRunID = $parameters.P_ReportRun
and I_StRpRepRun.StatryRptCategory = $parameters.P_ReportCategory
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_STRPREPRUN",
"I_STRPTASKDETAILS"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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