The COMC_PRWB_SM table in SAP ERP or S/4HANA stores Search Methods in Product Workbench data. There are total 9 fields in COMC_PRWB_SM table. The Search Methods in Product Workbench table is available in all major SAP S/4HANA versions, is implemented as a Column Store table within the SAP HANA database. Additionally we provide an overview of the structure and fields of COMC_PRWB_SM table. It is in Product Master Customizing – General for UI (COM_PRODUCT_CUST_UI) ABAP package and is part of the Central Part of Product Master (AP-MD-PRO) module.
SAP COMC_PRWB_SM Table Fields
Following is the list of fields that are available in SAP COMC_PRWB_SM table. The primary key fields of the table are OBJECT_TYPE (Object types editable when editing products), SEARCH_METHOD (Search Method).
| Field | Description | Data Element | Check Table | Data Type |
|---|---|---|---|---|
| OBJECT_TYPE | Object types editable when editing products | COMT_PRWB_OBJECT_TYPE | COMC_PRWB_OBJT | NUMC (2) |
| SEARCH_METHOD | Search Method | COMT_PRWB_SEARCH_METHOD | CHAR (4) | |
| SM_PROGRAM | Program Containing the Subscreen for the Search Criteria | COMT_PRWB_SM_PROGRAM | TRDIR | CHAR (40) |
| SM_DYNPRO | Subscreen with Search Criteria | COMT_PRWB_SM_DYNPRO | NUMC (4) | |
| FUNC_FIND | Function Module for Searching for Objects | COMT_PRWB_SM_FUNC_FIND | TFDIR | CHAR (30) |
| FUNC_GET_SC | Function Module for Reading the Current Search Criteria | COMT_PRWB_SM_FUNC_SC_GET | TFDIR | CHAR (30) |
| FUNC_SET_SC | Function Module for Setting the Current Search Criteria | COMT_PRWB_SM_FUNC_SC_SET | TFDIR | CHAR (30) |
| DEFAULT_SM | Default Search Method | COMT_PRWB_SM_DEFAULT | CHAR (1) | |
| FUNC_GETHITLIST | Function Module for Reading the Objects Found | COMT_PRWB_SM_GETHITLIST | * | CHAR (30) |


