SAP RH_TYPE_STRUC_INDEX Function Module for
RH_TYPE_STRUC_INDEX is a standard rh type struc index 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 rh type struc index FM, simply by entering the name RH_TYPE_STRUC_INDEX into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHWH
Program Name: SAPLRHWH
Main Program: SAPLRHWH
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RH_TYPE_STRUC_INDEX 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 'RH_TYPE_STRUC_INDEX'".
EXPORTING
ACT_PLVAR = "
SRK_OTYPE = "
ACT_WEGID = "
* ACT_SVECT = '1234' "
* ACT_BEGDA = SY-DATUM "
* ACT_ENDDA = SY-DATUM "
* UPDATE_INDEX = "
* NO_EXPORT_TO_INDX = "
* NO_UNREL = '?' "
IMPORTING
NO_INDEX_NEEDED = "
TABLES
* ROOT_OBJECT_INDEX = "
* NOT_RELATED_INDEX = "
EXCEPTIONS
NO_ROOT_FOUND = 1 WEGID_NOT_VALID = 2 SRK_OTYPE_NOT_IN_WEGID = 3
IMPORTING Parameters details for RH_TYPE_STRUC_INDEX
ACT_PLVAR -
Data type: OBJEC-PLVAROptional: No
Call by Reference: No ( called with pass by value option)
SRK_OTYPE -
Data type: OBJEC-OTYPEOptional: No
Call by Reference: No ( called with pass by value option)
ACT_WEGID -
Data type: GDSTR-WEGIDOptional: No
Call by Reference: No ( called with pass by value option)
ACT_SVECT -
Data type: GDSTR-SVECTDefault: '1234'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACT_BEGDA -
Data type: OBJEC-BEGDADefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
ACT_ENDDA -
Data type: OBJEC-ENDDADefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
UPDATE_INDEX -
Data type: OBJEC-HISTOOptional: Yes
Call by Reference: No ( called with pass by value option)
NO_EXPORT_TO_INDX -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
NO_UNREL -
Data type: HRF4_NORELDefault: '?'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RH_TYPE_STRUC_INDEX
NO_INDEX_NEEDED -
Data type: HRPP0C-TESTOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RH_TYPE_STRUC_INDEX
ROOT_OBJECT_INDEX -
Data type: HROBJECTOptional: Yes
Call by Reference: No ( called with pass by value option)
NOT_RELATED_INDEX -
Data type: HROBJECTOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ROOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WEGID_NOT_VALID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SRK_OTYPE_NOT_IN_WEGID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_TYPE_STRUC_INDEX 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_act_plvar | TYPE OBJEC-PLVAR, " | |||
| lv_no_root_found | TYPE OBJEC, " | |||
| lv_no_index_needed | TYPE HRPP0C-TEST, " | |||
| lt_root_object_index | TYPE STANDARD TABLE OF HROBJECT, " | |||
| lv_srk_otype | TYPE OBJEC-OTYPE, " | |||
| lv_wegid_not_valid | TYPE OBJEC, " | |||
| lt_not_related_index | TYPE STANDARD TABLE OF HROBJECT, " | |||
| lv_act_wegid | TYPE GDSTR-WEGID, " | |||
| lv_srk_otype_not_in_wegid | TYPE GDSTR, " | |||
| lv_act_svect | TYPE GDSTR-SVECT, " '1234' | |||
| lv_act_begda | TYPE OBJEC-BEGDA, " SY-DATUM | |||
| lv_act_endda | TYPE OBJEC-ENDDA, " SY-DATUM | |||
| lv_update_index | TYPE OBJEC-HISTO, " | |||
| lv_no_export_to_indx | TYPE FLAG, " | |||
| lv_no_unrel | TYPE HRF4_NOREL. " '?' |
|   CALL FUNCTION 'RH_TYPE_STRUC_INDEX' " |
| EXPORTING | ||
| ACT_PLVAR | = lv_act_plvar | |
| SRK_OTYPE | = lv_srk_otype | |
| ACT_WEGID | = lv_act_wegid | |
| ACT_SVECT | = lv_act_svect | |
| ACT_BEGDA | = lv_act_begda | |
| ACT_ENDDA | = lv_act_endda | |
| UPDATE_INDEX | = lv_update_index | |
| NO_EXPORT_TO_INDX | = lv_no_export_to_indx | |
| NO_UNREL | = lv_no_unrel | |
| IMPORTING | ||
| NO_INDEX_NEEDED | = lv_no_index_needed | |
| TABLES | ||
| ROOT_OBJECT_INDEX | = lt_root_object_index | |
| NOT_RELATED_INDEX | = lt_not_related_index | |
| EXCEPTIONS | ||
| NO_ROOT_FOUND = 1 | ||
| WEGID_NOT_VALID = 2 | ||
| SRK_OTYPE_NOT_IN_WEGID = 3 | ||
| . " RH_TYPE_STRUC_INDEX | ||
ABAP code using 7.40 inline data declarations to call FM RH_TYPE_STRUC_INDEX
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 PLVAR FROM OBJEC INTO @DATA(ld_act_plvar). | ||||
| "SELECT single TEST FROM HRPP0C INTO @DATA(ld_no_index_needed). | ||||
| "SELECT single OTYPE FROM OBJEC INTO @DATA(ld_srk_otype). | ||||
| "SELECT single WEGID FROM GDSTR INTO @DATA(ld_act_wegid). | ||||
| "SELECT single SVECT FROM GDSTR INTO @DATA(ld_act_svect). | ||||
| DATA(ld_act_svect) | = '1234'. | |||
| "SELECT single BEGDA FROM OBJEC INTO @DATA(ld_act_begda). | ||||
| DATA(ld_act_begda) | = SY-DATUM. | |||
| "SELECT single ENDDA FROM OBJEC INTO @DATA(ld_act_endda). | ||||
| DATA(ld_act_endda) | = SY-DATUM. | |||
| "SELECT single HISTO FROM OBJEC INTO @DATA(ld_update_index). | ||||
| DATA(ld_no_unrel) | = '?'. | |||
Search for further information about these or an SAP related objects