SAP Reports / Programs | SAP Business Information Warehouse | Warehouse Management | Data Staging(BW-WHM-DST) SAP BW

RSBATCH_WRITE_PROT_TO_APPLLOG SAP ABAP Report - Writes Temporarily Saved Logs to the Application Log







RSBATCH_WRITE_PROT_TO_APPLLOG 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 RSBATCH_WRITE_PROT_TO_APPLLOG 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 RSBATCH_WRITE_PROT_TO_APPLLOG. "Basic submit
SUBMIT RSBATCH_WRITE_PROT_TO_APPLLOG AND RETURN. "Return to original report after report execution complete
SUBMIT RSBATCH_WRITE_PROT_TO_APPLLOG VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Writes Temporarily Saved Logs to the Application Log
Text Symbol: 024 = Scheduler
Text Symbol: 025 = Monitor
Text Symbol: 026 = Tree Callback
Text Symbol: 027 = Log


INCLUDES used within this REPORT RSBATCH_WRITE_PROT_TO_APPLLOG

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:

ENQUEUE_ERSBATCHDATA call function 'ENQUEUE_ERSBATCHDATA' exporting * MODE_RSBATCHDATA = 'E' relid = '99' _scope = '3' _wait = 'X' exceptions foreign_lock = 1 system_failure = 2 others = 3.

DEQUEUE_ERSBATCHDATA call function 'DEQUEUE_ERSBATCHDATA' exporting * MODE_RSBATCHDATA = 'E' relid = '99' * _SCOPE = '3' _synchron = 'X' * _COLLECT = ' ' .

ENQUEUE_ERSBATCHDATA call function 'ENQUEUE_ERSBATCHDATA' exporting * MODE_RSBATCHDATA = 'E' relid = '02' _scope = '3' _wait = 'X' exceptions foreign_lock = 1 system_failure = 2 others = 3.

RSSM_SLEEP_DEBUG call function 'RSSM_SLEEP_DEBUG' exporting i_seconds = 1 i_always = 'X'.

DEQUEUE_ERSBATCHDATA call function 'DEQUEUE_ERSBATCHDATA' exporting * MODE_RSBATCHDATA = 'E' relid = '99' * _SCOPE = '3' _synchron = 'X' * _COLLECT = ' ' .

RSSM_GET_TIME call function 'RSSM_GET_TIME' importing e_timestamps = l_ts_begin.

DEQUEUE_ERSBATCHDATA call function 'DEQUEUE_ERSBATCHDATA' exporting * MODE_RSBATCHDATA = 'E' relid = '02' * _SCOPE = '3' _synchron = 'X' * _COLLECT = ' ' .

RSSM_GET_TIME call function 'RSSM_GET_TIME' importing e_timestamps = l_ts_end.

BAL_DB_LOAD call function 'BAL_DB_LOAD' exporting * I_T_LOG_HEADER = i_t_log_handle = l_t_log_handle * I_T_LOGNUMBER = * I_CLIENT = SY-MANDT * I_DO_NOT_LOAD_MESSAGES = ' ' * I_EXCEPTION_IF_ALREADY_LOADED = importing e_t_log_handle = l_t_log_hdl2 * E_T_MSG_HANDLE = exceptions no_logs_specified = 1 log_not_found = 2 log_already_loaded = 3 others = 4.

RSSM_GET_TIME call function 'RSSM_GET_TIME' importing e_timestamps = l_s_logwrite-timestamp.

APPL_LOG_INIT call function 'APPL_LOG_INIT' exporting object = l_object subobject = l_subobject.

APPL_LOG_WRITE_HEADER call function 'APPL_LOG_WRITE_HEADER' exporting header = l_s_header importing e_log_handle = l_log_handle.

RSSM_GET_TIME call function 'RSSM_GET_TIME' importing e_timestamps = l_s_logwrite-timestamp.

APPL_LOG_WRITE_MESSAGES call function 'APPL_LOG_WRITE_MESSAGES' exporting update_or_insert = 'I' log_handle = l_log_handle tables messages = l_t_protocol.

APPL_LOG_WRITE_DB call function 'APPL_LOG_WRITE_DB' exporting object = l_object subobject = l_subobject log_handle = l_log_handle tables object_with_lognumber = l_t_logs exceptions object_not_found = 1 subobject_not_found = 2 internal_error = 3 others = 4.

BAL_LOG_MSG_ADD call function 'BAL_LOG_MSG_ADD' exporting i_log_handle = l_log_handle i_s_msg = l_s_deep_prot * IMPORTING * E_S_MSG_HANDLE = * E_MSG_WAS_LOGGED = * E_MSG_WAS_DISPLAYED = exceptions log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 others = 4.

BAL_DB_SAVE call function 'BAL_DB_SAVE' exporting * I_SAVE_ALL = ' ' i_t_log_handle = l_t_log_handle * IMPORTING * E_NEW_LOGNUMBERS = exceptions log_not_found = 1 save_not_allowed = 2 numbering_error = 3 others = 4.

ENQUEUE_ERSBATCHDATA call function 'ENQUEUE_ERSBATCHDATA' exporting * MODE_RSBATCHDATA = 'E' relid = '02' _scope = '3' _wait = 'X' exceptions foreign_lock = 1 system_failure = 2 others = 3.

RSSM_SLEEP_DEBUG





call function 'RSSM_SLEEP_DEBUG' exporting i_seconds = 1 i_always = 'X'.

DB_COMMIT call function 'DB_COMMIT'.

DB_COMMIT call function 'DB_COMMIT'.

RSSM_GET_TIME call function 'RSSM_GET_TIME' exporting i_datum_loc = l_date i_uzeit_loc = '000000' importing e_timestamps = l_timestamp.

DB_COMMIT call function 'DB_COMMIT'.

DEQUEUE_ERSBATCHDATA call function 'DEQUEUE_ERSBATCHDATA' exporting * MODE_RSBATCHDATA = 'E' relid = '02' * _SCOPE = '3' _synchron = 'X' * _COLLECT = ' ' .

DEQUEUE_ERSBATCHDATA call function 'DEQUEUE_ERSBATCHDATA' exporting * MODE_RSBATCHDATA = 'E' relid = '99' * _SCOPE = '3' _synchron = 'X' * _COLLECT = ' ' .

RSSM_SUBSTRACT_TIMESTAMPS call function 'RSSM_SUBSTRACT_TIMESTAMPS' exporting timestamp1 = l_ts_end timestamp2 = l_ts_begin importing * TIME = secs = l_secs days = l_days * MILISECS = .

DB_COMMIT call function 'DB_COMMIT'.

RSDU_ANALYZE_TABLE call function 'RSDU_ANALYZE_TABLE' exporting i_tablnm = 'RSBATCHDATA' i_percentage = 100 * I_TEMP_TABLE = RS_C_FALSE * I_FORCE_ESTIMATE = RS_C_FALSE exceptions analyze_failed = 1 dbms_not_supported = 2 inherited_error = 3 others = 4.

RSSM_GET_TIME call function 'RSSM_GET_TIME' importing e_timestamps = l_s_stat-timestamp.



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 RSBATCH_WRITE_PROT_TO_APPLLOG or its description.