ADD_TEXT SAP Method Add simple text message
Below is documentation, parameters and attributes of ABAP Method ADD_TEXT within SAP class IF_STCTM_TASK_MESSAGES. 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 IF_STCTM_TASK_MESSAGES 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_TEXT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method ADD_TEXT
.| Name | Type | Data Type | Description | Default Value |
| IV_FIELDNAME | Importing | TYPE CLIKE | Parameter Fieldname | |
| IV_TEXT | Importing | TYPE BAPI_MSG | Message text | |
| IV_TYPE | Importing | TYPE SYMSGTY | Message type |
Exceptions of Method ADD_TEXT
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO IF_STCTM_TASK_MESSAGES.
DATA: lv_IV_FIELDNAME TYPE CLIKE,
lv_IV_TEXT TYPE BAPI_MSG,
lv_IV_TYPE TYPE SYMSGTY,
lv_other TYPE c.
CALL METHOD lo_class=>ADD_TEXT(
EXPORTING
IV_FIELDNAME = lv_IV_FIELDNAME
IV_TEXT = lv_IV_TEXT
IV_TYPE = lv_IV_TYPE ).
Links to Related Class(s)
IF_STCTM...Full list of available SAP object classes
Search for further information about these or an SAP related objects