on 01-21-2009 1:26 PM
Hello All,
I have one issue regarding decimal notation problem
I am imported the RFC model, the RFC model providing Total price, net value values in this format, ##.###,##, I need in Decimal format notation like ##,###.##.
How to change it in Web dynpro application.
Thanks in advance,
CSP
Hi Pradeep,
You have to create a Simple Type of type decimal/float under the Dictionary.
Now double-click on your Simple Type created, switch to the Representation tab and type the format you need. (i.e ##,###.##) in the Format text field.
Your context attribute which is populated by the BAPI should be of the Simple Type just created.
Hope this helps!
Regards,
Kishan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Pradeep,
check this link
http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html
Thanks
Bala Duvvuri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To solve this problem, you should explicitly set a different pattern
on the modifiable type. For example, If you are using a simpletype then
you have to do the following.
ISimpleType si =wdThis.wdGetAPI().getContext().
getModifiableTypeOf("decimal");
ISimpleTypeModifiable siM = si.cloneType();
siM.setFormat("#,##0.00############################");
or just siM.setFormat("#,##0.00");
Regards,
Mohan
Try to catch the variable Total Price in the Controller context ...then in the Implementation tab...get it as String and then use the substr() function to get it in the format you want...
Hope it helps.
Shikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
perhaps this thread can lead you in the right direction.
It says that the format is determined by the web dynpro client ... and sometimes UME settings for the user.
https://forums.sdn.sap.com/click.jspa?searchID=21271318&messageID=5103210
Take care.
Edited by: Thierry Dagnino on Jan 21, 2009 11:36 AM
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 | |
10 | |
7 | |
6 | |
6 | |
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.