‎2013 May 03 6:27 AM
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.
‎2013 May 03 6:57 AM
Hi Surendra,
Below is a thread that talks about similar requirement.
http://scn.sap.com/thread/1572319
Hope this helps,
~Athreya
‎2013 May 03 7:02 AM
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
‎2013 May 03 7:03 AM
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
‎2013 May 03 7:11 AM
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
‎2013 May 03 7:14 AM
Also, check the below link.
http://www.saptechnical.com/Tutorials/ABAP/Dropdown/Index.htm
Thanks,
Namrata
‎2013 May 03 7:17 AM
‎2013 May 03 7:44 AM
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
‎2013 May 03 9:39 AM
Hi Surendra,
Instead of drop down it will be easy if you use search help.