SAP ABAP Class CL_WSD_ESH_SEARCH (Enterprise search class for material)
Hierarchy
☛
SAP_APPL (Software Component) Logistics and Accounting
⤷
SD-MD-MM-CS (Application Component) Additional Material Functions
⤷
WSD_CS_FU (Package) Functionality Enhanced Material Search
⤷
⤷
Properties
| Class | CL_WSD_ESH_SEARCH | |
| Short Description | Enterprise search class for material | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | WSD_CS_FU | Functionality Enhanced Material Search |
| Created | 20090123 | SAP |
| Last change | 20110908 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_WSD_ESH_SEARCH has no interface implemented.
Friends
Class CL_WSD_ESH_SEARCH has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_ESH_SE_SEARCH_REQUEST | Search Request | 20090123 | |||
| 2 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_ESH_IF_SEARCH_RESPONSES | Search Responses | 20090123 | |||
| 3 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_ESH_IF_SEARCH_RESP_CONNECT | Search Response of Connector | 20090123 | |||
| 4 | Static Attribute | Private | Object reference (TYPE REF TO) | BADI_WSD_ESH_CONNECTOR | 20090917 | ||||
| 5 | Static Attribute | Private | Object reference (TYPE REF TO) | BADI_WSD_MATERIAL_SEARCH | 20090123 | ||||
| 6 | Instance attribute | Private | Type reference (TYPE) | ESH_T_IF_MDATA_CONNECTORS | Search Connectors | 20090123 | |||
| 7 | Instance attribute | Public | Type reference (TYPE) | WSD_ATTRIBUTE_TTY | Attributes list table type | 20090209 | |||
| 8 | Instance attribute | Public | Type reference (TYPE) | STRING | Free Text | 20090211 | |||
| 9 | Instance attribute | Public | Type reference (TYPE) | TREXD_TERM_ACTION | Fuzzy Mode | 20090211 | |||
| 10 | Instance attribute | Public | Type reference (TYPE) | I | 1 | Result from | 20090211 | ||
| 11 | Instance attribute | Public | Type reference (TYPE) | I | Result to - Max number of records to be extracted | 20090211 | |||
| 12 | Static Attribute | Private | Type reference (TYPE) | ESH_E_IF_TEMPLATE_ID | 'SAP_APPL~STANDARD~MATERIAL~' | Search Connector Template ID | 20090310 | ||
| 13 | Static Attribute | Private | Type reference (TYPE) | ESH_E_IF_TEMPLATE_ID | 'SAP_APPL~STANDARD~MATERIAL~MATERIAL_PLANT' | Search Connector Template ID | 20090310 | ||
| 14 | Static Attribute | Private | Type reference (TYPE) | ESH_E_IF_TEMPLATE_ID | 'SAP_APPL~STANDARD~MATERIAL~MATERIAL_SALES' | Search Connector Template ID | 20090310 | ||
| 15 | Static Attribute | Private | Type reference (TYPE) | ESH_E_IF_TEMPLATE_ID | 'SAP_APPL~STANDARD~PURCHASE_INFO_REC~' | Search Connector Template ID | 20090310 | ||
| 16 | Static Attribute | Private | Type reference (TYPE) | ESH_E_IF_TEMPLATE_ID | 'SAP_APPL~STANDARD~PURCHASE_INFO_REC~EINE' | Search Connector Template ID | 20090310 | ||
| 17 | Static Attribute | Private | Type reference (TYPE) | ESH_E_IF_TEMPLATE_ID | 'SAP_APPL~STANDARD~WSD_CAT~' | Search Connector Template ID | 20090310 | ||
| 18 | Instance attribute | Public | Type reference (TYPE) | ESH_E_OM_OBJECT_TYPE | Object Type | 20090123 | |||
| 19 | Instance attribute | Private | Type reference (TYPE) | ESH_E_IF_REQUEST_TYPE_ID | 'DEFAULT' | Request Type ID | 20090123 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | BAdI call to Enhance / Map Search Results | 20090605 | |
| 2 | Instance method | Public | Method | BAdI call to Enhance / Map Material Search Results using ES | 20090616 | |
| 3 | Instance method | Private | Method | Call BAdI to modify connector for catalog search | 20090604 | |
| 4 | Instance method | Public | Constructor | CONSTRUCTOR | 20090123 | |
| 5 | Instance method | Public | Method | Format result data for catalog search | 20090123 | |
| 6 | Instance method | Private | Method | 20090129 | ||
| 7 | Instance method | Public | Method | Search data from ERP or catalog | 20090123 | |
| 8 | Instance method | Private | Method | To fetch all attributes list of the BO template. | 20090123 | |
| 9 | Instance method | Public | Method | Get attribute name from data element | 20090127 | |
| 10 | Instance method | Public | Method | Get Query for Purchase Info Record | 20090209 | |
| 11 | Instance method | Public | Method | Get Query for Purchase Info Record with Info record number | 20090622 | |
| 12 | Instance method | Public | Method | Check supported request attributes for Material search | 20090209 | |
| 13 | Instance method | Private | Method | Sets connector id as an input to Enterprise search | 20090123 | |
| 14 | Instance method | Public | Method | Prepare search query | 20090123 | |
| 15 | Instance method | Public | Method | Set result From and To (to limit number of results returned) | 20090123 | |
| 16 | Instance method | Public | Method | Set search mode to Fuzzy #F# or Exact #E#. | 20090123 | |
| 17 | Instance method | Public | Method | Set search text | 20090127 |
Events
Class CL_WSD_ESH_SEARCH has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | GTY_QUERY_ESH | Public | See coding | 20090127 | BEGIN OF gty_query_esh,
name TYPE string,
values TYPE RANGE OF char255,
END OF gty_query_esh
|
||
| 2 | GTY_QUERY_ESH_TTY | Public | See coding | 20090127 | gty_query_esh_tty TYPE STANDARD TABLE OF gty_query_esh
|
||
| 3 | GTY_RESULTS_ESH | Public | See coding | 20090128 | BEGIN OF gty_results_esh,
displayed(1),
connector_id TYPE esh_e_if_search_connector_id,
request_type_id TYPE esh_e_if_request_type_id,
data TYPE REF TO data,
hits TYPE i,
all_hits TYPE i,
time TYPE i,
error TYPE string,
END OF gty_results_esh
|
||
| 4 | GTY_RESULTS_ESH_TTY | Public | See coding | 20090128 | gty_results_esh_tty TYPE STANDARD TABLE OF gty_results_esh
|
Method Signatures
Method BADI_MAP_SEARCH_RESULTS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CS_RESULT | Call by reference | Type reference (TYPE) | WSD_MS_RESULT_STY | Material search result structure | 20090605 | |||
| 2 | IV_ATTR_NAME | Call by reference | Type reference (TYPE) | CHAR32 | Attribute Name | 20090605 | |||
| 3 | IV_VALUE | Call by reference | Type reference (TYPE) | STRING | Attribute Value | 20090605 |
Method BADI_MAP_SEARCH_RESULTS on class CL_WSD_ESH_SEARCH has no exception.
Method BADI_MAP_SEARCH_RESULTS_ESH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CS_RESULT | Call by reference | Type reference (TYPE) | WSD_MS_RESULT_STY | Material search result structure | 20090616 |
Method BADI_MAP_SEARCH_RESULTS_ESH on class CL_WSD_ESH_SEARCH has no exception.
Method BADI_MODIFY_CONNECTOR_ID Signature
Method BADI_MODIFY_CONNECTOR_ID on class CL_WSD_ESH_SEARCH has no parameter.
Method BADI_MODIFY_CONNECTOR_ID on class CL_WSD_ESH_SEARCH has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_OBJTYP | Call by reference | Type reference (TYPE) | ESH_E_OM_OBJECT_TYPE | Object Type | 20090123 | |||
| 2 | IV_RESULT_FROM | Call by reference | Type reference (TYPE) | I | Result from | 20090209 | |||
| 3 | IV_RESULT_TO | Call by reference | Type reference (TYPE) | I | Result to | 20090209 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Material search exception class for WSD project | 20090213 |
Method CONVERT_CATALOG_RESULT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_RESULT | Call by reference | Type reference (TYPE) | WSD_MS_RESULT_TTY | Material search result table type | 20090123 | |||
| 2 | IT_DATA | Call by reference | Type reference (TYPE) | GTY_RESULTS_ESH_TTY | Result table from Enterprise search | 20090129 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Material search exception class for WSD project | 20090213 |
Method CONVERT_QUERY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_QUERY_ESH | Call by reference | Type reference (TYPE) | GTY_QUERY_ESH_TTY | Enterprise search query table type | 20090129 | |||
| 2 | IT_QUERY | Call by reference | Type reference (TYPE) | WSD_MS_QUERY_TTY | Material search query table type | 20090129 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Material search exception class for WSD project | 20090213 |
Method DO_SEARCH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_RESULT | Call by reference | Type reference (TYPE) | GTY_RESULTS_ESH_TTY | Material search result table type | 20090123 | |||
| 2 | IV_EINE_ONLY | Call by reference | Type reference (TYPE) | BOOLE_D | EINE data only | 20090622 | |||
| 3 | IV_INITIAL_MAT_SEARCH | Call by reference | Type reference (TYPE) | BOOLE_D | First Search for MATERIAL | 20090216 | |||
| 4 | IV_INITIAL_PIR_SEARCH | Call by reference | Type reference (TYPE) | BOOLE_D | First Search for PIR | 20090622 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Material search exception class for WSD project | 20090123 |
Method GET_ATTRIBUTES_LIST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RT_ATTRIBUTES | Value transfer | Type reference (TYPE) | WSD_ATTRIBUTE_TTY | Attributes list table type | 20090123 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Material search exception class for WSD project | 20090213 |
Method GET_ATTRIBUTE_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_DATA_ELEMENT | Call by reference | Type reference (TYPE) | WSD_DATA_ELEMENT | Data element | 20090127 | |||
| 2 | RV_ATTR_NAME | Value transfer | Type reference (TYPE) | STRING | 20090127 |
Method GET_ATTRIBUTE_NAME on class CL_WSD_ESH_SEARCH has no exception.
Method GET_QUERY_PIR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_QUERY | Call by reference | Type reference (TYPE) | WSD_MS_QUERY_TTY | Search query | 20090209 | |||
| 2 | IT_QUERY_MAT | Call by reference | Type reference (TYPE) | WSD_MS_QUERY_TTY | List of Materials to be searched | 20090420 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Material search exception class for WSD project | 20090213 |
Method GET_QUERY_PIR_EINE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_QUERY | Call by reference | Type reference (TYPE) | WSD_MS_QUERY_TTY | Search query | 20090622 | |||
| 2 | IT_QUERY_PIR | Call by reference | Type reference (TYPE) | WSD_MS_QUERY_TTY | List of Materials to be searched | 20090622 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Material search exception class for WSD project | 20090622 |
Method IS_SUPPORTED_ATTR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | EV_ATTR_NAME | Call by reference | Type reference (TYPE) | WSD_DATA_ELEMENT | Exporting Data element | 20090209 | |||
| 2 | EV_RESULT | Value transfer | Type reference (TYPE) | BOOLE_D | X = Success | 20090209 | |||
| 3 | IV_ATTR_NAME | Call by reference | Type reference (TYPE) | WSD_DATA_ELEMENT | Importing Data element | 20090209 |
Method IS_SUPPORTED_ATTR on class CL_WSD_ESH_SEARCH has no exception.
Method SET_CONNECTORS Signature
Method SET_CONNECTORS on class CL_WSD_ESH_SEARCH has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Material search exception class for WSD project | 20090213 |
Method SET_QUERY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_QUERY | Call by reference | Type reference (TYPE) | WSD_MS_QUERY_TTY | Search query | 20090123 | |||
| 2 | IT_QUERY_MAT | Call by reference | Type reference (TYPE) | GTY_QUERY_ESH_TTY | Range Object - Material | 20090210 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Material search exception class for WSD project | 20090213 |
Method SET_RESULT_FROM_TO Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_RESULT_FROM | Call by reference | Type reference (TYPE) | I | Result From | 20090123 | |||
| 2 | IV_RESULT_TO | Call by reference | Type reference (TYPE) | I | Result to | 20090123 |
Method SET_RESULT_FROM_TO on class CL_WSD_ESH_SEARCH has no exception.
Method SET_SEARCH_MODE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_SEARCH_MODE | Call by reference | Type reference (TYPE) | WSD_MS_FUZZY_MODE | Material search fuzzy mode flag | 20090123 |
Method SET_SEARCH_MODE on class CL_WSD_ESH_SEARCH has no exception.
Method SET_SEARCH_TEXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_SEARCH_TEXT | Call by reference | Type reference (TYPE) | COM_SEARCH_TV_SEARCH_TERM_F4 | Text search string | 20090127 |
Method SET_SEARCH_TEXT on class CL_WSD_ESH_SEARCH has no exception.
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 605 |