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

Values in List box

Former Member
0 Likes
1,066

hi all,

i have a module pool,where i have field of table displayed as list box.i wants the the values of the list box to be fethched from another maintenance table,how can i do it.please let me know.thanks alot.

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
993

Hi Kiran,

You can make use of the function modules:

VRM_SET_VALUES

to fill the list box with values that you retreive from different table.

Best Regards,

Ram.

7 REPLIES 7
Read only

Former Member
0 Likes
994

Hi Kiran,

You can make use of the function modules:

VRM_SET_VALUES

to fill the list box with values that you retreive from different table.

Best Regards,

Ram.

Read only

Former Member
0 Likes
993

Hi,

Refer to the demo programs DEMO_DROPDOWN_LIST_BOX and DEMO_DYNPRO_DROPDOWN_LISTBOX for your requirement.

regards,

Advait

Read only

Former Member
0 Likes
993

Hi,

Please use following code

TYPE-POOLS vrm.

DATA values TYPE vrm_values WITH HEADER LINE.

TABLES: ZTOB <ur other maintenance table>.

SELECT * FROM ztob.

values-text = ztob-zbond.

values-key = ztob-ztype.

APPEND values.

ENDSELECT.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = <Module pool field name>

values = values[]

EXCEPTIONS

id_illegal_name = 1

OTHERS = 2.

Read only

Former Member
0 Likes
993

sorry trwo times posted

Read only

Former Member
0 Likes
993

Hi.. hope this code is useful to u.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = 'P_OBTYP'

values = vrm_values

EXCEPTIONS

ID_ILLEGAL_NAME = 1

OTHERS = 2.

Regards,

KP

Read only

Former Member
0 Likes
993

Hi Kiran.

Try this.

PROCESS BEFORE OUTPUT.

*

" passing related data from internal table to Table control on screen

MODULE pass_related_table.

PROCESS AFTER INPUT.

PROCESS ON VALUE-REQUEST.

FIELD sc_list_box_value MODULE get_related_table.

Hope it helps.

Sayan.

Read only

Former Member
0 Likes
993

THANKS