CREATE_CONTAINER_FOR_CONTEXT SAP Method Creates a message container for a specific context
Below is documentation, parameters and attributes of ABAP Method CREATE_CONTAINER_FOR_CONTEXT within SAP class /BOBF/CL_FRW_MESSAGE_FACTORY. 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 /BOBF/CL_FRW_MESSAGE_FACTORY 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 CREATE_CONTAINER_FOR_CONTEXT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CREATE_CONTAINER_FOR_CONTEXT
.| Name | Type | Data Type | Description | Default Value |
| IT_KEY | Importing | TYPE /BOBF/T_FRW_KEY | BOPF instance keys | |
| IV_CONTEXT | Importing | TYPE TY_CONTEXT | Message context | |
| RO_MESSAGE_CONTAINER | Returning | TYPE REF TO /BOBF/IF_FRW_MESSAGE | Container to collect messages |
Exceptions of Method CREATE_CONTAINER_FOR_CONTEXT
This method does not have any exceptionsExample ABAP coding
DATA: lv_IT_KEY TYPE /BOBF/T_FRW_KEY,
lv_IV_CONTEXT TYPE TY_CONTEXT,
lv_RO_MESSAGE_CONTAINER TYPE /BOBF/IF_FRW_MESSAGE,
lv_other TYPE c.
CALL METHOD /BOBF/CL_FRW_MESSAGE_FACTORY=>CREATE_CONTAINER_FOR_CONTEXT(
EXPORTING
IT_KEY = lv_IT_KEY
IV_CONTEXT = lv_IV_CONTEXT
RECEIVING
RO_MESSAGE_CONTAINER = lv_RO_MESSAGE_CONTAINER )
"Alternate coding for Method Call with returning parameter
lv_RO_MESSAGE_CONTAINER = /BOBF/CL_FRW_MESSAGE_FACTORY=>CREATE_CONTAINER_FOR_CONTEXT(
EXPORTING
IT_KEY = lv_IT_KEY
IV_CONTEXT = lv_IV_CONTEXT ).
Links to Related Class(s)
/BOBF/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects