C_RSAU_LOG_VIEW

DDL: C_RSAU_LOG_VIEW SQL: C_RSAU_BUF Type: view

Display Security Audit Log

C_RSAU_LOG_VIEW is a CDS View that provides data about "Display Security Audit Log" in SAP S/4HANA. It reads from 1 data source (rsau_log) and exposes 20 fields with key fields eventID, timestamp, slgproc, slgmand, sid. It has 8 associations to related views.

Data Sources (1)

SourceAliasJoin Type
rsau_log _header from

Associations (8)

CardinalityTargetAliasCondition
[0..*] I_RSAU_MESSAGETEXT _text_active _text_active.msgid = _header.event and _text_active.spras = $session.system_language -- text English
[0..*] I_RSAU_MESSAGETEXT _text_english _text_english.msgid = _header.event and _text_english.spras = 'E'
[0..*] tsl1d_attr _pseudo_attr _pseudo_attr.event = _header.event
[0..1] I_User _user _user.UserID = _header.slguser
[0..1] I_RSAU_EVENTS_VH _events_vh $projection.eventID = _events_vh.EventID
[0..1] I_RSAU_SLGREPNA_VH _reports_vh $projection.slgrepna = _reports_vh.report
[0..1] I_RSAU_TCODE_VH _tcodes_vh $projection.slgtc = _tcodes_vh.tcode
[0..1] I_RSAU_EVENT_DOCU _DOCU $projection.eventID = _DOCU.eventid and _DOCU.language = $session.system_language

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName C_RSAU_BUF view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
Metadata.allowExtensions true view
EndUserText.label Display Security Audit Log view
UI.headerInfo.typeName Audit Log Event view
UI.headerInfo.typeNamePlural Audit Log Events view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY eventID rsau_log event Time
KEY timestamp rsau_log log_tstmp Timestamp
KEY slgproc rsau_log slgproc Process
KEY slgmand rsau_log slgmand Client
KEY sid rsau_log sid SID
KEY instance rsau_log instance TaskCount
KEY counter rsau_log counter Version
slgtc rsau_log slgtc Transaction Code
slgrepna rsau_log slgrepna Program
description _reports_vh description Well Code Des.
rsau_text
text _DOCU text User Group
pseudo_vars _pseudo_attr var_set_1
slgltrm2 rsau_log slgltrm2 Terminal
sal_data rsau_log sal_data Variable Data
raw_text
UserID _user UserID User Name
UserDescription _user UserDescription Full Name
rsau_epp rsau_log suid_globaluid EPP
UserIDSAP_WFRTthenXelseendasis_relevant

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 C_RSAU_LOG_VIEW.
-- 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: C_RSAU_BUF

CREATE VIEW C_RSAU_LOG_VIEW AS
SELECT
  _header.event AS eventID,
  _header.log_tstmp AS timestamp,
  _header.slgproc AS slgproc,
  _header.slgmand AS slgmand,
  _header.sid AS sid,
  _header.instance AS instance,
  _header.counter AS counter,
  _header.slgtc AS slgtc,
  _header.slgrepna AS slgrepna,
  _reports_vh.description AS description,
  cast( ' ' as char255 ) AS rsau_text,
  _DOCU.text AS text,
  _pseudo_attr.var_set_1 AS pseudo_vars,
  _header.slgltrm2 AS slgltrm2,
  _header.sal_data AS sal_data,
  coalesce( _text_active.raw_text, _text_english.raw_text) AS raw_text,
  _user.UserID AS UserID,
  _user.UserDescription AS UserDescription,
  _header.suid_globaluid AS rsau_epp,
  case when _user.UserID like 'CB%' then 'X' when _user.UserID like 'CC%' then 'X' when _user.UserID like 'CP%' then 'X' when _user.UserID like 'SAP_INTE_%' then 'X' when _user.UserID like '_SAP%' then 'X' when _user.UserID = 'SAP_CUST_INI' then 'X' when _user.UserID = 'SAP*' then 'X' when _user.UserID = 'SAP_CUST_BUS' then 'X' when _user.UserID = 'SAP_WFRT' then 'X' else ' ' end as is_relevant AS UserIDSAP_WFRTthenXelseendasis_relevant
FROM rsau_log AS _header
LEFT OUTER JOIN I_RSAU_MESSAGETEXT AS _text_active ON _text_active.msgid = _header.event AND _text_active.spras = $session.system_language  -- association [0..*]
LEFT OUTER JOIN I_RSAU_MESSAGETEXT AS _text_english ON _text_english.msgid = _header.event AND _text_english.spras = 'E'  -- association [0..*]
LEFT OUTER JOIN tsl1d_attr AS _pseudo_attr ON _pseudo_attr.event = _header.event  -- association [0..*]
LEFT OUTER JOIN I_User AS _user ON _user.UserID = _header.slguser  -- association [0..1]
LEFT OUTER JOIN I_RSAU_EVENTS_VH AS _events_vh ON eventID = _events_vh.EventID  -- association [0..1]
LEFT OUTER JOIN I_RSAU_SLGREPNA_VH AS _reports_vh ON slgrepna = _reports_vh.report  -- association [0..1]
LEFT OUTER JOIN I_RSAU_TCODE_VH AS _tcodes_vh ON slgtc = _tcodes_vh.tcode  -- association [0..1]
LEFT OUTER JOIN I_RSAU_EVENT_DOCU AS _DOCU ON eventID = _DOCU.eventid AND _DOCU.language = $session.system_language  -- association [0..1]
;