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: 

Org. Unit - List Values

Former Member
0 Kudos

How do everyone,

I have created a selection screen parameter based on objec-objid.

However, when I run the program the parameter is not providing a drop down list

containing all the organizational units within our org. structure.

I know you can use the PCH database but I just want a single parameter to

provide the org. structure.

Any ideas anyone??

Andy

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use below FM for F4 help or check the standard program rhgrenz0

CLEAR: t_selobj,

t_markobj.

  • Value help for orgunit field

CALL FUNCTION 'RH_OBJID_REQUEST'

EXPORTING

plvar = w_plvar

otype = p_otyp

set_mode = 'X'

dynpro_repid = sy-repid

dynpro_dynnr = '1000'

dynpro_searkfield = c_orglow

orgbeg = p_date

orgend = p_date

TABLES

sel_objects = t_selobj

marked_objects = t_markobj

EXCEPTIONS

cancelled = 1

wrong_condition = 2

nothing_found = 3

illegal_mode = 4

internal_error = 5

OTHERS = 6.

Edited by: Jacks M on Jul 17, 2008 2:19 PM

5 REPLIES 5

former_member125931
Active Participant
0 Kudos

Create a search help for this field enter your data.

or

use this FM : f1000_show_f4help_regtyp

Former Member
0 Kudos

Hi,

Use below FM for F4 help or check the standard program rhgrenz0

CLEAR: t_selobj,

t_markobj.

  • Value help for orgunit field

CALL FUNCTION 'RH_OBJID_REQUEST'

EXPORTING

plvar = w_plvar

otype = p_otyp

set_mode = 'X'

dynpro_repid = sy-repid

dynpro_dynnr = '1000'

dynpro_searkfield = c_orglow

orgbeg = p_date

orgend = p_date

TABLES

sel_objects = t_selobj

marked_objects = t_markobj

EXCEPTIONS

cancelled = 1

wrong_condition = 2

nothing_found = 3

illegal_mode = 4

internal_error = 5

OTHERS = 6.

Edited by: Jacks M on Jul 17, 2008 2:19 PM

0 Kudos

Many thanks mate,

it works a treat but just one question if you don't mind.

When I run the code, the values are appearing as normal but there

is no check box alongside each unit.

???

Andy

0 Kudos

Hi,

pass Set mode as 'X' ..

Cheers ,

jacks

0 Kudos

Many mnay thanks again.

You have solved a really big problem.

Top marks mate.

Andy