SAP RH_OBJID_REQUEST_46A Function Module for









RH_OBJID_REQUEST_46A is a standard rh objid request 46a 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 objid request 46a FM, simply by entering the name RH_OBJID_REQUEST_46A into the relevant SAP transaction such as SE37 or SE38.

Function Group: HRBAS00SEARCH_INTERNAL
Program Name: SAPLHRBAS00SEARCH_INTERNAL
Main Program: SAPLHRBAS00SEARCH_INTERNAL
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RH_OBJID_REQUEST_46A 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_OBJID_REQUEST_46A'"
EXPORTING
* PLVAR = "Plan Version
* DYNPRO_DYNNR = ' ' "Number of Current Screen
* DYNPRO_PLVARFIELD = ' ' "Name of Plan Version Field on Screen
* DYNPRO_OTYPEFIELD = ' ' "Name of Object Type Field on Screen
* DYNPRO_SEARKFIELD = ' ' "Name of Search Term Field on Screen
* SEARK_OTEXT = ' ' "'Search Function for '
* CALLBACK_PROG = ' ' "Callback Program
* CALLBACK_FORM = ' ' "Callback Routine for Reorganization
* RESTRICT_FB = ' ' "FM for Restriction
* RESTRICT_DATA = ' ' "Data String for Restriction
* LANGU = SY-LANGU "INTERNAL: Language
* OTYPE = ' ' "Object Type
* LANGU_MODE = ' ' "INTERNAL: For All Languages
* SET_MODE = ' ' "X = Multiple Selection
* SELECT_MESSAGE = 'X' "X = Set Object Transferred Message
* NO_NEW_ENTRIES = ' ' "X = Create No New Objects
* NO_SEARK_POPUP = ' ' "INTERNAL: Do Not Display Dialog Box for Search Term
* ORGBEG = SY-DATUM "Organizational Assignment of Positions
* ORGEND = SY-DATUM "Organizational Assignment of Positions
* WIN_TITLE = ' ' "Window title
* APP_DATA = ' ' "Application Data
* OM_CALL = ' ' "
* SEARK = '*' "Search Term
* SEARK_BEGDA = $LOW_DATE "Search Period (Start)
* SEARK_ENDDA = $HIGH_DATE "Search Period (End)
* WITHOUT_RSIGN = "Unrelated Objects: RSIGN
* WITHOUT_RELAT = "Unrelated Objects: RELAT
* WITHOUT_SCLAS = "Unrelated Objects: SCLAS
* DYNPRO_REPID = ' ' "Name of Calling Program (Not SY_SUBRC)

IMPORTING
SEL_OBJECT = "Selected Object
SEL_MODE = "Type of Help Selected

TABLES
* OTYPE_TABLE = "Object Type Table
* CONDITION = "Condition Table
* BASE_OBJECTS = "Object Basic Set (-> No Database Selection)
* SEL_OBJECTS = "Selected Set in Multiple Selection
* MARKED_OBJECTS = "Objects Already Selected
* F4_LIST = "

EXCEPTIONS
CANCELLED = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 ILLEGAL_MODE = 4 INTERNAL_ERROR = 5
.



IMPORTING Parameters details for RH_OBJID_REQUEST_46A

PLVAR - Plan Version

Data type: PLVAR
Optional: Yes
Call by Reference: No ( called with pass by value option)

DYNPRO_DYNNR - Number of Current Screen

Data type: SYDYNNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DYNPRO_PLVARFIELD - Name of Plan Version Field on Screen

Data type: DYNPREAD-FIELDNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DYNPRO_OTYPEFIELD - Name of Object Type Field on Screen

Data type: DYNPREAD-FIELDNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

DYNPRO_SEARKFIELD - Name of Search Term Field on Screen

Data type: DYNPREAD-FIELDNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SEARK_OTEXT - 'Search Function for '

Data type: OTEXT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALLBACK_PROG - Callback Program

