KSR_I_TA_SQL_STMT_R
KSR: Tenant Aggregated SQL Statements
KSR_I_TA_SQL_STMT_R is a CDS View that provides data about "KSR: Tenant Aggregated SQL Statements" in SAP S/4HANA. It reads from 1 data source (ksr_ta_sql_stmt) and exposes 18 fields with key fields Client, Tenant_Id, Instance, Timestamp_Id, User_Group. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| ksr_ta_sql_stmt | ksr_ta_sql_stmt | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | KSR_I_XM_TIME_R | _XTime | $projection.Timestamp_Id = _XTime.TimestampId |
Annotations (10)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | KSR_ITASQLSTMTR | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.type | #CLIENT_DEPENDENT | view | |
| EndUserText.label | KSR: Tenant Aggregated SQL Statements | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (18)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Client | ksr_ta_sql_stmt | client | Workflow definition: Client |
| KEY | Tenant_Id | ksr_ta_sql_stmt | tenant_id | Testplan Description |
| KEY | Instance | ksr_ta_sql_stmt | instance | TaskCount |
| KEY | Timestamp_Id | ksr_ta_sql_stmt | timestamp_id | Timestamp ID |
| KEY | User_Group | ksr_ta_sql_stmt | user_group | User Group |
| KEY | Statement_Hash | ksr_ta_sql_stmt | statement_hash | Statement Hash |
| Tenant_Group | ksr_ta_sql_stmt | tenant_group | Tenant Authorization | |
| Execution_Count | ksr_ta_sql_stmt | execution_count | Value | |
| Record_Count | ksr_ta_sql_stmt | record_count | Value | |
| Processing_Time | ksr_ta_sql_stmt | processing_time | Value | |
| Hana_Cpu_Time | ksr_ta_sql_stmt | hana_cpu_time | Value | |
| Hana_Max_Mem | ksr_ta_sql_stmt | hana_max_mem | Value | |
| Hana_Processing_Time | ksr_ta_sql_stmt | hana_processing_time | Value | |
| TIME_ZONE | _XTime | Time_Zone | TimeZone | |
| TIME_PERIOD | _XTime | TimePeriod | ||
| TIME_GRANULARITY | _XTime | TimeGranularity | ||
| TIMESTAMP_UTC | _XTime | TimestampUtc | ||
| _XTime | _XTime |
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 KSR_I_TA_SQL_STMT_R.
-- 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: KSR_ITASQLSTMTR
CREATE VIEW KSR_I_TA_SQL_STMT_R AS
SELECT
ksr_ta_sql_stmt.client AS Client,
ksr_ta_sql_stmt.tenant_id AS Tenant_Id,
ksr_ta_sql_stmt.instance AS Instance,
ksr_ta_sql_stmt.timestamp_id AS Timestamp_Id,
ksr_ta_sql_stmt.user_group AS User_Group,
ksr_ta_sql_stmt.statement_hash AS Statement_Hash,
ksr_ta_sql_stmt.tenant_group AS Tenant_Group,
ksr_ta_sql_stmt.execution_count AS Execution_Count,
ksr_ta_sql_stmt.record_count AS Record_Count,
ksr_ta_sql_stmt.processing_time AS Processing_Time,
ksr_ta_sql_stmt.hana_cpu_time AS Hana_Cpu_Time,
ksr_ta_sql_stmt.hana_max_mem AS Hana_Max_Mem,
ksr_ta_sql_stmt.hana_processing_time AS Hana_Processing_Time,
_XTime.Time_Zone AS TIME_ZONE,
_XTime.TimePeriod AS TIME_PERIOD,
_XTime.TimeGranularity AS TIME_GRANULARITY,
_XTime.TimestampUtc AS TIMESTAMP_UTC
FROM ksr_ta_sql_stmt
LEFT OUTER JOIN KSR_I_XM_TIME_R AS _XTime ON Timestamp_Id = _XTime.TimestampId -- association [1..1]
;
Learn More
- CDS View Annotations — A Complete Guide
- 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 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA