SAP STRUCTURE_ENTRY_SEARCH Function Module for
STRUCTURE_ENTRY_SEARCH is a standard structure entry 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 structure entry search FM, simply by entering the name STRUCTURE_ENTRY_SEARCH into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHAS
Program Name: SAPLRHAS
Main Program: SAPLRHAS
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function STRUCTURE_ENTRY_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 'STRUCTURE_ENTRY_SEARCH'".
EXPORTING
INDEX = "
OTYPE = "Object Type
OBJID = "Object Number
IMPORTING
OBJECT = "Object information => OBJEC
ROOT = "General structure information (root) => GDSTR
ENTRY = "Structure information on current object => STRUC
IMPORTING Parameters details for STRUCTURE_ENTRY_SEARCH
INDEX -
Data type: HRRHAS-PSTRUOptional: No
Call by Reference: No ( called with pass by value option)
OTYPE - Object Type
Data type: HRRHAS-OTYPEOptional: No
Call by Reference: No ( called with pass by value option)
OBJID - Object Number
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for STRUCTURE_ENTRY_SEARCH
OBJECT - Object information => OBJEC
Data type: OBJECOptional: No
Call by Reference: No ( called with pass by value option)
ROOT - General structure information (root) => GDSTR
Data type: GDSTROptional: No
Call by Reference: No ( called with pass by value option)
ENTRY - Structure information on current object => STRUC
Data type: STRUCOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for STRUCTURE_ENTRY_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: | ||||
| lv_index | TYPE HRRHAS-PSTRU, " | |||
| lv_object | TYPE OBJEC, " | |||
| lv_root | TYPE GDSTR, " | |||
| lv_otype | TYPE HRRHAS-OTYPE, " | |||
| lv_entry | TYPE STRUC, " | |||
| lv_objid | TYPE STRUC. " |
|   CALL FUNCTION 'STRUCTURE_ENTRY_SEARCH' " |
| EXPORTING | ||
| INDEX | = lv_index | |
| OTYPE | = lv_otype | |
| OBJID | = lv_objid | |
| IMPORTING | ||
| OBJECT | = lv_object | |
| ROOT | = lv_root | |
| ENTRY | = lv_entry | |
| . " STRUCTURE_ENTRY_SEARCH | ||
ABAP code using 7.40 inline data declarations to call FM STRUCTURE_ENTRY_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 PSTRU FROM HRRHAS INTO @DATA(ld_index). | ||||
| "SELECT single OTYPE FROM HRRHAS INTO @DATA(ld_otype). | ||||
Search for further information about these or an SAP related objects