SAP CL_GUI_INPUT_FIELD OO Class - Input field with history and button
CL_GUI_INPUT_FIELD is a standard SAP object class available within R/3 SAP systems depending on your version and release level. You can view/maintain the class details by entering its name into the relevant SAP transactions such as SE24, SE80 or even SE84. Below is the documentation available for class CL_GUI_INPUT_FIELD including details of:
- Interface class implementations
- Inheritance details
- Methods defined within class ( including link to full details )
- Attributes ( including initial values )
- Class Events
Inheritance
This OO class has a superclass assigned to it, which means it will inherit its objects and methods. The superclass for CL_GUI_INPUT_FIELD is CL_GUI_CONTROLMethod list of CL_GUI_INPUT_FIELD SAP class
A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.
Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD =>methodname EXPORTING/IMPORTING...
Method Name | Description | Visability |
ACTIVATE_AUTO_SUBMIT | Private | |
CALL METHOD cl_gui_input_field=>ACTIVATE_AUTO_SUBMIT...more details | ||
ACTIVATE_FIND_BUTTON | Display find button and fire SUBMIT event by click and enter | Private |
CALL METHOD cl_gui_input_field=>ACTIVATE_FIND_BUTTON...more details | ||
ACTIVATE_HISTORY | Activate history mode | Private |
CALL METHOD cl_gui_input_field=>ACTIVATE_HISTORY...more details | ||
CONSTRUCTOR | Constructor for Input field | Public |
CALL METHOD cl_gui_input_field=>CONSTRUCTOR...more details | ||
GET_TEXT | Get the field text. | Public |
CALL METHOD cl_gui_input_field=>GET_TEXT...more details | ||
SET_FIND_BUTTON_ICON | Sets Icon info to find button | Private |
CALL METHOD cl_gui_input_field=>SET_FIND_BUTTON_ICON...more details | ||
| ||
SET_FIND_BUTTON_TOOLTIP | Sets tootip info to find button | Private |
CALL METHOD cl_gui_input_field=>SET_FIND_BUTTON_TOOLTIP...more details | ||
SET_INPUT_PROMPT | Sets an input prompt into the field | Private |
CALL METHOD cl_gui_input_field=>SET_INPUT_PROMPT...more details | ||
SET_LABEL | Sets a label for the field | Private |
CALL METHOD cl_gui_input_field=>SET_LABEL...more details | ||
SET_LABEL_WIDTH | Sets the width of Label/combobox (Unit - No. of chars) | Private |
CALL METHOD cl_gui_input_field=>SET_LABEL_WIDTH...more details | ||
SET_TEXT | Set the field text. | Public |
CALL METHOD cl_gui_input_field=>SET_TEXT...more details |
CL_GUI_INPUT_FIELD attributes
List of attributes within class CL_ABAP_CHAR_UTILITIES. These can be referenced using the following syntax CL_ABAP_CHAR_UTILITIES=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.
Name | Level | Description | Initial Value | Type | Visability |
MC_FC_BACK_CLASSIC | Constant | '&F03' | LIKE UI_FUNC | Public | |
MC_FC_DISABLE_HISTORY | Constant | '&DISABLE HISTORY' | LIKE UI_FUNC | Public | |
MC_FC_ENABLE_HISTORY | Constant | '&ENABLE HISTORY' | LIKE UI_FUNC | Public | |
MC_FC_HELP | Constant | '&HELP' | LIKE UI_FUNC | Public | |
M_CL_CONTEXT_MENU | Instance Attribute | LIKE CL_CTMENU | Protected | ||
M_ID_CONTEXT_MENU | Constant | 1 | LIKE I | Public | |
M_ID_CONTEXT_MENU_SELECTED | Constant | 2 | LIKE I | Public | |
M_ID_SETITMES | Constant | 2 | LIKE I | Private | |
M_ID_SUBMIT | Constant | Submit event id | -600 | LIKE I | Public |
TEXT | Instance Attribute | Text Property | LIKE STRING | Public |
Events of Class CL_GUI_INPUT_FIELD
Events are created within your class using special event handler methods. These must be registered at runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT EXPOTING... AUTO_SUBMIT -SUBMIT - Input submitted by click or enter
Links to Related Class(s)
CL_GUI_I...Full list of available SAP object classes
Search for further information about these or an SAP related objects