cancel
Showing results for 
Search instead for 
Did you mean: 

Decimal notation PROBLEM IN WEB DYNPRO

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos
mohankumar_d
Explorer
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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