Data type: HRF4PARAM-CBK_PROG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CALLBACK_FORM - Callback Routine for Reorganization

Data type: HRF4PARAM-CBK_FORM
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESTRICT_FB - FM for Restriction

Data type: HRF4PARAM-RC_FUNC
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESTRICT_DATA - Data String for Restriction

Data type: HRF4PARAM-RC_DATA
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LANGU - INTERNAL: Language

Data type: HRF4PARAM-SRK_LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

OTYPE - Object Type

Data type: OTYPE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LANGU_MODE - INTERNAL: For All Languages

Data type: HRF4PARAM-SRK_LMODE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SET_MODE - X = Multiple Selection

Data type: FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SELECT_MESSAGE - X = Set Object Transferred Message

Data type: FLAG
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_NEW_ENTRIES - X = Create No New Objects

Data type: FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

NO_SEARK_POPUP - INTERNAL: Do Not Display Dialog Box for Search Term

Data type: FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

ORGBEG - Organizational Assignment of Positions

Data type: HRF4PARAM-ORG_BEGDA
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

ORGEND - Organizational Assignment of Positions

Data type: HRF4PARAM-ORG_ENDDA
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

WIN_TITLE - Window title

Data type: SYTITLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

APP_DATA - Application Data

Data type: HRF4PARAM-APP_DATA
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

OM_CALL -

Data type: FLAG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SEARK - Search Term

Data type: PPMAC-SEARK
Default: '*'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SEARK_BEGDA - Search Period (Start)

Data type: BEGDATUM
Default: $LOW_DATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SEARK_ENDDA - Search Period (End)

Data type: ENDDATUM
Default: $HIGH_DATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITHOUT_RSIGN - Unrelated Objects: RSIGN

Data type: RSIGN
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITHOUT_RELAT - Unrelated Objects: RELAT

Data type: RELAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

WITHOUT_SCLAS - Unrelated Objects: SCLAS

Data type: SCLAS
Optional: Yes
Call by Reference: No ( called with pass by value option)

DYNPRO_REPID - Name of Calling Program (Not SY_SUBRC)

Data type: SYREPID
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RH_OBJID_REQUEST_46A

SEL_OBJECT - Selected Object

Data type: OBJEC
Optional: No
Call by Reference: No ( called with pass by value option)

SEL_MODE - Type of Help Selected

Data type: HRF4PARAM-SRK_MODE
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RH_OBJID_REQUEST_46A

OTYPE_TABLE - Object Type Table

Data type: T788O
Optional: Yes
Call by Reference: No ( called with pass by value option)

CONDITION - Condition Table

Data type: HRCOND
Optional: Yes
Call by Reference: No ( called with pass by value option)

BASE_OBJECTS - Object Basic Set (-> No Database Selection)

Data type: RHMC2
Optional: Yes
Call by Reference: No ( called with pass by value option)

SEL_OBJECTS - Selected Set in Multiple Selection

Data type: OBJEC
Optional: Yes
Call by Reference: No ( called with pass by value option)

MARKED_OBJECTS - Objects Already Selected

Data type: HRSOBID
Optional: Yes
Call by Reference: No ( called with pass by value option)

F4_LIST -

Data type: HRF4LIST
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

CANCELLED - Activity Terminated

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

