Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HR Function RH_OBJID_REQUEST

Former Member
0 Kudos

Hello,

i want to use 'RH_OBJID_REQUEST' function to retrieve all the O objects in my company's reporting structure and i don't know the meaning of this parameters:

seark_begda, seark_endda

orgbeg, orgend

Obviously i know that are dates, but i don't know exactly which dates they refer to.

May anyone help me?

Thank you

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

They are nothing but start and End dates

see the documentation of that fun module

FU RH_OBJID_REQUEST

____________________________________________________

Short Text

Input Help (F4) for OBJID

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

PLVAR

OTYPE

SEARK

SEARK_BEGDA

SEARK_ENDDA

SET_MODE

DYNPRO_REPID

DYNPRO_DYNNR

DYNPRO_PLVARFIELD

DYNPRO_OTYPEFIELD

DYNPRO_SEARKFIELD

CALLBACK_PROG

CALLBACK_FORM

RESTRICT_FB

RESTRICT_DATA

WITHOUT_RSIGN

WITHOUT_RELAT

WITHOUT_SCLAS

ORGBEG

ORGEND

WIN_TITLE

APP_DATA

SEL_PLVAR

SEL_OTYPE

SEL_OBJECT

OTYPE_TABLE

CONDITION

BASE_OBJECTS

MARKED_OBJECTS

SEL_OBJECTS

SEL_HROBJECT_TAB

SEL_HRSOBID_TAB

Exceptions

CANCELLED

WRONG_CONDITION

NOTHING_FOUND

INTERNAL_ERROR

ILLEGAL_MODE

Function Group

HRBAS00SEARCH

Regards

Anji

1 REPLY 1

Former Member
0 Kudos

Hi

They are nothing but start and End dates

see the documentation of that fun module

FU RH_OBJID_REQUEST

____________________________________________________

Short Text

Input Help (F4) for OBJID

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

PLVAR

OTYPE

SEARK

SEARK_BEGDA

SEARK_ENDDA

SET_MODE

DYNPRO_REPID

DYNPRO_DYNNR

DYNPRO_PLVARFIELD

DYNPRO_OTYPEFIELD

DYNPRO_SEARKFIELD

CALLBACK_PROG

CALLBACK_FORM

RESTRICT_FB

RESTRICT_DATA

WITHOUT_RSIGN

WITHOUT_RELAT

WITHOUT_SCLAS

ORGBEG

ORGEND

WIN_TITLE

APP_DATA

SEL_PLVAR

SEL_OTYPE

SEL_OBJECT

OTYPE_TABLE

CONDITION

BASE_OBJECTS

MARKED_OBJECTS

SEL_OBJECTS

SEL_HROBJECT_TAB

SEL_HRSOBID_TAB

Exceptions

CANCELLED

WRONG_CONDITION

NOTHING_FOUND

INTERNAL_ERROR

ILLEGAL_MODE

Function Group

HRBAS00SEARCH

Regards

Anji