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

Function RH_WEGID_REQUEST 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_WEGID_REQUEST'".
EXPORTING
* FLAG_ASK_FOR_OTYPES = 'X' "
* OTYPE1 = "
* OTYPE2 = "
* OTYPE3 = "
* WEGID = "Evaluation Path
* SEARCH_HELP_MODE = "
IMPORTING
WEGID = "Evaluation Path
TABLES
* WEGID_TAB = "
EXCEPTIONS
NOTHING_SELECTED = 1 CHANGE_SHLP = 2
IMPORTING Parameters details for RH_WEGID_REQUEST
FLAG_ASK_FOR_OTYPES -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OTYPE1 -
Data type: PLOG-OTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
OTYPE2 -
Data type: PLOG-OTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
OTYPE3 -
Data type: PLOG-OTYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
WEGID - Evaluation Path
Data type: T778A-WEGIDOptional: Yes
Call by Reference: No ( called with pass by value option)
SEARCH_HELP_MODE -
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RH_WEGID_REQUEST
WEGID - Evaluation Path
Data type: T778A-WEGIDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RH_WEGID_REQUEST
WEGID_TAB -
Data type: T778AOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOTHING_SELECTED - No evaluation path chosen
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHANGE_SHLP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_WEGID_REQUEST 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_wegid | TYPE T778A-WEGID, " | |||
| lt_wegid_tab | TYPE STANDARD TABLE OF T778A, " | |||
| lv_nothing_selected | TYPE T778A, " | |||
| lv_flag_ask_for_otypes | TYPE T778A, " 'X' | |||
| lv_otype1 | TYPE PLOG-OTYPE, " | |||
| lv_change_shlp | TYPE PLOG, " | |||
| lv_otype2 | TYPE PLOG-OTYPE, " | |||
| lv_otype3 | TYPE PLOG-OTYPE, " | |||
| lv_wegid | TYPE T778A-WEGID, " | |||
| lv_search_help_mode | TYPE FLAG. " |
|   CALL FUNCTION 'RH_WEGID_REQUEST' " |
| EXPORTING | ||
| FLAG_ASK_FOR_OTYPES | = lv_flag_ask_for_otypes | |
| OTYPE1 | = lv_otype1 | |
| OTYPE2 | = lv_otype2 | |
| OTYPE3 | = lv_otype3 | |
| WEGID | = lv_wegid | |
| SEARCH_HELP_MODE | = lv_search_help_mode | |
| IMPORTING | ||
| WEGID | = lv_wegid | |
| TABLES | ||
| WEGID_TAB | = lt_wegid_tab | |
| EXCEPTIONS | ||
| NOTHING_SELECTED = 1 | ||
| CHANGE_SHLP = 2 | ||
| . " RH_WEGID_REQUEST | ||
ABAP code using 7.40 inline data declarations to call FM RH_WEGID_REQUEST
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 WEGID FROM T778A INTO @DATA(ld_wegid). | ||||
| DATA(ld_flag_ask_for_otypes) | = 'X'. | |||
| "SELECT single OTYPE FROM PLOG INTO @DATA(ld_otype1). | ||||
| "SELECT single OTYPE FROM PLOG INTO @DATA(ld_otype2). | ||||
| "SELECT single OTYPE FROM PLOG INTO @DATA(ld_otype3). | ||||
| "SELECT single WEGID FROM T778A INTO @DATA(ld_wegid). | ||||
Search for further information about these or an SAP related objects