SAP RH_DETERMINE_ORG_OBJID Function Module for Determine a (WF) Organizational Object
RH_DETERMINE_ORG_OBJID is a standard rh determine org objid SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine a (WF) Organizational Object processing and below is the pattern details for this FM, 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 determine org objid FM, simply by entering the name RH_DETERMINE_ORG_OBJID into the relevant SAP transaction such as SE37 or SE38.
Function Group: RHW0
Program Name: SAPLRHW0
Main Program: SAPLRHW0
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RH_DETERMINE_ORG_OBJID 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_DETERMINE_ORG_OBJID'"Determine a (WF) Organizational Object.
EXPORTING
ORG_OBJECT_TYPE = "
* SET_MODE = "
* ORG_OTYPE_TEXT = "
* ACT_PLVAR = "
* ACT_SEARCH_STRING = '*' "
* SELECTED_OBJ_APPEND = "
* F4_MODE = ' ' "
* SEARK_BEGDA = '19000101' "Search Period (Start)
* SEARK_ENDDA = '99991231' "Search Period (End)
IMPORTING
ORG_OBJECT_OBJID = "
TABLES
* SELECTED_OBJECTS = "
EXCEPTIONS
NO_ACTIVE_PLVAR = 1 NO_OBJECT_ID_SELECTED = 2
IMPORTING Parameters details for RH_DETERMINE_ORG_OBJID
ORG_OBJECT_TYPE -
Data type: OBJEC-OTYPEOptional: No
Call by Reference: No ( called with pass by value option)
SET_MODE -
Data type: OBJEC-HISTOOptional: Yes
Call by Reference: No ( called with pass by value option)
ORG_OTYPE_TEXT -
Data type: T777O-OTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
ACT_PLVAR -
Data type: OBJEC-PLVAROptional: Yes
Call by Reference: No ( called with pass by value option)
ACT_SEARCH_STRING -
Data type:Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELECTED_OBJ_APPEND -
Data type: HRPP0C-TESTOptional: Yes
Call by Reference: No ( called with pass by value option)
F4_MODE -
Data type: HRPP0C-TESTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SEARK_BEGDA - Search Period (Start)
Data type: WPLOG-BEGDADefault: '19000101'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SEARK_ENDDA - Search Period (End)
Data type: WPLOG-ENDDADefault: '99991231'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RH_DETERMINE_ORG_OBJID
ORG_OBJECT_OBJID -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RH_DETERMINE_ORG_OBJID
SELECTED_OBJECTS -
Data type: HRSOBIDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_ACTIVE_PLVAR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_OBJECT_ID_SELECTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RH_DETERMINE_ORG_OBJID 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_no_active_plvar | TYPE STRING, " | |||
| lv_org_object_type | TYPE OBJEC-OTYPE, " | |||
| lv_org_object_objid | TYPE OBJEC, " | |||
| lt_selected_objects | TYPE STANDARD TABLE OF HRSOBID, " | |||
| lv_set_mode | TYPE OBJEC-HISTO, " | |||
| lv_no_object_id_selected | TYPE OBJEC, " | |||
| lv_org_otype_text | TYPE T777O-OTEXT, " | |||
| lv_act_plvar | TYPE OBJEC-PLVAR, " | |||
| lv_act_search_string | TYPE OBJEC, " '*' | |||
| lv_selected_obj_append | TYPE HRPP0C-TEST, " | |||
| lv_f4_mode | TYPE HRPP0C-TEST, " SPACE | |||
| lv_seark_begda | TYPE WPLOG-BEGDA, " '19000101' | |||
| lv_seark_endda | TYPE WPLOG-ENDDA. " '99991231' |
|   CALL FUNCTION 'RH_DETERMINE_ORG_OBJID' "Determine a (WF) Organizational Object |
| EXPORTING | ||
| ORG_OBJECT_TYPE | = lv_org_object_type | |
| SET_MODE | = lv_set_mode | |
| ORG_OTYPE_TEXT | = lv_org_otype_text | |
| ACT_PLVAR | = lv_act_plvar | |
| ACT_SEARCH_STRING | = lv_act_search_string | |
| SELECTED_OBJ_APPEND | = lv_selected_obj_append | |
| F4_MODE | = lv_f4_mode | |
| SEARK_BEGDA | = lv_seark_begda | |
| SEARK_ENDDA | = lv_seark_endda | |
| IMPORTING | ||
| ORG_OBJECT_OBJID | = lv_org_object_objid | |
| TABLES | ||
| SELECTED_OBJECTS | = lt_selected_objects | |
| EXCEPTIONS | ||
| NO_ACTIVE_PLVAR = 1 | ||
| NO_OBJECT_ID_SELECTED = 2 | ||
| . " RH_DETERMINE_ORG_OBJID | ||
ABAP code using 7.40 inline data declarations to call FM RH_DETERMINE_ORG_OBJID
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 OTYPE FROM OBJEC INTO @DATA(ld_org_object_type). | ||||
| "SELECT single HISTO FROM OBJEC INTO @DATA(ld_set_mode). | ||||
| "SELECT single OTEXT FROM T777O INTO @DATA(ld_org_otype_text). | ||||
| "SELECT single PLVAR FROM OBJEC INTO @DATA(ld_act_plvar). | ||||
| DATA(ld_act_search_string) | = '*'. | |||
| "SELECT single TEST FROM HRPP0C INTO @DATA(ld_selected_obj_append). | ||||
| "SELECT single TEST FROM HRPP0C INTO @DATA(ld_f4_mode). | ||||
| DATA(ld_f4_mode) | = ' '. | |||
| "SELECT single BEGDA FROM WPLOG INTO @DATA(ld_seark_begda). | ||||
| DATA(ld_seark_begda) | = '19000101'. | |||
| "SELECT single ENDDA FROM WPLOG INTO @DATA(ld_seark_endda). | ||||
| DATA(ld_seark_endda) | = '99991231'. | |||
Search for further information about these or an SAP related objects