ADD_TO_TRACE SAP Method Add record to trace









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

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


Parameters of Method ADD_TO_TRACE

.

NameTypeData TypeDescriptionDefault Value
IV_CONTEXT_IDImportingTYPE
/SOMO/MA_S_TRACE_INFO-CONTEXT_ID
Trace information structure
IV_MONIDImportingTYPE
/SOMO/MA_S_TRACE_INFO-MONID
Trace information structure
IV_MSGV1ImportingTYPE
CHAR50
Comment
IV_MSGV2ImportingTYPE
CHAR50
Comment
IV_MSGV3ImportingTYPE
CHAR50
Comment
IV_MSGV4ImportingTYPE
CHAR50
Comment
IV_TEXTImportingTYPE
/SOMO/MA_S_TRACE_INFO-TEXT
Message text
IV_TRACE_LEVELImportingTYPE
INT4
/somo/if_ex_unijobmondc~c_trc_basic or c_trc_detail



Exceptions of Method ADD_TO_TRACE

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /SOMO/CL_IM_SMSE_HPLSMSE.
DATA: lv_IV_CONTEXT_ID TYPE /SOMO/MA_S_TRACE_INFO-CONTEXT_ID,
lv_IV_MONID TYPE /SOMO/MA_S_TRACE_INFO-MONID,
lv_IV_MSGV1 TYPE CHAR50,
lv_IV_MSGV2 TYPE CHAR50,
lv_IV_MSGV3 TYPE CHAR50,
lv_IV_MSGV4 TYPE CHAR50,
lv_IV_TEXT TYPE /SOMO/MA_S_TRACE_INFO-TEXT,
lv_IV_TRACE_LEVEL TYPE INT4,
lv_other TYPE c.

CALL METHOD lo_class=>ADD_TO_TRACE(
EXPORTING
IV_CONTEXT_ID = lv_IV_CONTEXT_ID
IV_MONID = lv_IV_MONID
IV_MSGV1 = lv_IV_MSGV1
IV_MSGV2 = lv_IV_MSGV2
IV_MSGV3 = lv_IV_MSGV3
IV_MSGV4 = lv_IV_MSGV4
IV_TEXT = lv_IV_TEXT
IV_TRACE_LEVEL = lv_IV_TRACE_LEVEL ).

Links to Related Class(s)

/SOMO/CL...
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!