SET_FOCUS SAP Method Sets the focus to a specific row or cell in the List
Below is documentation, parameters and attributes of ABAP Method SET_FOCUS within SAP class CL_FPM_LIST_UIBB_RENDERER_ATS. 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 CL_FPM_LIST_UIBB_RENDERER_ATS 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 SET_FOCUS can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method SET_FOCUS
.| Name | Type | Data Type | Description | Default Value |
| IV_ACTION_TYPE | Importing | TYPE STRING | commando | |
| IV_COLUMN_ID | Importing | TYPE STRING | The id of the column to focus | |
| IV_ROW_INDEX | Importing | TYPE I | The result index of the row to focus | |
| IV_UI_ELEMENT_ID | Importing | TYPE STRING | ||
| IV_CONSIDER_ALL_ENABLED_FIELDS | Importing | TYPE ABAP_BOOL | ||
| IV_FOCUS_REQUEST_REASON | Importing | TYPE FPM_FOCUS_REQUEST_REASON | FPM: Focus Request Reason | |
| IV_GROUPING_LEVEL | Importing | TYPE I | ||
| IV_GROUPING_RESULT_IDX | Importing | TYPE I |
Exceptions of Method SET_FOCUS
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO CL_FPM_LIST_UIBB_RENDERER_ATS.
DATA: lv_IV_ACTION_TYPE TYPE STRING,
lv_IV_COLUMN_ID TYPE STRING,
lv_IV_ROW_INDEX TYPE I,
lv_IV_UI_ELEMENT_ID TYPE STRING,
lv_IV_CONSIDER_ALL_ENABLED_FIELDS TYPE ABAP_BOOL,
lv_IV_FOCUS_REQUEST_REASON TYPE FPM_FOCUS_REQUEST_REASON,
lv_IV_GROUPING_LEVEL TYPE I,
lv_IV_GROUPING_RESULT_IDX TYPE I,
lv_other TYPE c.
CALL METHOD lo_class=>SET_FOCUS(
EXPORTING
IV_ACTION_TYPE = lv_IV_ACTION_TYPE
IV_COLUMN_ID = lv_IV_COLUMN_ID
IV_ROW_INDEX = lv_IV_ROW_INDEX
IV_UI_ELEMENT_ID = lv_IV_UI_ELEMENT_ID
IV_CONSIDER_ALL_ENABLED_FIELDS = lv_IV_CONSIDER_ALL_ENABLED_FIELDS
IV_FOCUS_REQUEST_REASON = lv_IV_FOCUS_REQUEST_REASON
IV_GROUPING_LEVEL = lv_IV_GROUPING_LEVEL
IV_GROUPING_RESULT_IDX = lv_IV_GROUPING_RESULT_IDX ).
Links to Related Class(s)
CL_FPM_L...Full list of available SAP object classes
Search for further information about these or an SAP related objects