SAP Reports / Programs | Basis Components | Basis Services / Communication Interfaces | Basis Application Log(BC-SRV-BAL) SAP BC

SBAL_VER_03 SAP ABAP Report - Verification program: Create several logs and messages







SBAL_VER_03 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 SBAL_VER_03 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 SBAL_VER_03. "Basic submit
SUBMIT SBAL_VER_03 AND RETURN. "Return to original report after report execution complete
SUBMIT SBAL_VER_03 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: P_DEBUG = Debugging
Title: Verification program: Create several logs and messages


INCLUDES used within this REPORT SBAL_VER_03

SBAL_VER.


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:

BAL_GLB_AUTHORIZATION_GET CALL FUNCTION 'BAL_GLB_AUTHORIZATION_GET' IMPORTING e_authorization = l_authorization EXCEPTIONS authorization_already_done = 1 OTHERS = 2.

BAL_GLB_AUTHORIZATION_GET CALL FUNCTION 'BAL_GLB_AUTHORIZATION_GET' IMPORTING e_authorization = l_authorization2 EXCEPTIONS authorization_already_done = 1 OTHERS = 2.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_log IMPORTING e_log_handle = l_log_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.

BAL_GLB_CONFIG_GET CALL FUNCTION 'BAL_GLB_CONFIG_GET' IMPORTING e_s_configuration = ls_conf.

BAL_GLB_CONFIG_SET CALL FUNCTION 'BAL_GLB_CONFIG_SET' EXPORTING i_authorization = l_authorization i_s_configuration = ls_conf EXCEPTIONS not_authorized = 1 OTHERS = 2.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = l_log_handle i_s_msg = ls_msg IMPORTING * E_S_MSG_HANDLE = e_msg_was_logged = l_msg_was_logged e_msg_was_displayed = l_msg_was_displayed EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_GLB_AUTHORIZATION_RESET CALL FUNCTION 'BAL_GLB_AUTHORIZATION_RESET' EXPORTING i_authorization = l_authorization EXCEPTIONS not_authorized = 1 OTHERS = 2.

BAL_GLB_CONFIG_SET CALL FUNCTION 'BAL_GLB_CONFIG_SET' EXPORTING i_s_configuration = ls_conf EXCEPTIONS not_authorized = 1 OTHERS = 2.

BAL_STATISTICS_GLB_SET CALL FUNCTION 'BAL_STATISTICS_GLB_SET' EXPORTING i_s_statistics_context_def = ls_sdef EXCEPTIONS definition_inconsistent = 2 OTHERS = 3.

BAL_STATISTICS_LOG_SET CALL FUNCTION 'BAL_STATISTICS_LOG_SET' EXPORTING i_log_handle = l_log_handle i_s_statistics_context_def = ls_sdef EXCEPTIONS log_not_found = 1 definition_inconsistent = 2 OTHERS = 3.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = l_log_handle i_s_msg = ls_msg IMPORTING * E_S_MSG_HANDLE = e_msg_was_logged = l_msg_was_logged e_msg_was_displayed = l_msg_was_displayed EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = l_log_handle i_s_msg = ls_msg IMPORTING * E_S_MSG_HANDLE = e_msg_was_logged = l_msg_was_logged e_msg_was_displayed = l_msg_was_displayed EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = l_log_handle i_s_msg = ls_msg IMPORTING * E_S_MSG_HANDLE = e_msg_was_logged = l_msg_was_logged e_msg_was_displayed = l_msg_was_displayed EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_GLB_MSG_CURRENT_HANDLE_GET CALL FUNCTION 'BAL_GLB_MSG_CURRENT_HANDLE_GET' IMPORTING e_s_msg_handle = ls_msg_handle EXCEPTIONS no_current_msg = 1 OTHERS = 2.

