SAP Function Modules

RH_OBJID_REQUEST SAP Function module - Input Help (F4) for OBJID







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
Normal function module settings


Pattern for FM RH_OBJID_REQUEST - RH OBJID REQUEST





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

ABAP code example for Function Module 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).

DATA:
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 .


SELECT single PLVAR
FROM PLOGI
INTO @DATA(ld_plvar).


SELECT single OTYPE
FROM PLOGI
INTO @DATA(ld_otype).


DATA(ld_seark) = some text here

DATA(ld_seark_begda) = 20210129

DATA(ld_seark_endda) = 20210129
DATA(ld_set_mode) = 'Check type of data required'.
DATA(ld_dynpro_repid) = 'some text here'.
DATA(ld_dynpro_dynnr) = 'some text here'.

DATA(ld_dynpro_plvarfield) = some text here

DATA(ld_dynpro_otypefield) = some text here

DATA(ld_dynpro_searkfield) = some text here
DATA(ld_callback_prog) = 'some text here'.
DATA(ld_callback_form) = 'some text here'.

SELECT single FUNCNAME
FROM TFTIT
INTO @DATA(ld_restrict_fb).


DATA(ld_restrict_data) = some text here

DATA(ld_without_rsign) = some text here

DATA(ld_without_relat) = some text here

DATA(ld_without_sclas) = some text here

DATA(ld_orgbeg) = 20210129

DATA(ld_orgend) = 20210129
DATA(ld_win_title) = 'some text here'.

DATA(ld_app_data) = some text here

"populate fields of struture and append to itab
append wa_otype_table to it_otype_table.

"populate fields of struture and append to itab
append wa_condition to it_condition.

"populate fields of struture and append to itab
append wa_base_objects to it_base_objects.

"populate fields of struture and append to itab
append wa_marked_objects to it_marked_objects.

"populate fields of struture and append to itab
append wa_sel_objects to it_sel_objects.

"populate fields of struture and append to itab
append wa_sel_hrobject_tab to it_sel_hrobject_tab.

"populate fields of struture and append to itab
append wa_sel_hrsobid_tab to it_sel_hrsobid_tab. . CALL FUNCTION 'RH_OBJID_REQUEST' * EXPORTING * plvar = ld_plvar * otype = ld_otype * seark = ld_seark * seark_begda = ld_seark_begda * seark_endda = ld_seark_endda * set_mode = ld_set_mode * dynpro_repid = ld_dynpro_repid * dynpro_dynnr = ld_dynpro_dynnr * dynpro_plvarfield = ld_dynpro_plvarfield * dynpro_otypefield = ld_dynpro_otypefield * dynpro_searkfield = ld_dynpro_searkfield * callback_prog = ld_callback_prog * callback_form = ld_callback_form * restrict_fb = ld_restrict_fb * restrict_data = ld_restrict_data * without_rsign = ld_without_rsign * without_relat = ld_without_relat * without_sclas = ld_without_sclas * orgbeg = ld_orgbeg * orgend = ld_orgend * win_title = ld_win_title * app_data = ld_app_data IMPORTING sel_plvar = ld_sel_plvar sel_otype = ld_sel_otype sel_object = ld_sel_object * TABLES * otype_table = it_otype_table * condition = it_condition * base_objects = it_base_objects * marked_objects = it_marked_objects * sel_objects = it_sel_objects * sel_hrobject_tab = it_sel_hrobject_tab * sel_hrsobid_tab = it_sel_hrsobid_tab EXCEPTIONS CANCELLED = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 INTERNAL_ERROR = 4 ILLEGAL_MODE = 5 . " RH_OBJID_REQUEST
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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 .


SELECT single PLVAR
FROM PLOGI
INTO ld_plvar.


"populate fields of struture and append to itab
append wa_otype_table to it_otype_table.

SELECT single OTYPE
FROM PLOGI
INTO ld_otype.


"populate fields of struture and append to itab
append wa_condition to it_condition.

ld_seark = some text here

"populate fields of struture and append to itab
append wa_base_objects to it_base_objects.

ld_seark_begda = 20210129

"populate fields of struture and append to itab
append wa_marked_objects to it_marked_objects.

ld_seark_endda = 20210129

"populate fields of struture and append to itab
append wa_sel_objects to it_sel_objects.
ld_set_mode = 'some text here'.

"populate fields of struture and append to itab
append wa_sel_hrobject_tab to it_sel_hrobject_tab.

"populate fields of struture and append to itab
append wa_sel_hrsobid_tab to it_sel_hrsobid_tab.
ld_dynpro_repid = 'some text here'.
ld_dynpro_dynnr = 'some text here'.

ld_dynpro_plvarfield = some text here

ld_dynpro_otypefield = some text here

ld_dynpro_searkfield = some text here
ld_callback_prog = 'some text here'.
ld_callback_form = 'some text here'.

SELECT single FUNCNAME
FROM TFTIT
INTO ld_restrict_fb.


ld_restrict_data = some text here

ld_without_rsign = some text here

ld_without_relat = some text here

ld_without_sclas = some text here

ld_orgbeg = 20210129

ld_orgend = 20210129
ld_win_title = 'some text here'.

ld_app_data = some text here

SAP Documentation for FM RH_OBJID_REQUEST


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

Contribute (Add Comments)

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.