Ansicht
Dokumentation

RH_OBJID_REQUEST - Input Help (F4) for OBJID

RH_OBJID_REQUEST - Input Help (F4) for OBJID

CPI1466 during Backup   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module implements the standard value help for Personnel Planning objects. It replaces the possible entries help that was implemented in the module pool RHOBIDF4.

The module first attempts to display the value help type (search function, structure search, standard matchcode and unrelated objects) that was last selected for this object type. If nothing was selected, a dialog box is displayed in which you can select the type of value help you require.

You can specify details on the plan version, the object type, and a search string directly in the parameters PLVAR, OTYPE and SEARK. Alternatively, you can complete the parameters DYNPRO_REPID and DYNPRO_DYNNR or the relevant entry fields for DYNPRO_PLVARFIELD, DYNPRO_OTYPEFIELD and DYNPRO_SEARKFIELD can be read directly from the screen. If both options are used, the screen data is taken.

If you require the option "unrelated objects" to be available, the parameters WITHOUT_RSIGN, WITHOUT_RELAT and WITHOUT_SCLAS must be filled.

You can restrict the data selected using CALLBACK_PROG and CALLBACK_FORM. The same applies to the parameters RESTRICT_FB and RESTRICT_DATA. You can specify conditions for the database selection using CONDITIONS. However, you can also specify all allowed objects with BASE_OBJECTS, in which case, there is no database selection.

All of these options only apply to the search function. It is not possible to set restrictions for the Matchcode search or the structure search.

Example

  1. Example: Simple value help with plan version and object type specified (neither should be read from the screen)
CALL FUNCTION 'RH_OBJID_REQUEST' EXPORTING PLVAR = My_plan_version OTYPE = My_object_type IMPORTING SEL_OBJECT = Selected_object EXCEPTIONS CANCELLED = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 INTERNAL_ERROR = 4 OTHERS = 5
  1. Example: as in 1 but with several objects selected. In addition, the objects previously selected are already marked.
CALL FUNCTION 'RH_OBJID_REQUEST' EXPORTING PLVAR = My_plan_version OTYPE = My_object_type SET_MODE = 'X' TABLES SEL_OBJECTS = Subsequently_selected MARKED_OBJECTS = Previously_selected EXCEPTIONS CANCELLED = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 INTERNAL_ERROR = 5 OTHERS = 6.
  1. Example: Simple value help, plan version and object type are read from the screen.
CALL FUNCTION 'RH_OBJID_REQUEST' EXPORTING DYNPRO_REPID = Name_of_my_program DYNPRO_DYNNR = My_screen_number DYNPRO_PLVARFIELD = 'NAME_OF_PLVAR_FIELD' DYNPRO_OTYPEFIELD = 'NAME_OF_OTYPE_FIELD' IMPORTING SEL_OBJECT = Selected_object EXCEPTIONS CANCELLED = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 INTERNAL_ERROR = 4 OTHERS = 5
  1. Example: Value help with unrelated objects (w/o 'A003' to 'O')
CALL FUNCTION 'RH_OBJID_REQUEST' EXPORTING PLVAR = My_plan_version OTYPE = My_object_type WITHOUT_RSIGN = 'A' WITHOUT_RELAT = '003' WITHOUT_SCLAS = 'O' IMPORTING SEL_OBJECT = Selected_object EXCEPTIONS CANCELLED = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 INTERNAL_ERROR = 4 OTHERS = 5

Caution! You can also select related objects if you use the structure search option for instance.

  1. Example: Value help with direct return of the object ID in an HROBJECT structure (single objects are also returned in a table).
CALL FUNCTION 'RH_OBJID_REQUEST' EXPORTING PLVAR = My_plan_version OTYPE = My_object_type TABLES SEL_HROBJECT_TAB = My_object_table EXCEPTIONS CANCELLED = 1 WRONG_CONDITION = 2 NOTHING_FOUND = 3 INTERNAL_ERROR = 4 OTHERS = 5

Notes

You must use the function module RH_MACO for the input check. For selecting an object in a dialog step (for example, "Relate" or "Assign"), call the function module RH_DETERMINE_ORG_OBJID with F4_MODE=SPACE.

Also refer to the parameter documentation.

Further information

You can find further information in the source code of the function module.





Parameters

APP_DATA
BASE_OBJECTS
CALLBACK_FORM
CALLBACK_PROG
CONDITION
DYNPRO_DYNNR
DYNPRO_OTYPEFIELD
DYNPRO_PLVARFIELD
DYNPRO_REPID
DYNPRO_SEARKFIELD
MARKED_OBJECTS
ORGBEG
ORGEND
OTYPE
OTYPE_TABLE
PLVAR
RESTRICT_DATA
RESTRICT_FB
SEARK
SEARK_BEGDA
SEARK_ENDDA
SEL_HROBJECT_TAB
SEL_HRSOBID_TAB
SEL_OBJECT
SEL_OBJECTS
SEL_OTYPE
SEL_PLVAR
SET_MODE
WIN_TITLE
WITHOUT_RELAT
WITHOUT_RSIGN
WITHOUT_SCLAS

Exceptions

CANCELLED
ILLEGAL_MODE
INTERNAL_ERROR
NOTHING_FOUND
WRONG_CONDITION

Function Group

HRBAS00SEARCH

CPI1466 during Backup   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 9310 Date: 20240523 Time: 165201     sap01-206 ( 94 ms )