GET_MESSAGES SAP Method Returns Messages that Fulfill Selection Criteria
Below is documentation, parameters and attributes of ABAP Method GET_MESSAGES within SAP class /GC1/CL_CO_MSG_HANDLER. 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 /GC1/CL_CO_MSG_HANDLER 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 GET_MESSAGES can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_MESSAGES
.| Name | Type | Data Type | Description | Default Value |
| I_STR_DATE_TIME | Importing | TYPE BAL_S_DTTM | Application Log: Date and time interval | |
| I_STR_MSG_FILTER | Importing | TYPE BAL_S_MFIL | Application Log: Message Filter Criteria | |
| E_TAB_MSG | Exporting | TYPE /GC1/TAB_MSG | Messages Table |
Exceptions of Method GET_MESSAGES
/GC1/TAB_MSG
Example ABAP coding
DATA: lo_class TYPE REF TO /GC1/CL_CO_MSG_HANDLER.
DATA: lv_E_TAB_MSG TYPE /GC1/TAB_MSG,
lv_I_STR_DATE_TIME TYPE BAL_S_DTTM,
lv_I_STR_MSG_FILTER TYPE BAL_S_MFIL,
lv_other TYPE c.
CALL METHOD lo_class=>GET_MESSAGES(
EXPORTING
I_STR_DATE_TIME = lv_I_STR_DATE_TIME
I_STR_MSG_FILTER = lv_I_STR_MSG_FILTER
IMPORTING
E_TAB_MSG = lv_E_TAB_MSG ).
Links to Related Class(s)
/GC1/CL_...Full list of available SAP object classes
Search for further information about these or an SAP related objects