Ansicht
Dokumentation

BAL_GLB_MEMORY_REFRESH - CAUTION: Resets the ENTIRE application log memory (=> FM documentation)

BAL_GLB_MEMORY_REFRESH - CAUTION: Resets the ENTIRE application log memory (=> FM documentation)

CL_GUI_FRONTEND_SERVICES - Frontend Services   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module resets

  • the ENTIRE memory (I_REFRESH_ALL = 'X') or
  • a SUBSET (I_REFRESH_ALL = ' ' and I_T_LOG_TO_BE_REFRESHED filled) ) of the Application Log memory.

CAUTION:

Only use this function if you want to delete ALL logs (not just yours) from the main memory of the Application Log.
This will normally only be in the main program.

To delete only your own data from the main memory (e.g. all for object ABC):

=====================================================================
DATA:
l_s_log_filter TYPE bal_s_lfil,
l_r_object TYPE bal_s_obj,
l_t_log_handle TYPE bal_t_logh,
l_log_handle TYPE balloghndl.

l_r_object-sign = 'I'.
l_r_object-option = 'EQ'.
l_r_object-low = 'ABC'.
APPEND l_r_object TO l_s_log_filter-object.
CALL FUNCTION 'BAL_GLB_SEARCH_LOG'
EXPORTING
i_s_log_filter = l_s_log_filter
IMPORTING
e_t_log_handle = l_t_log_handle
EXCEPTIONS
OTHERS = 0.
LOOP AT l_t_log_handle INTO l_log_handle.
CALL FUNCTION 'BAL_LOG_REFRESH'
EXPORTING
i_log_handle = l_log_handle
EXCEPTIONS
OTHERS = 0.
ENDLOOP.
=====================================================================

==> Note
This function module contains the optional authorization parameter I_AUTHORIZATION, which prevents "unauthorized" calls of function modules which perform critical activities such as initializations, in which case the exception NOT_AUTHORIZED is raised. See Authorization in Application Log.

Related function modules

Further information

Overview of the most important function groups

Quick start documentation

Application Log: Technical documentation





Parameters

I_AUTHORIZATION
I_REFRESH_ALL
I_T_LOGS_TO_BE_REFRESHED

Exceptions

NOT_AUTHORIZED

Function Group

SBAL_TOOLBOX

Addresses (Business Address Services)   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 2946 Date: 20240523 Time: 101440     sap01-206 ( 34 ms )