on 10-10-2008 11:32 AM
Dear forum users,
we are having a issue with certain currencies in WebDynpro. The amount is missing 2 zeros at the end - e.g. with WON: The ABAP FM shows 4.000.000 WON, but our WebDynpro application shows 40.000,00 WON.
We are currently using com.sap.dictionary.predefined.currency.currencyNormalized as Data Type for our currency fields. The fields containing the amounts use decimal 15, 2.
Before we didn't use currencyNormalized, which caused the same problem with even more currencies. E.g. JPY is working now with currencyNormalized, but was not working before.
Is there any trick to currencies that I'm not aware of, or does the currencyNormalized implementation have a bug? I find it a bit strange that we have JPY working now, but WON not.
Does anybody have any ideas on this?
Thanks in advance for any help,
Christian
PS: I would like to upload some screenshots, explaining the problem, but I can't figure out how...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
thank you for your reply.
Please correct me if I'm wrong, but aren't those steps exactly what I did? (If you take a look at my screenshots, you can see that I filled the reference field)
1. Read the "Cost" attribute's attribute info
2. Find its parent structure
3. Read the reference currency attribute, if any. i.e. "Currencyu201D.
4. Obtain currency Key stored in this currency value attribute, for the particular node element
5. Each currency has an equivalent simple type (an xml file)defined. Read the appropriate currency simple type from the dictionary .
6. Parse the simple type file and obtain the corresponding format.
6. Apply this format to the value stored in "Cost" for the corresponding currency key.
Thanks,
Christian
Hi,
Handling currency is bit tricky in webdynpro. I have faced similar problem (as some currencies dont have decimal points) and hence I divided currency into two simple data type. One to indicate the amount and the other for currency code.
So we designed our BAPI / wrappper RFCs in such a way that we would always get two fields for representing currency (4000000 - as currency amount - floating) and then currency code (WON, YEN, etc - String). We then consumed these RFCs into webdynpro models.
Hope this helps in your case.
Thanks,
Soujanya Bhaumik
Hi again,
I just uploaded the screenshots some place else:
http://movilitas-sync.com/movimats/filedownload/wci1.jpg
http://movilitas-sync.com/movimats/filedownload/wdm1.png
http://movilitas-sync.com/movimats/filedownload/wdm2.png
edit: my WebBrowser has trouble displaying the images. I had to download them in order to open.
Regards,
Christian
Edited by: Christian Spriegel on Oct 10, 2008 12:36 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
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.