Code: Alles auswählen.
Beispiel
Alle sehr wichtigen und wichtigen Fehler suchen.
================================================================
DATA:
l_s_msg_filter TYPE bal_s_mfil,
l_r_msgty TYPE bal_s_msty,
l_r_probclass TYPE bal_s_prcl.
* Meldungstyp definieren
l_r_msgty-option = 'EQ'.
l_r_msgty-sign = 'I'.
l_r_msgty-low = 'E'. "Fehler
append l_r_msgty to l_s_msg_filter-msgty.
* Problemklasse definieren
l_r_probclass-option = 'EQ'.
l_r_probclass-sign = 'I'.
l_r_probclass-low = '1'. "Sehr wichtige Meldungen
append l_r_probclass to l_s_msg_filter-probclass.
l_r_probclass-low = '2'. "Wichtige Meldungen
append l_r_probclass to l_s_msg_filter-probclass.
Code: Alles auswählen.
* Meldungstyp definieren
l_r_msgty-option = 'EQ'.
l_r_msgty-sign = 'I'.
l_r_msgty-low = 'E'. "Fehler
APPEND l_r_msgty TO l_s_msg_filter-msgty.
* Problemklasse definieren
l_r_probclass-option = 'EQ'.
l_r_probclass-sign = 'I'.
l_r_probclass-low = '1'. "Sehr wichtige Meldungen
APPEND l_r_probclass TO l_s_msg_filter-probclass.
l_r_probclass-low = '2'. "Wichtige Meldungen
APPEND l_r_probclass TO l_s_msg_filter-probclass.
l_r_probclass-low = '3'.
APPEND l_r_probclass TO l_s_msg_filter-probclass.
* call display function module
* We do not specify any filter (like I_S_LOG_FILTER, ...,
* I_T_MSG_HANDLE) since we want to display all logs available
CALL FUNCTION 'BAL_DSP_LOG_DISPLAY'
EXPORTING
i_s_display_profile = l_s_display_profile
i_s_msg_filter = l_s_msg_filter
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.