SAIS_APP_STAT_GET_ALL

DDL: SAIS_APP_STAT_GET_ALL SQL: SAISAPPSTATALL Type: view

SAIS: Application Start Statistic - Simple

SAIS_APP_STAT_GET_ALL is a CDS View that provides data about "SAIS: Application Start Statistic - Simple" in SAP S/4HANA. It reads from 3 data sources (SUIM_2X_APPL_TYPE, rsau_app_stat, P_UserAddress002) and exposes 9 fields with key field bname. It has 2 associations to related views.

Data Sources (3)

SourceAliasJoin Type
SUIM_2X_APPL_TYPE atype_tx left_outer
rsau_app_stat stat from
P_UserAddress002 user left_outer

Associations (2)

CardinalityTargetAliasCondition
[0..1] tstct tran_tx tran_tx.tcode = stat.appl_name and tran_tx.sprsl = $session.system_language
[0..1] tstct tran_tx_e tran_tx_e.tcode = stat.appl_name and tran_tx_e.sprsl = 'E'

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName SAISAPPSTATALL view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label SAIS: Application Start Statistic - Simple view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY bname rsau_app_stat bname User name
tstmp rsau_app_stat tstmp Time Stamp
tstmp_to rsau_app_stat tstmp_to Time Stamp
appl_type rsau_app_stat appl_type System Type
appl_name rsau_app_stat appl_name Application Name
bname_tx P_UserAddress002 NAME_TEXTC Full Name
appl_name_tx
appl_type_tx SUIM_2X_APPL_TYPE ddtext Short text
counter rsau_app_stat counter Version

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 SAIS_APP_STAT_GET_ALL.
-- 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: SAISAPPSTATALL

CREATE VIEW SAIS_APP_STAT_GET_ALL AS
SELECT
  stat.bname AS bname,
  stat.tstmp AS tstmp,
  stat.tstmp_to AS tstmp_to,
  stat.appl_type AS appl_type,
  stat.appl_name AS appl_name,
  user.NAME_TEXTC AS bname_tx,
  coalesce( tran_tx.ttext, tran_tx_e.ttext ) AS appl_name_tx,
  atype_tx.ddtext AS appl_type_tx,
  stat.counter AS counter
FROM rsau_app_stat AS stat
LEFT OUTER JOIN SUIM_2X_APPL_TYPE AS atype_tx ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_UserAddress002 AS user ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN tstct AS tran_tx ON tran_tx.tcode = stat.appl_name AND tran_tx.sprsl = $session.system_language  -- association [0..1]
LEFT OUTER JOIN tstct AS tran_tx_e ON tran_tx_e.tcode = stat.appl_name AND tran_tx_e.sprsl = 'E'  -- association [0..1]
;