SEARCH SAP Method Finds a Character String in the Open Document
Below is documentation, parameters and attributes of ABAP Method SEARCH within SAP class I_OI_WORD_PROCESSOR_DOCUMENT. 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 I_OI_WORD_PROCESSOR_DOCUMENT 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 SEARCH can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method SEARCH
.Name | Type | Data Type | Description | Default Value |
FLAG | Importing | TYPE C | Src option | |
NO_FLUSH | Importing | TYPE C | ||
POS | Importing | TYPE C | ||
SEARCH_STRING | Importing | TYPE C | Character String to be Found | |
ERROR | Exporting | TYPE REF TO I_OI_ERROR | Error Object | |
RETCODE | Exporting | TYPE SOI_RET_STRING | Error Value (Obsolete) |
Exceptions of Method SEARCH
This method does not have any exceptionsExample ABAP coding
DATA: lo_class TYPE REF TO I_OI_WORD_PROCESSOR_DOCUMENT.
DATA: lv_ERROR TYPE I_OI_ERROR,
lv_FLAG TYPE C,
lv_NO_FLUSH TYPE C,
lv_POS TYPE C,
lv_RETCODE TYPE SOI_RET_STRING,
lv_SEARCH_STRING TYPE C,
lv_other TYPE c.
CALL METHOD lo_class=>SEARCH(
EXPORTING
FLAG = lv_FLAG
NO_FLUSH = lv_NO_FLUSH
POS = lv_POS
SEARCH_STRING = lv_SEARCH_STRING
IMPORTING
ERROR = lv_ERROR
RETCODE = lv_RETCODE ).
Links to Related Class(s)
I_OI_WOR...Full list of available SAP object classes
Search for further information about these or an SAP related objects