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 directlyThe 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
.| Name | Type | Data Type | Description | Default Value |
| IV_MSG_CLASS | Importing | TYPE SY-MSGID | Message Class | |
| IV_MSG_NUM | Importing | TYPE SY-MSGNO | Message Number | |
| IV_MSG_PAR_1 | Importing | TYPE ANY | ||
| IV_MSG_PAR_2 | Importing | TYPE ANY | ||
| IV_MSG_PAR_3 | Importing | TYPE ANY | ||
| IV_MSG_PAR_4 | Importing | TYPE ANY | ||
| IV_MSG_TYPE | Importing | TYPE SY-MSGTY | Message Type |
Exceptions of Method WRITE_MESSAGE
This method does not have any exceptionsExample 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