SAP IAC_SEARCH_EXIT Function Module for NOTRANSL: IAC Produktkatalog / Online Store: User-Exit Produktsuche
IAC_SEARCH_EXIT is a standard iac search exit SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: IAC Produktkatalog / Online Store: User-Exit Produktsuche processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for iac search exit FM, simply by entering the name IAC_SEARCH_EXIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: WWCS
Program Name: SAPLWWCS
Main Program:
Appliation area: W
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function IAC_SEARCH_EXIT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'IAC_SEARCH_EXIT'"NOTRANSL: IAC Produktkatalog / Online Store: User-Exit Produktsuche.
EXPORTING
PRODCAT = "
* PSDES = "
LANGUAGE = "
CURRENCY = "
* PAGE_OFFSET = "
* HITS_PER_PAGE = "
* SHOP = "
SEARCH_CRITERIA = "
* PCDES = "
* PSFMO = "
IMPORTING
TOTAL_NUMBER_OF_HITS = "
RETURN = "
TABLES
HITS = "
IMPORTING Parameters details for IAC_SEARCH_EXIT
PRODCAT -
Data type: BAPIADMVID-PRODCATOptional: No
Call by Reference: No ( called with pass by value option)
PSDES -
Data type: W_OS_PSDESOptional: Yes
Call by Reference: No ( called with pass by value option)
LANGUAGE -
Data type: BAPIADMVL-LANGUOptional: No
Call by Reference: No ( called with pass by value option)
CURRENCY -
Data type: BAPIADMVC-CURRNCYOptional: No
Call by Reference: No ( called with pass by value option)
PAGE_OFFSET -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
HITS_PER_PAGE -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
SHOP -
Data type: BAPILAYA-AREAOptional: Yes
Call by Reference: No ( called with pass by value option)
SEARCH_CRITERIA -
Data type: WIC_SEARCHCRITERIAOptional: No
Call by Reference: No ( called with pass by value option)
PCDES -
Data type: W_OS_PCDESOptional: Yes
Call by Reference: No ( called with pass by value option)
PSFMO -
Data type: W_OS_PSFMOOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for IAC_SEARCH_EXIT
TOTAL_NUMBER_OF_HITS -
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
RETURN -
Data type: BAPIRETURN1Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for IAC_SEARCH_EXIT
HITS -
Data type: WIC_SEARCHHITOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for IAC_SEARCH_EXIT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_hits | TYPE STANDARD TABLE OF WIC_SEARCHHIT, " | |||
| lv_prodcat | TYPE BAPIADMVID-PRODCAT, " | |||
| lv_total_number_of_hits | TYPE SY-TABIX, " | |||
| lv_psdes | TYPE W_OS_PSDES, " | |||
| lv_return | TYPE BAPIRETURN1, " | |||
| lv_language | TYPE BAPIADMVL-LANGU, " | |||
| lv_currency | TYPE BAPIADMVC-CURRNCY, " | |||
| lv_page_offset | TYPE SY-TABIX, " | |||
| lv_hits_per_page | TYPE SY-TABIX, " | |||
| lv_shop | TYPE BAPILAYA-AREA, " | |||
| lv_search_criteria | TYPE WIC_SEARCHCRITERIA, " | |||
| lv_pcdes | TYPE W_OS_PCDES, " | |||
| lv_psfmo | TYPE W_OS_PSFMO. " |
|   CALL FUNCTION 'IAC_SEARCH_EXIT' "NOTRANSL: IAC Produktkatalog / Online Store: User-Exit Produktsuche |
| EXPORTING | ||
| PRODCAT | = lv_prodcat | |
| PSDES | = lv_psdes | |
| LANGUAGE | = lv_language | |
| CURRENCY | = lv_currency | |
| PAGE_OFFSET | = lv_page_offset | |
| HITS_PER_PAGE | = lv_hits_per_page | |
| SHOP | = lv_shop | |
| SEARCH_CRITERIA | = lv_search_criteria | |
| PCDES | = lv_pcdes | |
| PSFMO | = lv_psfmo | |
| IMPORTING | ||
| TOTAL_NUMBER_OF_HITS | = lv_total_number_of_hits | |
| RETURN | = lv_return | |
| TABLES | ||
| HITS | = lt_hits | |
| . " IAC_SEARCH_EXIT | ||
ABAP code using 7.40 inline data declarations to call FM IAC_SEARCH_EXIT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single PRODCAT FROM BAPIADMVID INTO @DATA(ld_prodcat). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_total_number_of_hits). | ||||
| "SELECT single LANGU FROM BAPIADMVL INTO @DATA(ld_language). | ||||
| "SELECT single CURRNCY FROM BAPIADMVC INTO @DATA(ld_currency). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_page_offset). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_hits_per_page). | ||||
| "SELECT single AREA FROM BAPILAYA INTO @DATA(ld_shop). | ||||
Search for further information about these or an SAP related objects