SBAL_DISPLAY_2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use this report to search and display application logs by different criteria...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter SBAL_DISPLAY_2 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
SLGD - Display Logs with Selection Screen
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.
Selection Text: SO_USER = D .
Selection Text: SO_TCOD = D .
Selection Text: SO_SUB = D .
Selection Text: SO_PRG = D .
Selection Text: SO_OBJ = D .
Selection Text: SO_NUM = D .
Selection Text: SO_HDL = D .
Selection Text: SO_EXNUM = D .
Title: Display Application Logs
Text Symbol: KEY = Key
Text Symbol: APP = Application Information
Text Symbol: 015 = Created On
Text Symbol: 014 = Selection Options
Text Symbol: 012 = Exclusively
Text Symbol: 011 = Formatting display
Text Symbol: 010 = Loading logs
Text Symbol: 009 = Finding logs
Text Symbol: 008 = Text Format
Text Symbol: 007 = ALV Grid Control
Text Symbol: 006 = Display
Text Symbol: 004 = To (Date/Time)
Text Symbol: 003 = From (Date/Time)
Text Symbol: 002 = Logs Produced By
Text Symbol: 001 = Time Restriction
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
BAL_DB_SEARCH call function 'BAL_DB_SEARCH' exporting * I_CLIENT = SY-MANDT i_s_log_filter = ls_filter i_t_sel_field = lt_field importing e_t_log_header = lt_header exceptions log_not_found = 1 no_filter_criteria = 2 others = 99 .
BAL_DB_LOAD call function 'BAL_DB_LOAD' exporting i_t_log_handle = lt_handle * i_lock_handling = l_lock_handling i_do_not_load_messages = lf_alv importing e_t_log_handle = et_handle " really loaded logs * e_t_locked = et_locked exceptions others = 0.
BAL_DSP_PROFILE_STANDARD_GET call function 'BAL_DSP_PROFILE_STANDARD_GET' importing e_s_display_profile = ls_profile exceptions others = 0.
BAL_DSP_LOG_DISPLAY call function 'BAL_DSP_LOG_DISPLAY' exporting i_t_log_handle = it_handle i_s_display_profile = ls_profile * exceptions * no_data_available = 3 * others = 99 .
BAL_DSP_LOG_TEXTFORM call function 'BAL_DSP_LOG_TEXTFORM' exporting it_log_handle = it_handle * locked logs are displayed in the FM * if the function loads them itself if_load = space * EXCEPTIONS * LOG_NOT_FOUND = 1 * OTHERS = 2 .
REUSE_ALV_FIELDCATALOG_MERGE * call function 'REUSE_ALV_FIELDCATALOG_MERGE' * exporting * i_structure_name = 'BALHDR' * changing * ct_fieldcat = lt_fieldcat * exceptions * others = 99.
REUSE_ALV_GRID_DISPLAY * call function 'REUSE_ALV_GRID_DISPLAY' * exporting * i_grid_title = 'Gesperrte Protokolle'(012) * is_layout = ls_layout * it_fieldcat = lt_fieldcat * i_screen_start_column = 1 * i_screen_start_line = 1 * i_screen_end_column = 100 * i_screen_end_line = 20 * tables * t_outtab = lt_locked * exceptions * others = 99.
DDIF_FIELDINFO_GET call function 'DDIF_FIELDINFO_GET' exporting tabname = 'BAL_S_LFIL' all_types = 'X' tables dfies_tab = lt_dfies.
DD_DOMVALUE_TEXT_GET call function 'DD_DOMVALUE_TEXT_GET' exporting domname = i_domname value = l_value langu = sy-langu * BYPASS_BUFFER = ' ' importing dd07v_wa = l_wa * RC = .
SAPGUI_PROGRESS_INDICATOR call function 'SAPGUI_PROGRESS_INDICATOR' exporting percentage = i_pct text = i_text.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
SBAL_DISPLAY_2 - Display Application Logs SBAL_DISPLAY_2 - Display Application Logs SBAL_DISPLAY - Application log: Standard log display SBAL_DISPLAY - Application log: Standard log display SBAL_DEMO_CONTROL_SIMPLE - Application Log: Demo program: Display log as Control SBAL_DEMO_CONTROL_SIMPLE - Application Log: Demo program: Display log as Control