SAP Reports / Programs

SBAL_DISPLAY_2 SAP ABAP Report - Display Application Logs







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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

SLGD - Display Logs with Selection Screen


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_DISPLAY_2. "Basic submit
SUBMIT SBAL_DISPLAY_2 AND RETURN. "Return to original report after report execution complete
SUBMIT SBAL_DISPLAY_2 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: 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


INCLUDES used within this REPORT SBAL_DISPLAY_2

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:

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.



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