on 2010 Sep 16 12:03 PM
Hi All,
I have one our form, that decimal fields and numeric fields are defined Locale: Danish(Denmark). it shows all the amounts with 2 decimal places. like 62.83.
Now I want to change it, agree with the currency, in this case the currency is HUF and the result must be 6.283.
I already changed the field Locale to default Locale, but the result is the same 62.83 instead of 6.283.
My Form properties - Defaults - Default Form Locale has Viewer's system locale.
Any help is Welcome.
Best regards,
Ana
Note the existence of the patterns. Display pattern should help you here.
Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I told you something not that elegant but working in the first post already. For every field create for example two versions. One for HUF, change . or , ..pick how many decimals etc. and use scripting to show one field and hide the other one or vice versa. If you don´t like this approach, you can always send string from backend into a text field.
You have two "workarounds" which work for sure....
Otto
Thank you for the soluction with 2 fields, and show or not if it is HUF or not.
But I'd like one global solution for all currencies, because the SAP standard form just has one field for all currencies.
When I created my form, I defined DK with language and now the field stills with DK settings, I already remove it in XML tab, but is alwayse the same result.
Any ideas?
Ana
Do you need the form to be interactive or not?
If not, I would use the strings approach. Use text fields instead of any numeric fields, you will need no patterns etc. Create a function module which will get the numbers and the language (and some customizing if you want to) and inside the FM use cases for all the situations/ languages and format the numbers into the strings.
At least that is what I would do. I have no better answer.
Otto
I have no idea what flexibility you need. For some cases a simple write should suffice. It is very likely you will have to do this manually for some cases... Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try:
- change the language of the form in the printing program (not sure if helps for the locale)
- try to change the locale in the form, do not use default, pick a country from the list that matches your needs
- move the functionality to backend, format the numbers there and send it as a string to the form fields
- create multiple versions of a single field, where every field will have different static locale (denmark, germany etc.) and hide all the fields except the one that fits in (you will use some JS coding to check the value of some field from backend etc.).
Regards Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.