SEARCH SAP Method Execute search
Below is documentation, parameters and attributes of ABAP Method SEARCH within SAP class /BCV/IF_SIN_WS. 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 /BCV/IF_SIN_WS 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 |
| IT_ATTRIBUTE | Importing | TYPE /BCV/T_SIN_ATTRIBUTE | Attribute | |
| IV_MAX_RECORDS | Importing | TYPE I | ||
| IV_SEARCH_ID | Importing | TYPE /BCV/SIN_SEARCH_ID | Search Connector ID | |
| ET_RESULT | Exporting | TYPE INDEX TABLE | Results table |
Exceptions of Method SEARCH
/BCV/CX_SIN_WS - Exception Class for SIN WSExample ABAP coding
DATA: lo_class TYPE REF TO /BCV/IF_SIN_WS.
DATA: lv_ET_RESULT TYPE INDEX TABLE,
lv_IT_ATTRIBUTE TYPE /BCV/T_SIN_ATTRIBUTE,
lv_IV_MAX_RECORDS TYPE I,
lv_IV_SEARCH_ID TYPE /BCV/SIN_SEARCH_ID,
lv_other TYPE c.
CALL METHOD lo_class=>SEARCH(
EXPORTING
IT_ATTRIBUTE = lv_IT_ATTRIBUTE
IV_MAX_RECORDS = lv_IV_MAX_RECORDS
IV_SEARCH_ID = lv_IV_SEARCH_ID
IMPORTING
ET_RESULT = lv_ET_RESULT ).
Links to Related Class(s)
/BCV/IF_...Full list of available SAP object classes
Search for further information about these or an SAP related objects