FIELD_MESSAGE SAP Method Message Output (FPM or WD) related to Field
Below is documentation, parameters and attributes of ABAP Method FIELD_MESSAGE within SAP class /BCV/CL_CFG_CENTER_ASSISTANCE. 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 /BCV/CL_CFG_CENTER_ASSISTANCE 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 FIELD_MESSAGE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method FIELD_MESSAGE
.| Name | Type | Data Type | Description | Default Value |
| IO_ELEMENT | Importing | TYPE REF TO IF_WD_CONTEXT_ELEMENT | If the message needs to be mapped to a context element | |
| IV_ATTRIBUTE_NAME | Importing | TYPE STRING | Name of attribute in the element mapped to the message | |
| IV_MESSAGE | Importing | TYPE STRING | Already build message text for output | |
| IV_MESSAGE_INDEX | Importing | TYPE I | Message Index | |
| IV_MESSAGE_TYPE | Importing | TYPE SY-MSGTY | Message Type |
Exceptions of Method FIELD_MESSAGE
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO /BCV/CL_CFG_CENTER_ASSISTANCE.
DATA: lv_IO_ELEMENT TYPE IF_WD_CONTEXT_ELEMENT,
lv_IV_ATTRIBUTE_NAME TYPE STRING,
lv_IV_MESSAGE TYPE STRING,
lv_IV_MESSAGE_INDEX TYPE I,
lv_IV_MESSAGE_TYPE TYPE SY-MSGTY,
lv_other TYPE c.
CALL METHOD lo_class=>FIELD_MESSAGE(
EXPORTING
IO_ELEMENT = lv_IO_ELEMENT
IV_ATTRIBUTE_NAME = lv_IV_ATTRIBUTE_NAME
IV_MESSAGE = lv_IV_MESSAGE
IV_MESSAGE_INDEX = lv_IV_MESSAGE_INDEX
IV_MESSAGE_TYPE = lv_IV_MESSAGE_TYPE ).
Links to Related Class(s)
/BCV/CL_...Full list of available SAP object classes
Search for further information about these or an SAP related objects