ADD_MESSAGE_LOG SAP Method DSD: Insert Message in Application Log
Below is documentation, parameters and attributes of ABAP Method ADD_MESSAGE_LOG within SAP class /DSD/SL_CL_ASL_TOOLS. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /DSD/SL_CL_ASL_TOOLS into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Static
This is a Static Method so you can call it directlyThe following technical details of method ADD_MESSAGE_LOG can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method ADD_MESSAGE_LOG
.| Name | Type | Data Type | Description | Default Value |
| IV_BATCH | Importing | TYPE SYBATCH | Program is running in the background | |
| IV_CUMULATE | Importing | TYPE BOOLEAN | Boolean Variable (X=true, -=false, space=unknown) | |
| IV_LOG_HANDLE | Importing | TYPE BALLOGHNDL | Application Log: Log Handle | |
| IV_MSGID | Importing | TYPE SYMSGID | Message Class | |
| IV_MSGNO | Importing | TYPE SYMSGNO | Message Number | |
| IV_MSGTY | Importing | TYPE SYMSGTY | Message Category | |
| IV_MSGV1 | Importing | TYPE SYMSGV | Message Variable | |
| IV_MSGV2 | Importing | TYPE SYMSGV | Message Variable | |
| IV_MSGV3 | Importing | TYPE SYMSGV | Message Variable | |
| IV_MSGV4 | Importing | TYPE SYMSGV | Message Variable |
Exceptions of Method ADD_MESSAGE_LOG
This method does not have any exceptionsExample ABAP coding
DATA: lv_IV_BATCH TYPE SYBATCH,
lv_IV_CUMULATE TYPE BOOLEAN,
lv_IV_LOG_HANDLE TYPE BALLOGHNDL,
lv_IV_MSGID TYPE SYMSGID,
lv_IV_MSGNO TYPE SYMSGNO,
lv_IV_MSGTY TYPE SYMSGTY,
lv_IV_MSGV1 TYPE SYMSGV,
lv_IV_MSGV2 TYPE SYMSGV,
lv_IV_MSGV3 TYPE SYMSGV,
lv_IV_MSGV4 TYPE SYMSGV,
lv_other TYPE c.
CALL METHOD /DSD/SL_CL_ASL_TOOLS=>ADD_MESSAGE_LOG(
EXPORTING
IV_BATCH = lv_IV_BATCH
IV_CUMULATE = lv_IV_CUMULATE
IV_LOG_HANDLE = lv_IV_LOG_HANDLE
IV_MSGID = lv_IV_MSGID
IV_MSGNO = lv_IV_MSGNO
IV_MSGTY = lv_IV_MSGTY
IV_MSGV1 = lv_IV_MSGV1
IV_MSGV2 = lv_IV_MSGV2
IV_MSGV3 = lv_IV_MSGV3
IV_MSGV4 = lv_IV_MSGV4 ).
Links to Related Class(s)
/DSD/SL_...Full list of available SAP object classes
Search for further information about these or an SAP related objects