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

Drop down box in Module Pool

Former Member
0 Likes
2,025

Hi,

Topic: Module Pool.

Can any one of you tell me, how we need to create "drop down box" for a input field based on an input of another field.

Example:- I will select country in one input field, based on the country I need to get the list of cities in another input field as a drop down.

8 REPLIES 8
Read only

Former Member
0 Likes
1,227

Hi Surendra,

     Below is a thread that talks about similar requirement.

     http://scn.sap.com/thread/1572319

Hope this helps,

~Athreya

Read only

arindam_m
Active Contributor
0 Likes
1,227

Hi,

Check the below link is shows how you can create a drop down list.

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/frameset.htm

Then to achieve you objective of creating another one for the city list. Create that list in the PAI event of the module pool and filter the results that are supplied to the drop down from the country selected.

For avoiding error keep the City field hidden until the country is selected, this should get you started.

Cheers,

Arindam

Read only

Former Member
0 Likes
1,227

hi,

why can't u go with serch help .

Just call FM in the respective event and  write select query giving where condition (i.e country field) then user click on f4 he will get the respective data based on country field .

thanks

Read only

Former Member
0 Likes
1,227

Hi,

In the PBO call the FM 'VRM_SET_VALUES'  to fill the values and pass it to the input field.

Also, check the  DEMO_DYNPRO_DROPDOWN_LISTBOX program.

Thanks,

Namrata

Read only

Former Member
0 Likes
1,227

Also, check the below link.

http://www.saptechnical.com/Tutorials/ABAP/Dropdown/Index.htm

Thanks,

Namrata

Read only

Former Member
0 Likes
1,227

Hi,

Please go through the below link:

http://scn.sap.com/thread/0002128554

Thanks

Akankshi

Read only

uppu_narayan
Active Participant
0 Likes
1,227

Hi surendra,

    in the PBO read your value in the input field and select the data based on the input field and assign the values in VRM_SET_VALUES function module and pass the id of the drop down field............

thanks and regards,

narayan

Read only

Former Member
0 Likes
1,227

Hi Surendra,

Instead of drop down it will be easy if you use search help.