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

.

NameTypeData TypeDescriptionDefault Value
IT_MESSAGEImportingTYPE
DTINF_TT_XML_STRINGS
XML String Table
IV_DETLEVELImportingTYPE
BAL_S_MSG-DETLEVEL
Application Log: Message Data
IV_EXCEPTIONImportingTYPE REF TO
CX_ROOT
Abstract Superclass for All Global Exceptions
IV_MESSAGETEXTImportingTYPE
STRING
IV_MESSAGETYPEImportingTYPE
CHAR2
Version Number Component



Exceptions of Method ADD_MESSAGE_LOG

This method does not have any exceptions

Example 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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!