Skip to Content
avatar image
Former Member

Currency Issue in WebDynpro

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...

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 10, 2008 at 10:36 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 10, 2008 at 10:46 AM

    hi!

    please refer to the following blog.

    "Formatting in WebDynpro Java "

    thanks

    vishal

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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