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

Reagrding List Box in Module Pool Program

Former Member
0 Likes
592

Hello all,

I am M.Ramana Murthy, I got stuct in one issue in Dialog Programming regarding list box. Actually my requirement is like this I have 3 list box. In the first list box i have to get the list of countries from a Database table.And when i select the Country then in the second list box i have to get the states in that particular countries. and in the 3rd list box i have to get the districts in that particular state. So can any one help me out solving this probelm.

Thanks in Advance.

M.Ramana Murthy

Hello all,

I am M.Ramana Murthy, I got stuct in one issue in Dialog Programming regarding list box. Actually my requirement is like this I have 3 list box. In the first list box i have to get the list of countries from a Database table.And when i select the Country then in the second list box i have to get the states in that particular countries. and in the 3rd list box i have to get the districts in that particular state. So can any one help me out solving this probelm.

Thanks in Advance.

M.Ramana Murthy

3 REPLIES 3
Read only

Former Member
0 Likes
570

hi kishore kari

"on your intenal table for country in the PBO status u can use

where NAME is the name of your list box

set list box property Respond to double click on give the function code to it

DATA: NAME TYPE vrm_id,

OPT11 TYPE vrm_values,

VALUE LIKE LINE OF OPT11.

LOOP AT ITAB_MM_RR_VEN_NR.

value-key = ITAB_MM_RR_VEN_NR.

value-text = ITAB_MM_RR_VEN_NR.

APPEND value TO OPT11.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

ID = NAME

VALUES = OPT11

.

ENDLOOP.

In PAI

check the OK_CODE and load the data using the same concept used above to load the data of region and distict

regards

Pulkit Agarwal

Read only

anversha_s
Active Contributor
0 Likes
570

hi kishore,

i think better to use F4 help.

its easy.

rgds

anver

Read only

Former Member
0 Likes
570

Hi Ramana,

you can use the function module <b>VRM_SET_VAL</b>UES to appear the values in list box. please refer the demo program <b>DEMO_DYNPRO_DROPDOWN_LISTBOX</b> to have clear idea.

Reward points if it is helpful

Regards

Alfred