on 09-02-2008 8:28 AM
Hi,
The requirement of my project is that, when a person selects a particular state from a drop down, then with respect to that state, the next drop down must contain the list of cities of that state. This means that the second dropdown field must be dynamic and the drop down values must depend on the value of previous DD.
Cheers
Umang
Hi,
From where you are getting the drop down values?
I mean when user clicks a value in first drop down, then this value to be assed to where? it will be input to what? are you using BAPI's or RFC's?
if yes,
then just get a selected value for first drop down and send it (assign it) as a input to second drop down and from the output of that FM, just populate the second drop down.
I dont think any supply functions needed in this case.
Let me know where you are passing input and getting output for second drop down?
PradeeP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pradeep,
I have not yet designed the drop downs, I'll be using the first drop down by Key and the value selected by the user (say Uttar Pradesh) will decide the value from second DD (Lucknow, Allahabad, Agra...). I do not know, how should the second dropdown be and how to interact the two DDs.
Cheers
Umang
Hi,
For the second dropdown create a another value node with an attribute. Now for the attribute of your states as selected in the first dropdown, create a supply function.
Hope your RFC is returning the list of cities with the name of the state as key. So if key of the state is say "UP" then loop through the BAPI node and populate it to the newly created value node and set the attribute with the names of the city.
Map this attribute to the second dropdown.
Hope it helps.
thanks & regards,
Manoj
Solved By self
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Umang,
go thorugh this doc:[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c092333b-0601-0010-e7af-8c227fb6d052]
here values will b generated at run time accoding to selection.
hope it hlps...
Regards
Khushboo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Make use of supply functions.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.