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
tstmp rsau_app_stat tstmp
tstmp_to rsau_app_stat tstmp_to
appl_type rsau_app_stat appl_type
appl_name rsau_app_stat appl_name
bname_tx P_UserAddress002 NAME_TEXTC
appl_name_tx
appl_type_tx SUIM_2X_APPL_TYPE ddtext
counter rsau_app_stat counter
@AbapCatalog.sqlViewName: 'SAISAPPSTATALL'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'SAIS: Application Start Statistic - Simple'
define view SAIS_APP_STAT_GET_ALL
  as select from rsau_app_stat as stat
  
  left outer join SUIM_2X_APPL_TYPE as atype_tx on atype_tx.ident = stat.appl_type
  left outer  join P_UserAddress002 as user on user.bname = stat.bname

  association [0..1] to tstct as tran_tx on tran_tx.tcode = stat.appl_name and tran_tx.sprsl = $session.system_language
  association [0..1] to tstct as tran_tx_e on tran_tx_e.tcode = stat.appl_name and tran_tx_e.sprsl = 'E'

{
  key 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
//   stat.object       as object,

//   stat.obj_name     as obj_name

     
//      concat_with_space(  tstmp_to_dats( stat.tstmp    , abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) ,

//                          tstmp_to_tims( stat.tstmp    , abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' )  , 1 ) as intv_start,

//      concat_with_space(  tstmp_to_dats( stat.tstmp_to , abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) ,

//                          tstmp_to_tims( stat.tstmp_to , abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' )  , 1 ) as intv_end                        

}

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"P_USERADDRESS002",
"SUIM_2X_APPL_TYPE",
"RSAU_APP_STAT",
"TSTCT"
],
"ASSOCIATED":
[
"TSTCT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/