BAL_LOG_MSG_CHECK CALL FUNCTION 'BAL_LOG_MSG_CHECK' EXPORTING i_s_msg = ls_msg EXCEPTIONS msg_not_complete = 1 msg_context_inconsistent = 2 msg_parameters_inconsistent = 3 OTHERS = 4.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = l_log_handle i_s_msg = ls_msg IMPORTING * e_s_msg_handle = ls_msg_handle e_msg_was_logged = l_msg_was_logged e_msg_was_displayed = l_msg_was_displayed EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_LOG_MSG_REPLACE CALL FUNCTION 'BAL_LOG_MSG_REPLACE' EXPORTING i_log_handle = l_log_handle i_s_msg = ls_msg IMPORTING * E_S_MSG_HANDLE = e_msg_was_logged = l_msg_was_logged e_msg_was_displayed = l_msg_was_displayed EXCEPTIONS log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 OTHERS = 4.

BAL_STATISTICS_GLB_GET CALL FUNCTION 'BAL_STATISTICS_GLB_GET' IMPORTING * E_S_STATISTICS_COUNTS = e_t_statistics_context = lt_statistics * E_S_STATISTICS_CONTEXT_DEF = EXCEPTIONS log_not_found = 1 OTHERS = 2.

BAL_STATISTICS_LOG_GET





CALL FUNCTION 'BAL_STATISTICS_LOG_GET' EXPORTING i_log_handle = l_log_handle IMPORTING * E_S_STATISTICS_COUNTS = e_t_statistics_context = lt_statistics * E_S_STATISTICS_CONTEXT_DEF = EXCEPTIONS log_not_found = 1 OTHERS = 2.

BAL_LOG_HDR_READ CALL FUNCTION 'BAL_LOG_HDR_READ' EXPORTING i_log_handle = l_log_handle * I_LANGU = SY-LANGU IMPORTING * E_S_LOG = * E_EXISTS_ON_DB = * E_CREATED_IN_CLIENT = * E_SAVED_IN_CLIENT = * E_IS_MODIFIED = * E_LOGNUMBER = * E_STATISTICS = e_txt_object = l_txt_object e_txt_subobject = l_txt_subobject e_txt_altcode = l_txt_altcode e_txt_almode = l_txt_almode e_txt_alstate = l_txt_alstate e_txt_probclass = l_txt_probclass e_txt_del_before = l_txt_del_before * E_WARNING_TEXT_NOT_FOUND = EXCEPTIONS log_not_found = 1 OTHERS = 2.

BAL_LOG_MSG_READ CALL FUNCTION 'BAL_LOG_MSG_READ' EXPORTING i_s_msg_handle = ls_msg_handle * I_LANGU = SY-LANGU IMPORTING * E_S_MSG = * E_EXISTS_ON_DB = e_txt_msgty = l_txt_msgty e_txt_msgid = l_txt_msgid e_txt_detlevel = l_txt_detlevel e_txt_probclass = l_txt_probclass e_txt_msg = l_txt_msg * E_WARNING_TEXT_NOT_FOUND = EXCEPTIONS log_not_found = 1 msg_not_found = 2 OTHERS = 3.

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING * I_CLIENT = SY-MANDT i_in_update_task = 'X' i_save_all = 'X' * I_T_LOG_HANDLE = * IMPORTING * E_NEW_LOGNUMBERS = EXCEPTIONS log_not_found = 1 save_not_allowed = 2 numbering_error = 3 OTHERS = 4.

BAL_DB_ENQUEUE CALL FUNCTION 'BAL_DB_ENQUEUE' EXPORTING i_log_handle = l_log_handle * I_SCOPE = '2' EXCEPTIONS enqueue_failed = 1 OTHERS = 2.

BAL_DB_RELOAD CALL FUNCTION 'BAL_DB_RELOAD' EXPORTING i_t_log_handle = lt_log_handle EXCEPTIONS no_logs_specified = 1 log_not_found = 2 OTHERS = 3.

BAL_DB_DEQUEUE CALL FUNCTION 'BAL_DB_DEQUEUE' EXPORTING i_log_handle = l_log_handle.

BAL_GLB_MEMORY_EXPORT CALL FUNCTION 'BAL_GLB_MEMORY_EXPORT'.

BAL_GLB_MEMORY_IMPORT CALL FUNCTION 'BAL_GLB_MEMORY_IMPORT' EXPORTING i_complete_overwrite = 'X'.

BAL_DSP_OUTPUT_PAI CALL FUNCTION 'BAL_DSP_OUTPUT_PAI' EXPORTING i_fcode = 'DUMMY'.



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