Ansicht
Dokumentation

BAL_LOG_EXC_ADD - Application Log: Log: Exception: Add

BAL_LOG_EXC_ADD - Application Log: Log: Exception: Add

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

An OTR text is added to the log identified with I_LOG_HANDLE (Log handle).

The exception class is provided for the function module BAL_LOG_EXC_ADD using the IMPORT parameter I_EXCEPTION.

The error severity (I_MSGTY) and (optional) the problem class (I_PROBCLASS) can also be predefined.

With E_S_MSG_HANDLE, a message handle is returned that uniquely identifies this message.

=> Note:This function module is a preliminary version to enable OTR texts of exceptions to be added to the application log.

The Application Log configuration controls whether a message is directly displayed or collected. The Exporting parameters E_MSG_WAS_DISPLAYED and E_MSG_WAS_LOGGED tell you what was done with the message.

==>Note
The log handle is optional for function modules such as BAL_LOG_MSG_ADD, BAL_LOG_MSG_CUMULATE, BAL_LOG_MSG_ADD_FREE_TEXT, etc.
If it is not specified, the default log, which can be set, with other default data, with BAL_GLB_MSG_DEFAULTS_SET is used. If no default log is defined, it is set automatically by BAL_LOG_CREATE (see here).

Related function modules

Simplest call for log creation
Different methods for collecting messages ,, ,,

Further information

Overview of the most important function groups

Quick start documentation

Application Log: Technical documentation





Parameters

E_MSG_WAS_DISPLAYED
E_MSG_WAS_LOGGED
E_S_MSG_HANDLE
I_EXCEPTION
I_LOG_HANDLE
I_MSGTY
I_PROBCLASS

Exceptions

LOG_IS_FULL
LOG_NOT_FOUND
MSG_INCONSISTENT

Function Group

SBAL

PERFORM Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 2855 Date: 20240523 Time: 094914     sap01-206 ( 44 ms )