ADD_MESSAGE_LOG SAP Method Add messages to Application logs
Below is documentation, parameters and attributes of ABAP Method ADD_MESSAGE_LOG within SAP class DTINF_IF_INFORMATION. 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 DTINF_IF_INFORMATION into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The 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 |
| IT_MESSAGE | Importing | TYPE DTINF_TT_XML_STRINGS | XML String Table | |
| IV_DETLEVEL | Importing | TYPE BAL_S_MSG-DETLEVEL | Application Log: Message Data | |
| IV_EXCEPTION | Importing | TYPE REF TO CX_ROOT | Abstract Superclass for All Global Exceptions | |
| IV_MESSAGETEXT | Importing | TYPE STRING | ||
| IV_MESSAGETYPE | Importing | TYPE CHAR2 | Version Number Component |
Exceptions of Method ADD_MESSAGE_LOG
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO DTINF_IF_INFORMATION.
DATA: lv_IT_MESSAGE TYPE DTINF_TT_XML_STRINGS,
lv_IV_DETLEVEL TYPE BAL_S_MSG-DETLEVEL,
lv_IV_EXCEPTION TYPE CX_ROOT,
lv_IV_MESSAGETEXT TYPE STRING,
lv_IV_MESSAGETYPE TYPE CHAR2,
lv_other TYPE c.
CALL METHOD lo_class=>ADD_MESSAGE_LOG(
EXPORTING
IT_MESSAGE = lv_IT_MESSAGE
IV_DETLEVEL = lv_IV_DETLEVEL
IV_EXCEPTION = lv_IV_EXCEPTION
IV_MESSAGETEXT = lv_IV_MESSAGETEXT
IV_MESSAGETYPE = lv_IV_MESSAGETYPE ).
Links to Related Class(s)
DTINF_IF...Full list of available SAP object classes
Search for further information about these or an SAP related objects