SAP SO_WIND_OBJECTS_SEARCH Function Module for
SO_WIND_OBJECTS_SEARCH is a standard so wind objects search 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 wind objects search FM, simply by entering the name SO_WIND_OBJECTS_SEARCH into the relevant SAP transaction such as SE37 or SE38.
Function Group: SO06
Program Name: SAPLSO06
Main Program: SAPLSO06
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SO_WIND_OBJECTS_SEARCH 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_WIND_OBJECTS_SEARCH'".
EXPORTING
* EXCLUDE_REGIONS = ' ' "Exclusion of folder regions
* FOLDER_ACCESS = '1' "Access authorization for folders
* ONE_SELECTION = 'X' "Single or multiple selection
* OWNER = ' ' "Owner or caller
* REGION = 'Q' "Folder region for search
* SELECTION = 'X' "With or without selection dialog box
* SOURCE_FOLDER_ID = ' ' "Folder ID of original folder
* FOLDER_SELECTIONS = ' ' "Restrictions on selection
IMPORTING
F_CANCELLED = "Termination of function
TABLES
* FOLLIST = "Folder list
* OBJLIST = "Document list
* OBJTYPES = "Restrictions by document type
EXCEPTIONS
COMPONENT_NOT_AVAILABLE = 1 OPERATION_NO_AUTHORIZATION = 2 OWNER_NOT_EXIST = 3 PARAMETER_ERROR = 4 X_ERROR = 5
IMPORTING Parameters details for SO_WIND_OBJECTS_SEARCH
EXCLUDE_REGIONS - Exclusion of folder regions
Data type: SOXRGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FOLDER_ACCESS - Access authorization for folders
Data type: SOFA-USRACCDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ONE_SELECTION - Single or multiple selection
Data type: SONV-FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OWNER - Owner or caller
Data type: SOUD-USRNAMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
REGION - Folder region for search
Data type: SOFD-FOLRGDefault: 'Q'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELECTION - With or without selection dialog box
Data type: SONV-FLAGDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SOURCE_FOLDER_ID - Folder ID of original folder
Data type: SOFDKDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
FOLDER_SELECTIONS - Restrictions on selection
Data type: SOFDSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SO_WIND_OBJECTS_SEARCH
F_CANCELLED - Termination of function
Data type: SONV-FLAGOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SO_WIND_OBJECTS_SEARCH
FOLLIST - Folder list
Data type: SOXLIOptional: Yes
Call by Reference: No ( called with pass by value option)
OBJLIST - Document list
Data type: SOMTOptional: Yes
Call by Reference: No ( called with pass by value option)
OBJTYPES - Restrictions by document type
Data type: SOXTPOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
COMPONENT_NOT_AVAILABLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OPERATION_NO_AUTHORIZATION - No authorization to call function
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OWNER_NOT_EXIST - Owner does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETER_ERROR - Incorrect function call
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
X_ERROR - Abnormal termination
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SO_WIND_OBJECTS_SEARCH 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_follist | TYPE STANDARD TABLE OF SOXLI, " | |||
| lv_f_cancelled | TYPE SONV-FLAG, " | |||
| lv_exclude_regions | TYPE SOXRG, " SPACE | |||
| lv_component_not_available | TYPE SOXRG, " | |||
| lt_objlist | TYPE STANDARD TABLE OF SOMT, " | |||
| lv_folder_access | TYPE SOFA-USRACC, " '1' | |||
| lv_operation_no_authorization | TYPE SOFA, " | |||
| lt_objtypes | TYPE STANDARD TABLE OF SOXTP, " | |||
| lv_one_selection | TYPE SONV-FLAG, " 'X' | |||
| lv_owner_not_exist | TYPE SONV, " | |||
| lv_owner | TYPE SOUD-USRNAM, " SPACE | |||
| lv_parameter_error | TYPE SOUD, " | |||
| lv_region | TYPE SOFD-FOLRG, " 'Q' | |||
| lv_x_error | TYPE SOFD, " | |||
| lv_selection | TYPE SONV-FLAG, " 'X' | |||
| lv_source_folder_id | TYPE SOFDK, " SPACE | |||
| lv_folder_selections | TYPE SOFDS. " SPACE |
|   CALL FUNCTION 'SO_WIND_OBJECTS_SEARCH' " |
| EXPORTING | ||
| EXCLUDE_REGIONS | = lv_exclude_regions | |
| FOLDER_ACCESS | = lv_folder_access | |
| ONE_SELECTION | = lv_one_selection | |
| OWNER | = lv_owner | |
| REGION | = lv_region | |
| SELECTION | = lv_selection | |
| SOURCE_FOLDER_ID | = lv_source_folder_id | |
| FOLDER_SELECTIONS | = lv_folder_selections | |
| IMPORTING | ||
| F_CANCELLED | = lv_f_cancelled | |
| TABLES | ||
| FOLLIST | = lt_follist | |
| OBJLIST | = lt_objlist | |
| OBJTYPES | = lt_objtypes | |
| EXCEPTIONS | ||
| COMPONENT_NOT_AVAILABLE = 1 | ||
| OPERATION_NO_AUTHORIZATION = 2 | ||
| OWNER_NOT_EXIST = 3 | ||
| PARAMETER_ERROR = 4 | ||
| X_ERROR = 5 | ||
| . " SO_WIND_OBJECTS_SEARCH | ||
ABAP code using 7.40 inline data declarations to call FM SO_WIND_OBJECTS_SEARCH
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 FLAG FROM SONV INTO @DATA(ld_f_cancelled). | ||||
| DATA(ld_exclude_regions) | = ' '. | |||
| "SELECT single USRACC FROM SOFA INTO @DATA(ld_folder_access). | ||||
| DATA(ld_folder_access) | = '1'. | |||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_one_selection). | ||||
| DATA(ld_one_selection) | = 'X'. | |||
| "SELECT single USRNAM FROM SOUD INTO @DATA(ld_owner). | ||||
| DATA(ld_owner) | = ' '. | |||
| "SELECT single FOLRG FROM SOFD INTO @DATA(ld_region). | ||||
| DATA(ld_region) | = 'Q'. | |||
| "SELECT single FLAG FROM SONV INTO @DATA(ld_selection). | ||||
| DATA(ld_selection) | = 'X'. | |||
| DATA(ld_source_folder_id) | = ' '. | |||
| DATA(ld_folder_selections) | = ' '. | |||
Search for further information about these or an SAP related objects