Application Development and Automation 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: 
Read only

listbox or Dropdown box

Former Member
0 Likes
562

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
536

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.

4 REPLIES 4
Read only

Former Member
0 Likes
536

Hi,

Use search Help for Matnr.

Regards

jana

Read only

Former Member
0 Likes
536

Hi

Look into the thread below it is clearly explained

Regards

Pavan

Edited by: pavan kanike on Aug 29, 2008 9:58 AM

Read only

Former Member
0 Likes
537

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.

Read only

Former Member
0 Likes
536

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