P_RSAU_LOG
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)
| Source | Alias | Join Type |
|---|---|---|
| CDS_GET_RSAU_LOG | _log | from |
| I_RSAU_META_DATA | _meta | left_outer |
| I_RSAU_UGROUP | _usr | left_outer |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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