ABAP OO Class Methods

IF_RECA_SEARCH_FIELD SAP Interface - Search Strategy and Search Fields







IF_RECA_SEARCH_FIELD is a standard SAP interface, see below for any documentation including details of methods, attributes, events etc. Interfaces are defined much the same as a class using the same transactions but act a bit like a template (in none OO terms). For example, a class would implement the interface and then inherit all of the methods etc from it. This provides a mechanism for unrelated objects to use a set of common behaviours and functionality.


You may have seen this already without knowing what it was, within SAP have you ever seen the method name prefixed by the name of an interface such as IF_RECA_SEARCH_FIELD~METHOD_NAME . This means that the class has implemented an interface and that this method has been inherited from it.


For further relevant information about this interface enter IF_RECA_SEARCH_FIELD into the relevant SAP transactions such as SE24, SE80. Also see the Resource section below to view other useful tips, screenshots, links and general information related to this SAP interface and its methods. Or even add your own for future reference



Methods of IF_RECA_SEARCH_FIELD





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 CL_ABAP_CHAR_UTILITIES=>methodname EXPORTING/IMPORTING...



GET_SEARCH_STRATEGY - Gets Search Strategy (If Unique or Already Set)
GET_SEARCH_STRAT_VALUES - Gets Values for Search Strategy
GET_TEXT - Gets Text for a Value of Current Field
GET_TEXT_FOR_RESULT - Gets the Texts for a Transferred Search Result
GET_VALUE_OTHERS - Returns the Value for "Other Values" (Standard Search Help)
HAS_SHSTRAT - T/F: Is Search Strategy Set/Found for Search Field?
HAS_VALID_SHSTRAT - T/F: Was a Valid Search Strategy Set for Search Field?
INIT - Initializes New Instance of Search Field
INIT_BEFORE_STANDARD_SH - Sets Search-Field-Specific Environ., If No Search Strategy
IS_POPUP - T/F: Should Result of Search Be Displayed as Popup?
IS_VALID_VALUE - T/F: Is Entered Field Value Allowed by Search Strategy?
SET_FIELD_STATE_POPUP - Set Explicitly: Display Listbox as Popup/Dropdown
SET_SEARCH_STRATEGY - Sets Search Strategy (If Assigned from Outside)
SET_VALUES_FOR_DROPDOWN - Sets Dropdown Values for the Screen


IF_RECA_SEARCH_FIELD Attributes

List of attributes within class IF_RECA_SEARCH_FIELD. These can be referenced using the following syntax IF_RECA_SEARCH_FIELD=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.


NameDescriptionInitial Value
MD_CONTEXT Context (Such As First Part of Key) for Search Field
MD_SHFLDNAME Search field
MD_SHMETH Search Method
MD_SHSTRAT Search Strat.
MD_SHSTRATSYS Search Strategy (Always the One Defined by System)
MO_REF_OBJECT Reference Object (for Callbacks with BAdIs)
MO_SEARCH_METHOD Search Method (Instance)
MS_SEARCH_FIELD_X Search Field and Additional Fields (TIVCASHFLD/TIVCASHFLDT)
MS_SHSTRAT_DETAIL System and User-Defined Search Strategy + Addit. Fields




Events of the Class IF_RECA_SEARCH_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...