Ansicht
Dokumentation

BAL_GLB_MSG_DEFAULTS_SET - Application Log: Global: Set message defaults

BAL_GLB_MSG_DEFAULTS_SET - Application Log: Global: Set message defaults

BAL Application Log Documentation   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Some information which is required to make a message meaningful is only available at a higher program level, not where the message is sent.

Example
The destination of a road transport is checked in a low-level routine, which knows neither the transport number nor the route involved.

The context information can be set as defaults using BAL_GLB_MSG_DEFAULTS_SET, before this routine is called, and put in the messages which it sends.
The data type BAL_S_MDEF, which contains other data (such as message attributes, parameters, the default log, etc.) as well as the context, is passed to this function module.
You can also get the current defaults with BAL_GLB_MSG_DEFAULTS_GET. This is useful when you want to change some, but not all, defaults (for example, the item number but not the order number).

  • ==>Note
    You should use the function modules BAL_GLB_MSG_DEFAULTS_GET and BAL_GLB_MSG_DEFAULTS_SET together, to be sure of the current defaults.

The defaults affect the following function modules:
BAL_LOG_MSG_ADD Put a message in a log
BAL_LOG_EXCEPTION_ADD Add exception to a log
BAL_LOG_MSG_CUMULATE Add message cumulatively
BAL_LOG_MSG_REPLACE Replace last message
BAL_LOG_MSG_ADD_FREE_TEXT Add message as free text

==> 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.

Further information

Overview of the most important function groups

Quick start documentation

Application Log: Technical documentation





Parameters

I_AUTHORIZATION
I_S_MSG_DEFAULTS

Exceptions

DEFAULTS_INCONSISTENT
NOT_AUTHORIZED

Function Group

SBAL_TOOLBOX

rdisp/max_wprun_time - Maximum work process run time   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2989 Date: 20240520 Time: 173154     sap01-206 ( 47 ms )