07-17-2008 9:32 AM
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
07-17-2008 9:42 AM
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
07-17-2008 9:39 AM
Create a search help for this field enter your data.
or
use this FM : f1000_show_f4help_regtyp
07-17-2008 9:42 AM
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
07-17-2008 10:22 AM
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
07-17-2008 10:30 AM
07-17-2008 10:33 AM
Many mnay thanks again.
You have solved a really big problem.
Top marks mate.
Andy