WRONG_CONDITION - Invalid Dynamic Condition in CONDITION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NOTHING_FOUND - No Object Matched Search Criteria

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ILLEGAL_MODE - Invalid Value for MODE

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERNAL_ERROR - System Error

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RH_OBJID_REQUEST_46A 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_plvar  TYPE PLVAR, "   
lv_cancelled  TYPE PLVAR, "   
lv_sel_object  TYPE OBJEC, "   
lt_otype_table  TYPE STANDARD TABLE OF T788O, "   
lv_dynpro_dynnr  TYPE SYDYNNR, "   SPACE
lv_dynpro_plvarfield  TYPE DYNPREAD-FIELDNAME, "   SPACE
lv_dynpro_otypefield  TYPE DYNPREAD-FIELDNAME, "   SPACE
lv_dynpro_searkfield  TYPE DYNPREAD-FIELDNAME, "   SPACE
lv_seark_otext  TYPE OTEXT, "   SPACE
lv_callback_prog  TYPE HRF4PARAM-CBK_PROG, "   SPACE
lv_callback_form  TYPE HRF4PARAM-CBK_FORM, "   SPACE
lv_restrict_fb  TYPE HRF4PARAM-RC_FUNC, "   SPACE
lv_restrict_data  TYPE HRF4PARAM-RC_DATA, "   SPACE
lv_langu  TYPE HRF4PARAM-SRK_LANGU, "   SY-LANGU
lv_otype  TYPE OTYPE, "   SPACE
lv_sel_mode  TYPE HRF4PARAM-SRK_MODE, "   
lt_condition  TYPE STANDARD TABLE OF HRCOND, "   
lv_wrong_condition  TYPE HRCOND, "   
lv_langu_mode  TYPE HRF4PARAM-SRK_LMODE, "   SPACE
lv_set_mode  TYPE FLAG, "   SPACE
lv_select_message  TYPE FLAG, "   'X'
lv_no_new_entries  TYPE FLAG, "   SPACE
lv_no_seark_popup  TYPE FLAG, "   SPACE
lv_orgbeg  TYPE HRF4PARAM-ORG_BEGDA, "   SY-DATUM
lv_orgend  TYPE HRF4PARAM-ORG_ENDDA, "   SY-DATUM
lv_win_title  TYPE SYTITLE, "   SPACE
lv_app_data  TYPE HRF4PARAM-APP_DATA, "   SPACE
lv_om_call  TYPE FLAG, "   SPACE
lv_seark  TYPE PPMAC-SEARK, "   '*'
lt_base_objects  TYPE STANDARD TABLE OF RHMC2, "   
lv_nothing_found  TYPE RHMC2, "   
lv_seark_begda  TYPE BEGDATUM, "   $LOW_DATE
lt_sel_objects  TYPE STANDARD TABLE OF OBJEC, "   
lv_illegal_mode  TYPE OBJEC, "   
lv_seark_endda  TYPE ENDDATUM, "   $HIGH_DATE
lv_internal_error  TYPE ENDDATUM, "   
lt_marked_objects  TYPE STANDARD TABLE OF HRSOBID, "   
lt_f4_list  TYPE STANDARD TABLE OF HRF4LIST, "   
lv_without_rsign  TYPE RSIGN, "   
lv_without_relat  TYPE RELAT, "   
lv_without_sclas  TYPE SCLAS, "   
lv_dynpro_repid  TYPE SYREPID. "   SPACE

  CALL FUNCTION 'RH_OBJID_REQUEST_46A'  "
    EXPORTING
         PLVAR = lv_plvar
         DYNPRO_DYNNR = lv_dynpro_dynnr
         DYNPRO_PLVARFIELD = lv_dynpro_plvarfield
         DYNPRO_OTYPEFIELD = lv_dynpro_otypefield
         DYNPRO_SEARKFIELD = lv_dynpro_searkfield
         SEARK_OTEXT = lv_seark_otext
         CALLBACK_PROG = lv_callback_prog
         CALLBACK_FORM = lv_callback_form
         RESTRICT_FB = lv_restrict_fb
         RESTRICT_DATA = lv_restrict_data
         LANGU = lv_langu
         OTYPE = lv_otype
         LANGU_MODE = lv_langu_mode
         SET_MODE = lv_set_mode
         SELECT_MESSAGE = lv_select_message
         NO_NEW_ENTRIES = lv_no_new_entries
         NO_SEARK_POPUP = lv_no_seark_popup
         ORGBEG = lv_orgbeg
         ORGEND = lv_orgend
         WIN_TITLE = lv_win_title
         APP_DATA = lv_app_data
         OM_CALL = lv_om_call
         SEARK = lv_seark
         SEARK_BEGDA = lv_seark_begda
         SEARK_ENDDA = lv_seark_endda
         WITHOUT_RSIGN = lv_without_rsign
         WITHOUT_RELAT = lv_without_relat
         WITHOUT_SCLAS = lv_without_sclas
         DYNPRO_REPID = lv_dynpro_repid
    IMPORTING
         SEL_OBJECT = lv_sel_object
         SEL_MODE = lv_sel_mode
    TABLES
         OTYPE_TABLE = lt_otype_table
         CONDITION = lt_condition
         BASE_OBJECTS = lt_base_objects
         SEL_OBJECTS = lt_sel_objects
         MARKED_OBJECTS = lt_marked_objects
         F4_LIST = lt_f4_list
    EXCEPTIONS
        CANCELLED = 1
        WRONG_CONDITION = 2
        NOTHING_FOUND = 3
        ILLEGAL_MODE = 4
        INTERNAL_ERROR = 5
