‎2008 Aug 29 5:22 AM
hi,
pls consider this query in module pool programmimg:
i am fetching data from database to my itab.
now on screen 100, matnr field is available but this field is should be list box.
if i press i need to display the itab values in that list and if i select any one value , i need to display in that field.
if anyone knows pls help me
‎2008 Aug 29 5:26 AM
check thse programs..
DEMO_DROPDOWN_LIST_BOX
DEMO_DYNPRO_DROPDOWN_LISTBOX
For appearing the field to be a list box you need to choose the List box option in the screen Field attributes if it is module pool.
‎2008 Aug 29 5:24 AM
‎2008 Aug 29 5:26 AM
‎2008 Aug 29 5:26 AM
check thse programs..
DEMO_DROPDOWN_LIST_BOX
DEMO_DYNPRO_DROPDOWN_LISTBOX
For appearing the field to be a list box you need to choose the List box option in the screen Field attributes if it is module pool.
‎2008 Aug 29 5:26 AM
hi Raj
PARAMETERS: po_name(30) TYPE c VISIBLE LENGTH 20 AS LISTBOX.
TYPE-POOLS: VRM.
DATA: i_values TYPE vrm_values,
wa_values LIKE LINE OF i_values.
wa_values-key = '1'.
wa_values-text = 'External'.
APPEND wa_values TO i_values.
wa_values-key = '2'.
wa_values-text = 'Internal'.
APPEND wa_values TO i_values.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'PO_NAME' "Screen field name
values = i_values
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
regards
deva