WRITE_MESSAGE SAP Method Write messages (some lines only for message detection)









Below is documentation, parameters and attributes of ABAP Method WRITE_MESSAGE within SAP class /SCMTMS/CL_BATCH_HELPER_80. 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 /SCMTMS/CL_BATCH_HELPER_80 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 directly

The following technical details of method WRITE_MESSAGE can also be found below:

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


Parameters of Method WRITE_MESSAGE

.

NameTypeData TypeDescriptionDefault Value
IV_MSG_CLASSImportingTYPE
SY-MSGID
Message Class
IV_MSG_NUMImportingTYPE
SY-MSGNO
Message Number
IV_MSG_PAR_1ImportingTYPE
ANY
IV_MSG_PAR_2ImportingTYPE
ANY
IV_MSG_PAR_3ImportingTYPE
ANY
IV_MSG_PAR_4ImportingTYPE
ANY
IV_MSG_TYPEImportingTYPE
SY-MSGTY
Message Type



Exceptions of Method WRITE_MESSAGE

This method does not have any exceptions

Example ABAP coding


DATA: lv_IV_MSG_CLASS TYPE SY-MSGID,
lv_IV_MSG_NUM TYPE SY-MSGNO,
lv_IV_MSG_PAR_1 TYPE ANY,
lv_IV_MSG_PAR_2 TYPE ANY,
lv_IV_MSG_PAR_3 TYPE ANY,
lv_IV_MSG_PAR_4 TYPE ANY,
lv_IV_MSG_TYPE TYPE SY-MSGTY,
lv_other TYPE c.

CALL METHOD /SCMTMS/CL_BATCH_HELPER_80=>WRITE_MESSAGE(
EXPORTING
IV_MSG_CLASS = lv_IV_MSG_CLASS
IV_MSG_NUM = lv_IV_MSG_NUM
IV_MSG_PAR_1 = lv_IV_MSG_PAR_1
IV_MSG_PAR_2 = lv_IV_MSG_PAR_2
IV_MSG_PAR_3 = lv_IV_MSG_PAR_3
IV_MSG_PAR_4 = lv_IV_MSG_PAR_4
IV_MSG_TYPE = lv_IV_MSG_TYPE ).

Links to Related Class(s)

/SCMTMS/...
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!