on 08-18-2006 3:04 PM
hi
I have made UIDropDown and bind to the simple type currency.But i am getting option in my dropdown as British Pound ,Indian Rupee ,US Dollar.While i need INR,USD to be compatible with the currency keys in my R/3
(I think so).How can i get these currency keys in my drop down?
Please help me
Regards
Nidhideep
Hi Nidhideep,
I think if you use Simple type Currency, it will give you all the Currencies, whatever is there in the R/3.
If you specifically looking for R/3 values, then get it from back end only. Programmatically you can set all the currencies to Drop Down List Box.
// To get the Selected Value
String selectedValKey = wdContext.currentContextElement().getCurrency();
// To get the Selected Text
IModifiableSimpleValueSet dropValueSet = dateAttributeInfo.getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
String selectedValue = (String)dropValueSet.getText(selectedValKey.trim());
messageManager.reportSuccess("Selected Val Key : "selectedValKey "Text is : "+selectedValue);
If you not looking for this functionality, reply me back.
Regards,
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nidhideep,
I had a requirement to use Currency. Where i had created a simple type, Base type is currency. and the Selected Currency (US Dollar) from Drop Down and i will send the same (USD) to back end. It is working fine for me.
You can cross check with R/3 Table Name : TCURT. from SE11 Transaction Code. It will give most of the Currencies which are mentioned in Web Dynpro Simple Type.
Can you tell me your exact requirement?
Regards,
Sridhar
hi
Sridhar ,my exact requirement is that user insert a currency through drop down ,when i make drop down UI element and bind it to simple type Currency the option that i get are Indian Rupee,US Dollar which are long text in R/3 .While actual key values are inr and USD.So if i insert long text in my R/3 through Webdynpro will actaully my key values i.e.USD or INR get inserted.If that is the case then my problem is solved.Please reply.
Regards
Nidhideep
hi
sridhar i am not getting you .
This code :String currency = wdContext.currentContext.getCurrency();
Is valid when i make user to type on my input field ,and thats is not the case.As i want user to select USD(from dropdown)and this get inserted into my R/3.
How to get values like USD,INR in my dropdown?
Please help me
Regards
Nidhideep
Hi Nidhideep,
String currency = wdContext.currentContext.getCurrency();
The above statement will give you result, like USD,INR...
You can check with
wdComponentAPI.getMessageManager().reportSuccess("Currecny "+currency );
Here,You can bind context variable to any control like Input Field, DropDownKey...It will give corresponding value.
In your case it will give you Selected Value as USD.
Regards,
Sridhar
You are using a DropDownByKey element, right? The "selectedKey" property is bound to an attribute, say "selectedCurrency" of a currency type.
Now make the following test:
Assign an action "CurrencySelected" to the "onSelect" event of the drop-down list. In the action handler, write a debug message like
wdComponentAPI.getMessageManager().reportSuccess
(
"Selected currency key=" + wdContext.currentContextElement().getSelectedCurrency()
);
What do you see as output?
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nidhideep
try this link:
http://help.sap.com/saphelp_nw2004s/helpdata/en/32/4fe741497b0b7fe10000000a155106/frameset.htm
Kind Regards
Stefanie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
To get the currency keys like R/3 currency keys You have the get it From BAPI.In the Simple type not suport it.
Kind Regards
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you explain little bit detail?
Regards
Saravanan K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.