Skip to Content
0
Former Member
Mar 30, 2008 at 01:59 PM

Why am not getting DROP-DOWN for my_P_parameter1?

11 Views

form prepare_list_box_for_wstid .

DATA: l_wstid_list TYPE vrm_id,

l_list TYPE vrm_values,

l_value LIKE LINE OF l_list.

CLEAR: l_list, l_value.

REFRESH l_list.

DATA: BEGIN OF l_t_wstid OCCURS 0,

wstid LIKE Z_tbl-wstid,

END OF l_t_wstid.

SELECT wstid

INTO TABLE l_t_wstid

FROM Z_tbl

WHERE wstid ne space.

SORT l_t_wstid.

DELETE ADJACENT DUPLICATES FROM l_t_wstid.

LOOP AT l_t_wstid.

l_value-key = l_t_wstid-wstid.

WRITE l_t_wstid-wstid TO l_value-text.

APPEND l_value TO l_list.

ENDLOOP.

SORT l_list.

  • Set the LOWER values

l_wstid_list = 'P_WSTID'.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = l_wstid_list

values = l_list.

  • Set the HIGHER values

l_wstid_list = 'P_WSTID'.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = l_wstid_list

values = l_list.

endform. " prepare_list_box_for_wstid

Whts the wrong in my above code, bcoz, am NOT getting the DROP-DOWN for P_WSTID?

thanq