SAP Reports / Programs

RSAU_READ_AUDITLOG_EXTERNAL SAP ABAP Report - SecAudit: Example of Reading Alerts Using BAPIs







RSAU_READ_AUDITLOG_EXTERNAL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RSAU_READ_AUDITLOG_EXTERNAL into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RSAU_READ_AUDITLOG_EXTERNAL. "Basic submit
SUBMIT RSAU_READ_AUDITLOG_EXTERNAL AND RETURN. "Return to original report after report execution complete
SUBMIT RSAU_READ_AUDITLOG_EXTERNAL VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: AUDITLEV = D Audit level
Selection Text: ETIME = End time YYYYMMDDHHMMSS
Selection Text: EXUSER = D External user
Selection Text: INSTANCE = Instance
Selection Text: RFCDEST = D RFC destination
Selection Text: STIME = Start time YYYYMMDDHHMMSS
Selection Text: SYSTEMID = D SAP System ID
Title: SecAudit: Example of Reading Alerts Using BAPIs


INCLUDES used within this REPORT RSAU_READ_AUDITLOG_EXTERNAL

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

BAPI_XMI_LOGON CALL FUNCTION 'BAPI_XMI_LOGON' DESTINATION RFCDEST EXPORTING EXTCOMPANY = 'SecureCompany' "#EC NOTEXT EXTPRODUCT = 'TestProduct1' "#EC NOTEXT INTERFACE = salx_iface_name VERSION = '1.0' "#EC NOTEXT

BAPI_XMI_SET_AUDITLEVEL CALL FUNCTION 'BAPI_XMI_SET_AUDITLEVEL' DESTINATION RFCDEST EXPORTING AUDITLEVEL = AUDIT_LEVEL IMPORTING RETURN = RETURN EXCEPTIONS COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT SYSTEM_FAILURE = 2 MESSAGE MSG_TEXT.

BAPI_SYSTEM_MTE_GETTIDBYNAME CALL FUNCTION 'BAPI_SYSTEM_MTE_GETTIDBYNAME' DESTINATION RFCDEST EXPORTING system_id = system_id context_name = context_name object_name = object_name * mte_name = external_user_name = external_user_name IMPORTING tid = tid return = return EXCEPTIONS COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT SYSTEM_FAILURE = 2 MESSAGE MSG_TEXT.

BAPI_SYSTEM_MTE_GETTREE CALL FUNCTION 'BAPI_SYSTEM_MTE_GETTREE' DESTINATION RFCDEST EXPORTING TID = tid * MAX_TREE_DEPTH = 0 * VISIBLE_LEVEL = 3 EXTERNAL_USER_NAME = EXTERNAL_USER_NAME IMPORTING RETURN = return TABLES TREE_NODES = TREE_NODES EXCEPTIONS COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT SYSTEM_FAILURE = 2 MESSAGE MSG_TEXT.

BAPI_SYSTEM_MTE_GETMLHIS CALL FUNCTION 'BAPI_SYSTEM_MTE_GETMLHIS' DESTINATION RFCDEST EXPORTING TID = TID START_TIMESTAMP = START_TIMESTAMP END_TIMESTAMP = END_TIMESTAMP EXTERNAL_USER_NAME = EXTERNAL_USER_NAME IMPORTING RETURN = RETURN TABLES MSG_LINE_DATA = MSG_LINE_TBL XMI_MSG_RAW = XMI_RAW_TBL XMI_MSG_EXT = XMI_EXT_TBL EXCEPTIONS COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT SYSTEM_FAILURE = 2 MESSAGE MSG_TEXT.

BAPI_XMI_LOGOFF CALL FUNCTION 'BAPI_XMI_LOGOFF' DESTINATION RFCDEST EXPORTING interface = salx_iface_name IMPORTING return = return EXCEPTIONS COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT SYSTEM_FAILURE = 2 MESSAGE MSG_TEXT.

SXMI_LOGMSG_ENTER_INT CALL FUNCTION 'SXMI_LOGMSG_ENTER_INT' EXPORTING extuser = EXTERNAL_USER_NAME interface = salx_iface_name msgid = 'XM' msgno = '002' msgarg1 = function auditlevel = 2.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RSAU_READ_AUDITLOG_EXTERNAL or its description.