P_RSAU_LOG

DDL: P_RSAU_LOG SQL: PRSAULOG Type: view

Read RSAU_LOG with Meta Data

P_RSAU_LOG is a CDS View that provides data about "Read RSAU_LOG with Meta Data" in SAP S/4HANA. It reads from 3 data sources (CDS_GET_RSAU_LOG, I_RSAU_META_DATA, I_RSAU_UGROUP) and exposes 37 fields with key fields log_tstmp, msg, slgproc, slgmand, sid. It has 6 associations to related views.

Data Sources (3)

SourceAliasJoin Type
CDS_GET_RSAU_LOG _log from
I_RSAU_META_DATA _meta left_outer
I_RSAU_UGROUP _usr left_outer

Associations (6)

CardinalityTargetAliasCondition
[0..1] tstct tran_tx tran_tx.tcode = _log.slgtc and tran_tx.sprsl = $session.system_language
[0..1] tstct tran_tx_e tran_tx_e.tcode = _log.slgtc and tran_tx_e.sprsl = 'E'
[0..1] tstct tran1_tx ( ( _log.sal_data = 'AU3' or _log.sal_data = 'AU4' ) and tran1_tx.tcode = _log.sal_data and tran1_tx.sprsl = $session.system_language )
[0..1] tstct tran1_tx_e ( ( _log.sal_data = 'AU3' or _log.sal_data = 'AU4' ) and tran1_tx_e.tcode = _log.sal_data and tran1_tx_e.sprsl = 'E' )
[0..1] trdirt prog_tx prog_tx.name = _log.slgrepna and prog_tx.sprsl = $session.system_language
[0..1] trdirt prog_tx_e prog_tx_e.name = _log.slgrepna and prog_tx_e.sprsl = 'E'

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName PRSAULOG view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Read RSAU_LOG with Meta Data view

Fields (37)

KeyFieldSource TableSource FieldDescription
KEY log_tstmp CDS_GET_RSAU_LOG log_tstmp Time Stamp
KEY msg CDS_GET_RSAU_LOG event Time
KEY slgproc CDS_GET_RSAU_LOG slgproc Process
KEY slgmand CDS_GET_RSAU_LOG slgmand Client
KEY sid CDS_GET_RSAU_LOG sid SID
KEY instance CDS_GET_RSAU_LOG instance TaskCount
KEY counter CDS_GET_RSAU_LOG counter Version
tasktype
taskno
slgltrm2 CDS_GET_RSAU_LOG slgltrm2 Terminal
slguser CDS_GET_RSAU_LOG slguser User
useralias I_RSAU_UGROUP useralias Alias
FullName I_RSAU_UGROUP FullName Name
smtp_addr I_RSAU_UGROUP smtp_addr E-Mail Address
class I_RSAU_UGROUP class User Group
class_shtxt I_RSAU_UGROUP text User Group
slgtc CDS_GET_RSAU_LOG slgtc Transaction Code
slgtc_tx
slgrepna CDS_GET_RSAU_LOG slgrepna Program
slgrepna_tx
term_ipv6 CDS_GET_RSAU_LOG term_ipv6 Peer Address
sal_data CDS_GET_RSAU_LOG sal_data Variable Data
epp CDS_GET_RSAU_LOG suid_globaluid EPP ID
mfd_flag CDS_GET_RSAU_LOG mfd_flag Deletion Flag
alert_flag CDS_GET_RSAU_LOG alert_flag Alert ID
area I_RSAU_META_DATA area Settings Area
subid I_RSAU_META_DATA subid Topic ID
subclasid I_RSAU_META_DATA subclasid Subgroup
txsubclsid I_RSAU_META_DATA txsubclsid
severity I_RSAU_META_DATA severity Thresh.Val. Severity
severity_s I_RSAU_META_DATA severity_s
txseverity I_RSAU_META_DATA txseverity
txt I_RSAU_META_DATA txt Version Dscrptn
var_set_1 I_RSAU_META_DATA var_set_1
slgdattim
sal_date
sal_time

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_RSAU_LOG.
-- 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: PRSAULOG

CREATE VIEW P_RSAU_LOG AS
SELECT
  _log.log_tstmp AS log_tstmp,
  _log.event AS msg,
  _log.slgproc AS slgproc,
  _log.slgmand AS slgmand,
  _log.sid AS sid,
  _log.instance AS instance,
  _log.counter AS counter,
  substring( _log.slgproc, 11, 2 ) AS tasktype,
  substring( _log.slgproc, 8, 3 ) AS taskno,
  _log.slgltrm2 AS slgltrm2,
  _log.slguser AS slguser,
  _usr.useralias AS useralias,
  _usr.FullName AS FullName,
  _usr.smtp_addr AS smtp_addr,
  _usr.class AS class,
  _usr.text AS class_shtxt,
  _log.slgtc AS slgtc,
  coalesce( tran_tx.ttext, tran_tx_e.ttext ) AS slgtc_tx,
  _log.slgrepna AS slgrepna,
  coalesce( prog_tx.text, prog_tx_e.text ) AS slgrepna_tx,
  _log.term_ipv6 AS term_ipv6,
  _log.sal_data AS sal_data,
  _log.suid_globaluid AS epp,
  _log.mfd_flag AS mfd_flag,
  _log.alert_flag AS alert_flag,
  _meta.area AS area,
  _meta.subid AS subid,
  _meta.subclasid AS subclasid,
  _meta.txsubclsid AS txsubclsid,
  _meta.severity AS severity,
  _meta.severity_s AS severity_s,
  _meta.txseverity AS txseverity,
  _meta.txt AS txt,
  _meta.var_set_1 AS var_set_1,
  concat( cast( tstmp_to_dats( _log.log_tstmp , abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as abap.char(12) ), cast( tstmp_to_tims( _log.log_tstmp , abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as abap.char(6) ) ) AS slgdattim,
  tstmp_to_dats( _log.log_tstmp , abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) AS sal_date,
  tstmp_to_tims( _log.log_tstmp, abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) AS sal_time
FROM CDS_GET_RSAU_LOG AS _log
LEFT OUTER JOIN I_RSAU_META_DATA AS _meta ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_RSAU_UGROUP AS _usr ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN tstct AS tran_tx ON tran_tx.tcode = _log.slgtc AND tran_tx.sprsl = $session.system_language  -- association [0..1]
LEFT OUTER JOIN tstct AS tran_tx_e ON tran_tx_e.tcode = _log.slgtc AND tran_tx_e.sprsl = 'E'  -- association [0..1]
LEFT OUTER JOIN tstct AS tran1_tx ON ( ( _log.sal_data = 'AU3' OR _log.sal_data = 'AU4' ) AND tran1_tx.tcode = _log.sal_data AND tran1_tx.sprsl = $session.system_language )  -- association [0..1]
LEFT OUTER JOIN tstct AS tran1_tx_e ON ( ( _log.sal_data = 'AU3' OR _log.sal_data = 'AU4' ) AND tran1_tx_e.tcode = _log.sal_data AND tran1_tx_e.sprsl = 'E' )  -- association [0..1]
LEFT OUTER JOIN trdirt AS prog_tx ON prog_tx.name = _log.slgrepna AND prog_tx.sprsl = $session.system_language  -- association [0..1]
LEFT OUTER JOIN trdirt AS prog_tx_e ON prog_tx_e.name = _log.slgrepna AND prog_tx_e.sprsl = 'E'  -- association [0..1]
;