ADD_MESSAGE SAP Method Add message into application log









Below is documentation, parameters and attributes of ABAP Method ADD_MESSAGE within SAP class /GSINS/CL_BR_APPLOG. 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 /GSINS/CL_BR_APPLOG 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 can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method ADD_MESSAGE

.

NameTypeData TypeDescriptionDefault Value
IT_PARAMSImportingTYPE
BAL_T_PAR
Application Log: Parameter Name and Value Table
IV_MSGIDImportingTYPE
SYMSGID
Message Class
IV_MSGNOImportingTYPE
SYMSGNO
Message Number
IV_MSGTXTImportingTYPE
STRING
IV_MSGTYImportingTYPE
SYMSGTY
Message Type
IV_MSGV1ImportingTYPE
SYMSGV
Message Variable
IV_MSGV2ImportingTYPE
SYMSGV
Message Variable
IV_MSGV3ImportingTYPE
SYMSGV
Message Variable
IV_MSGV4ImportingTYPE
SYMSGV
Message Variable
IV_PROBCLASSImportingTYPE
BALPROBCL
Application log: Message problem class



Exceptions of Method ADD_MESSAGE

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /GSINS/CL_BR_APPLOG.
DATA: lv_IT_PARAMS TYPE BAL_T_PAR,
lv_IV_MSGID TYPE SYMSGID,
lv_IV_MSGNO TYPE SYMSGNO,
lv_IV_MSGTXT TYPE STRING,
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_IV_PROBCLASS TYPE BALPROBCL,
lv_other TYPE c.

CALL METHOD lo_class=>ADD_MESSAGE(
EXPORTING
IT_PARAMS = lv_IT_PARAMS
IV_MSGID = lv_IV_MSGID
IV_MSGNO = lv_IV_MSGNO
IV_MSGTXT = lv_IV_MSGTXT
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
IV_PROBCLASS = lv_IV_PROBCLASS ).

Links to Related Class(s)

/GSINS/C...
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!