cancel
Showing results for 
Search instead for 
Did you mean: 

How to populate State values depends upon Country's selection

Former Member
0 Kudos

Hi Experts,

Am a new learner to webdynpro abap and interestedd in creating a simple view where it should has a Country dropdown field and depends on it's input it should populate their respective States dropdown values

I did a full research on dropdown by index and key.

Also I have undergone a lot of stuffs on scn, but still i didn't get any clear info about how to start my work. Please share your valuable ideas. It would really be a great pleasure.

Accepted Solutions (1)

Accepted Solutions (1)

former_member219762
Contributor
0 Kudos

Hi Rao,

I explained it in document http://scn.sap.com/docs/DOC-48672. Go through that .

you also can do similarly but instead of hard coded values you can use domain for each country states

Regards,

Sreenivas.

Former Member
0 Kudos

Thanks Srini,

I have gone through your doc. Also I have some doubt

1. Whether can I use dropdownbyindex for both fields.

2. Also I have a lot of value, so how can I get the correspondent state, upon selecting the country.

Please clarify me.

Thanks

former_member219762
Contributor
0 Kudos

Hi,

you can use dropdownbyindex for both fields but to get selected country you need to follow different approach,dropdownbykey by key is best suitable for country

You can maintain country and states in custom table and select states from that table depends on selected country.

Regards,

Sreenivas.

Answers (0)