. " RH_OBJID_REQUEST_46A




ABAP code using 7.40 inline data declarations to call FM RH_OBJID_REQUEST_46A

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.

 
 
 
 
DATA(ld_dynpro_dynnr) = ' '.
 
"SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_dynpro_plvarfield).
DATA(ld_dynpro_plvarfield) = ' '.
 
"SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_dynpro_otypefield).
DATA(ld_dynpro_otypefield) = ' '.
 
"SELECT single FIELDNAME FROM DYNPREAD INTO @DATA(ld_dynpro_searkfield).
DATA(ld_dynpro_searkfield) = ' '.
 
DATA(ld_seark_otext) = ' '.
 
"SELECT single CBK_PROG FROM HRF4PARAM INTO @DATA(ld_callback_prog).
DATA(ld_callback_prog) = ' '.
 
"SELECT single CBK_FORM FROM HRF4PARAM INTO @DATA(ld_callback_form).
DATA(ld_callback_form) = ' '.
 
"SELECT single RC_FUNC FROM HRF4PARAM INTO @DATA(ld_restrict_fb).
DATA(ld_restrict_fb) = ' '.
 
"SELECT single RC_DATA FROM HRF4PARAM INTO @DATA(ld_restrict_data).
DATA(ld_restrict_data) = ' '.
 
"SELECT single SRK_LANGU FROM HRF4PARAM INTO @DATA(ld_langu).
DATA(ld_langu) = SY-LANGU.
 
DATA(ld_otype) = ' '.
 
"SELECT single SRK_MODE FROM HRF4PARAM INTO @DATA(ld_sel_mode).
 
 
 
"SELECT single SRK_LMODE FROM HRF4PARAM INTO @DATA(ld_langu_mode).
DATA(ld_langu_mode) = ' '.
 
DATA(ld_set_mode) = ' '.
 
DATA(ld_select_message) = 'X'.
 
DATA(ld_no_new_entries) = ' '.
 
DATA(ld_no_seark_popup) = ' '.
 
"SELECT single ORG_BEGDA FROM HRF4PARAM INTO @DATA(ld_orgbeg).
DATA(ld_orgbeg) = SY-DATUM.
 
"SELECT single ORG_ENDDA FROM HRF4PARAM INTO @DATA(ld_orgend).
DATA(ld_orgend) = SY-DATUM.
 
DATA(ld_win_title) = ' '.
 
"SELECT single APP_DATA FROM HRF4PARAM INTO @DATA(ld_app_data).
DATA(ld_app_data) = ' '.
 
DATA(ld_om_call) = ' '.
 
"SELECT single SEARK FROM PPMAC INTO @DATA(ld_seark).
DATA(ld_seark) = '*'.
 
 
 
DATA(ld_seark_begda) = $LOW_DATE.
 
 
 
DATA(ld_seark_endda) = $HIGH_DATE.
 
 
 
 
 
 
 
DATA(ld_dynpro_repid) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!