2005 Jul 19 4:18 PM
Hi All,
I am working on creating custom infotype.
In the screen of this custom infotype.I want to change the I/O box in to listbox with default values "Group 1","Group 2"," ".So user can select one amongst those values.
How can i do it ?
Please help me out.
Regards
Mayank
2005 Jul 19 4:26 PM
2005 Jul 19 4:29 PM
If you are using a selection screen, here is some sample code.
report zrich_0005 .
type-pools: vrm.
parameters: p_group(20) type c as listbox visible length 20.
at selection-screen output.
perform build_drop_down_list.
start-of-selection.
write:/ p_group.
************************************************************************
* build_drop_down_list
************************************************************************
form build_drop_down_list.
data: name type vrm_id,
list type vrm_values,
value like line of list.
clear list. refresh list.
name = 'P_GROUP'.
value-key = 'GROUP1'.
value-text = 'Group 1'.
append value to list.
value-key = 'GROUP2'.
value-text = 'Group 2'.
append value to list.
* Set the values
call function 'VRM_SET_VALUES'
exporting
id = name
values = list.
endform.
Regards,
Rich Heilman
2005 Jul 19 4:33 PM
2005 Jul 19 5:51 PM
2005 Jul 20 12:51 PM
Hi Rich,
Thanks a Lot.It helped me.
Its working fine.
Regards,
Mayank
2005 Jul 20 1:50 PM