RH_OBJID_REQUEST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name RH_OBJID_REQUEST into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
HRBAS00SEARCH
Released Date:
07.01.1999
Processing type: Normal fucntion module
CALL FUNCTION 'RH_OBJID_REQUEST' "Input Help (F4) for OBJID
* EXPORTING
* plvar = " plogi-plvar Plan Version (Optional)
* otype = SPACE " plogi-otype Object Type
* seark = '*' " ppmac-seark Search Term
* seark_begda = $LOW_DATE " wplog-begda Search Period (Start)
* seark_endda = $HIGH_DATE " wplog-endda Search Period (End)
* set_mode = SPACE " c X = Multiple Selection
* dynpro_repid = SPACE " sy-repid Name of Calling Program (Not SY_SUBRC)
* dynpro_dynnr = SPACE " sy-dynnr Number of Current Screen
* dynpro_plvarfield = SPACE " dynpread-fieldname Name of Plan Version Field on Screen
* dynpro_otypefield = SPACE " dynpread-fieldname Name of Object Type Field on Screen
* dynpro_searkfield = SPACE " dynpread-fieldname Name of Search Term Field on Screen
* callback_prog = SPACE " sy-repid Callback Program
* callback_form = SPACE " any Callback Routine for Reorganization
* restrict_fb = SPACE " tftit-funcname FM for Restriction
* restrict_data = SPACE " rhmc1-mc_data Data String for Restriction
* without_rsign = " p1001-rsign Unrelated Objects: RSIGN
* without_relat = " p1001-relat Unrelated Objects: RELAT
* without_sclas = " p1001-sclas Unrelated Objects: SCLAS
* orgbeg = SY-DATUM " wplog-begda Organizational Assignment of Positions
* orgend = SY-DATUM " wplog-endda Organizational Assignment of Positions
* win_title = " sytitle Redefine Window Title
* app_data = " hrf4param-app_data Application-Specific Data
IMPORTING
sel_plvar = " plogi-plvar Selected Plan Version
sel_otype = " plogi-otype Selected Object Type
sel_object = " objec Selected Object
* TABLES
* otype_table = " t788o Input: Object Type Table
* condition = " hrcond Input: Condition Table
* base_objects = " rhmc2 Input: Object Basic Set (-> No Database Selection)
* marked_objects = " hrsobid Input: List of Already Selected Objects
* sel_objects = " objec Output: List of Selected Objects (with Text)
* sel_hrobject_tab = " hrobject Output: Selected Objects (Short ID)
* sel_hrsobid_tab = " hrsobid Output: List of Selected Objects (Extended ID)
EXCEPTIONS
CANCELLED = 1 " Activity Terminated
WRONG_CONDITION = 2 " Invalid Dynamic Condition in CONDITION
NOTHING_FOUND = 3 " No Object Matched Search Criteria
INTERNAL_ERROR = 4 " System Error
ILLEGAL_MODE = 5 " (No Longer Used)
. " RH_OBJID_REQUEST
The ABAP code below is a full code listing to execute function module RH_OBJID_REQUEST including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_sel_plvar | TYPE PLOGI-PLVAR , |
| ld_sel_otype | TYPE PLOGI-OTYPE , |
| ld_sel_object | TYPE OBJEC , |
| it_otype_table | TYPE STANDARD TABLE OF T788O,"TABLES PARAM |
| wa_otype_table | LIKE LINE OF it_otype_table , |
| it_condition | TYPE STANDARD TABLE OF HRCOND,"TABLES PARAM |
| wa_condition | LIKE LINE OF it_condition , |
| it_base_objects | TYPE STANDARD TABLE OF RHMC2,"TABLES PARAM |
| wa_base_objects | LIKE LINE OF it_base_objects , |
| it_marked_objects | TYPE STANDARD TABLE OF HRSOBID,"TABLES PARAM |
| wa_marked_objects | LIKE LINE OF it_marked_objects , |
| it_sel_objects | TYPE STANDARD TABLE OF OBJEC,"TABLES PARAM |
| wa_sel_objects | LIKE LINE OF it_sel_objects , |
| it_sel_hrobject_tab | TYPE STANDARD TABLE OF HROBJECT,"TABLES PARAM |
| wa_sel_hrobject_tab | LIKE LINE OF it_sel_hrobject_tab , |
| it_sel_hrsobid_tab | TYPE STANDARD TABLE OF HRSOBID,"TABLES PARAM |
| wa_sel_hrsobid_tab | LIKE LINE OF it_sel_hrsobid_tab . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_sel_plvar | TYPE PLOGI-PLVAR , |
| ld_plvar | TYPE PLOGI-PLVAR , |
| it_otype_table | TYPE STANDARD TABLE OF T788O , |
| wa_otype_table | LIKE LINE OF it_otype_table, |
| ld_sel_otype | TYPE PLOGI-OTYPE , |
| ld_otype | TYPE PLOGI-OTYPE , |
| it_condition | TYPE STANDARD TABLE OF HRCOND , |
| wa_condition | LIKE LINE OF it_condition, |
| ld_sel_object | TYPE OBJEC , |
| ld_seark | TYPE PPMAC-SEARK , |
| it_base_objects | TYPE STANDARD TABLE OF RHMC2 , |
| wa_base_objects | LIKE LINE OF it_base_objects, |
| ld_seark_begda | TYPE WPLOG-BEGDA , |
| it_marked_objects | TYPE STANDARD TABLE OF HRSOBID , |
| wa_marked_objects | LIKE LINE OF it_marked_objects, |
| ld_seark_endda | TYPE WPLOG-ENDDA , |
| it_sel_objects | TYPE STANDARD TABLE OF OBJEC , |
| wa_sel_objects | LIKE LINE OF it_sel_objects, |
| ld_set_mode | TYPE C , |
| it_sel_hrobject_tab | TYPE STANDARD TABLE OF HROBJECT , |
| wa_sel_hrobject_tab | LIKE LINE OF it_sel_hrobject_tab, |
| it_sel_hrsobid_tab | TYPE STANDARD TABLE OF HRSOBID , |
| wa_sel_hrsobid_tab | LIKE LINE OF it_sel_hrsobid_tab, |
| ld_dynpro_repid | TYPE SY-REPID , |
| ld_dynpro_dynnr | TYPE SY-DYNNR , |
| ld_dynpro_plvarfield | TYPE DYNPREAD-FIELDNAME , |
| ld_dynpro_otypefield | TYPE DYNPREAD-FIELDNAME , |
| ld_dynpro_searkfield | TYPE DYNPREAD-FIELDNAME , |
| ld_callback_prog | TYPE SY-REPID , |
| ld_callback_form | TYPE ANY , |
| ld_restrict_fb | TYPE TFTIT-FUNCNAME , |
| ld_restrict_data | TYPE RHMC1-MC_DATA , |
| ld_without_rsign | TYPE P1001-RSIGN , |
| ld_without_relat | TYPE P1001-RELAT , |
| ld_without_sclas | TYPE P1001-SCLAS , |
| ld_orgbeg | TYPE WPLOG-BEGDA , |
| ld_orgend | TYPE WPLOG-ENDDA , |
| ld_win_title | TYPE SYTITLE , |
| ld_app_data | TYPE HRF4PARAM-APP_DATA . |
This function module implements the standard value help for Personnel
Planning objects. It replaces the possible entries help that was
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RH_OBJID_REQUEST or its description.