SAP SO_FIND_WITH_COMPONENT Function Module for
SO_FIND_WITH_COMPONENT is a standard so find with component SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 so find with component FM, simply by entering the name SO_FIND_WITH_COMPONENT into the relevant SAP transaction such as SE37 or SE38.
Function Group: SO22
Program Name: SAPLSO22
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SO_FIND_WITH_COMPONENT 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 'SO_FIND_WITH_COMPONENT'".
EXPORTING
* CLASS = ' ' "Information class of folder
* INDEX = ' ' "Flag: 'X' = objects in folder are indexed
* LANGUAGE = SY-LANGU "Language indicator
MODE = "Search mode ('NORM', 'REFI', 'FOLS', 'QRY')
OWNER = "Owner of folder/objects
OWNER_ID = "ID of owner of folder (' '= shared folders)
* SEARCH_REGION = ' ' "Search area
* TITLE_SEARCH = ' ' "Flag for title search (='X')
IMPORTING
CANCELLED = "Flag: 'X' = search process was cancelled
CLASS = "Information class of folder
FIND_COUNTER = "Number of hits
INDEX = "Flag: 'X' = objects in folder are indexed
LANGUAGE = "Language indicator
SEARCH_REGION = "Search area
TITLE_SEARCH = "Flag for title search (='X')
TABLES
ATTRIBUTES = "Attribute restrictions
FOLDER_CONT = "List search objects
HIT_TABLE = "List of found objects
SEARCHTAB = "Search term
EXCEPTIONS
FUNCTION_NOT_AVAILABLE = 1
IMPORTING Parameters details for SO_FIND_WITH_COMPONENT
CLASS - Information class of folder
Data type: TFIC-CLASSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
INDEX - Flag: 'X' = objects in folder are indexed
Data type: SONV-FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGUAGE - Language indicator
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
MODE - Search mode ('NORM', 'REFI', 'FOLS', 'QRY')
Data type: SY-UCOMMOptional: No
Call by Reference: No ( called with pass by value option)
OWNER - Owner of folder/objects
Data type: SOUD-USRNAMOptional: No
Call by Reference: No ( called with pass by value option)
OWNER_ID - ID of owner of folder (' '= shared folders)
Data type: SOUDKOptional: No
Call by Reference: No ( called with pass by value option)
SEARCH_REGION - Search area
Data type: FTAB-REGIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TITLE_SEARCH - Flag for title search (='X')
Data type: SONV-FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SO_FIND_WITH_COMPONENT
CANCELLED - Flag: 'X' = search process was cancelled
Data type: SONV-FLAGOptional: No
Call by Reference: No ( called with pass by value option)
CLASS - Information class of folder
Data type: TFIC-CLASSOptional: No
Call by Reference: No ( called with pass by value option)
FIND_COUNTER - Number of hits
Data type: FIST-HITSOptional: No
Call by Reference: No ( called with pass by value option)
INDEX - Flag: 'X' = objects in folder are indexed
Data type: SONV-FLAGOptional: No
Call by Reference: No ( called with pass by value option)
LANGUAGE - Language indicator
Data type: SY-LANGUOptional: No
Call by Reference: No ( called with pass by value option)
SEARCH_REGION - Search area
Data type: FTAB-REGIONOptional: No
Call by Reference: No ( called with pass by value option)
TITLE_SEARCH - Flag for title search (='X')
Data type: SONV-FLAGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SO_FIND_WITH_COMPONENT
ATTRIBUTES - Attribute restrictions
Data type: ATRESOptional: No
Call by Reference: No ( called with pass by value option)
FOLDER_CONT - List search objects
Data type: SOMTOptional: No
Call by Reference: No ( called with pass by value option)
HIT_TABLE - List of found objects
Data type: SOMTOptional: No
Call by Reference: No ( called with pass by value option)
SEARCHTAB - Search term
Data type: FISTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FUNCTION_NOT_AVAILABLE - Function is not available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SO_FIND_WITH_COMPONENT 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: | ||||
| lv_class | TYPE TFIC-CLASS, " SPACE | |||
| lv_cancelled | TYPE SONV-FLAG, " | |||
| lt_attributes | TYPE STANDARD TABLE OF ATRES, " | |||
| lv_function_not_available | TYPE ATRES, " | |||
| lv_class | TYPE TFIC-CLASS, " | |||
| lv_index | TYPE SONV-FLAG, " SPACE | |||
| lt_folder_cont | TYPE STANDARD TABLE OF SOMT, " | |||
| lv_language | TYPE SY-LANGU, " SY-LANGU | |||
| lt_hit_table | TYPE STANDARD TABLE OF SOMT, " | |||
| lv_find_counter | TYPE FIST-HITS, " | |||
| lv_mode | TYPE SY-UCOMM, " | |||
| lv_index | TYPE SONV-FLAG, " | |||
| lt_searchtab | TYPE STANDARD TABLE OF FIST, " | |||
| lv_owner | TYPE SOUD-USRNAM, " | |||
| lv_language | TYPE SY-LANGU, " | |||
| lv_owner_id | TYPE SOUDK, " | |||
| lv_search_region | TYPE FTAB-REGION, " | |||
| lv_title_search | TYPE SONV-FLAG, " | |||
| lv_search_region | TYPE FTAB-REGION, " SPACE | |||
| lv_title_search | TYPE SONV-FLAG. " SPACE |
|   CALL FUNCTION 'SO_FIND_WITH_COMPONENT' " |
| EXPORTING | ||
| CLASS | = lv_class | |
| INDEX | = lv_index | |
| LANGUAGE | = lv_language | |
| MODE | = lv_mode | |
| OWNER | = lv_owner | |
| OWNER_ID | = lv_owner_id | |
| SEARCH_REGION | = lv_search_region | |
| TITLE_SEARCH | = lv_title_search | |
| IMPORTING | ||
| CANCELLED | = lv_cancelled | |
| CLASS | = lv_class | |
| FIND_COUNTER | = lv_find_counter | |
| INDEX | = lv_index | |
| LANGUAGE | = lv_language | |
| SEARCH_REGION | = lv_search_region | |
| TITLE_SEARCH | = lv_title_search | |
| TABLES | ||
| ATTRIBUTES | = lt_attributes | |
| FOLDER_CONT | = lt_folder_cont | |
| HIT_TABLE | = lt_hit_table | |
| SEARCHTAB | = lt_searchtab | |
| EXCEPTIONS | ||
| FUNCTION_NOT_AVAILABLE = 1 | ||
| . " SO_FIND_WITH_COMPONENT | ||
ABAP code using 7.40 inline data declarations to call FM SO_FIND_WITH_COMPONENT
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 CLASS FROM TFIC INTO @DATA(ld_class). | ||||
| DATA(ld_class) | = ' '. | |||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_cancelled). | ||||
| "SELECT single CLASS FROM TFIC INTO @DATA(ld_class). | ||||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_index). | ||||
| DATA(ld_index) | = ' '. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_language). | ||||
| DATA(ld_language) | = SY-LANGU. | |||
| "SELECT single HITS FROM FIST INTO @DATA(ld_find_counter). | ||||
| "SELECT single UCOMM FROM SY INTO @DATA(ld_mode). | ||||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_index). | ||||
| "SELECT single USRNAM FROM SOUD INTO @DATA(ld_owner). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_language). | ||||
| "SELECT single REGION FROM FTAB INTO @DATA(ld_search_region). | ||||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_title_search). | ||||
| "SELECT single REGION FROM FTAB INTO @DATA(ld_search_region). | ||||
| DATA(ld_search_region) | = ' '. | |||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_title_search). | ||||
| DATA(ld_title_search) | = ' '. | |||
Search for further information about these or an SAP related objects