REQUEST_FOCUS_ON_FIRST_FIELD SAP Method Request focus on first visible field









Below is documentation, parameters and attributes of ABAP Method REQUEST_FOCUS_ON_FIRST_FIELD within SAP class CL_FPM_LIST_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 CL_FPM_LIST_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 REQUEST_FOCUS_ON_FIRST_FIELD can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method REQUEST_FOCUS_ON_FIRST_FIELD

.

NameTypeData TypeDescriptionDefault Value
IV_CONSIDER_ALL_ENABLED_FIELDSImportingTYPE
ABAP_BOOL
IV_CONSIDER_DISABLEDImportingTYPE
ABAP_BOOL
IV_CONSIDER_DISPLAY_ONLYImportingTYPE
ABAP_BOOL
IV_CONSIDER_READ_ONLYImportingTYPE
ABAP_BOOL
IV_FOCUS_REQUEST_REASONImportingTYPE
FPM_FOCUS_REQUEST_REASON
FPM: Focus Request Reason
RV_IS_FOCUS_POSSIBLEReturningTYPE
ABAP_BOOL



Exceptions of Method REQUEST_FOCUS_ON_FIRST_FIELD

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO CL_FPM_LIST_ASSISTANCE.
DATA: lv_IV_CONSIDER_ALL_ENABLED_FIELDS TYPE ABAP_BOOL,
lv_IV_CONSIDER_DISABLED TYPE ABAP_BOOL,
lv_IV_CONSIDER_DISPLAY_ONLY TYPE ABAP_BOOL,
lv_IV_CONSIDER_READ_ONLY TYPE ABAP_BOOL,
lv_IV_FOCUS_REQUEST_REASON TYPE FPM_FOCUS_REQUEST_REASON,
lv_RV_IS_FOCUS_POSSIBLE TYPE ABAP_BOOL,
lv_other TYPE c.

CALL METHOD lo_class=>REQUEST_FOCUS_ON_FIRST_FIELD(
EXPORTING
IV_CONSIDER_ALL_ENABLED_FIELDS = lv_IV_CONSIDER_ALL_ENABLED_FIELDS
IV_CONSIDER_DISABLED = lv_IV_CONSIDER_DISABLED
IV_CONSIDER_DISPLAY_ONLY = lv_IV_CONSIDER_DISPLAY_ONLY
IV_CONSIDER_READ_ONLY = lv_IV_CONSIDER_READ_ONLY
IV_FOCUS_REQUEST_REASON = lv_IV_FOCUS_REQUEST_REASON
RECEIVING
RV_IS_FOCUS_POSSIBLE = lv_RV_IS_FOCUS_POSSIBLE )



"Alternate coding for Method Call with returning parameter
lv_RV_IS_FOCUS_POSSIBLE = lo_class=>REQUEST_FOCUS_ON_FIRST_FIELD(
EXPORTING
IV_CONSIDER_ALL_ENABLED_FIELDS = lv_IV_CONSIDER_ALL_ENABLED_FIELDS
IV_CONSIDER_DISABLED = lv_IV_CONSIDER_DISABLED
IV_CONSIDER_DISPLAY_ONLY = lv_IV_CONSIDER_DISPLAY_ONLY
IV_CONSIDER_READ_ONLY = lv_IV_CONSIDER_READ_ONLY
IV_FOCUS_REQUEST_REASON = lv_IV_FOCUS_REQUEST_REASON ).

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!