Skip to Content
avatar image
Former Member

web dynpro + adobe form decimal field round off

hello all,

I am now developing an application which is based on the SAP WebDynpro and Adobe form, but the application has an error, if one can help me to resolve the error, I will be very thankful.

The error is as follows, for a decimal filed on the Adobe form which is binded to a deicmal attribute of Webdynpro, if I get the value of the decimal field using the programming code as "context.nodexx.getAttribute("xx")", the decimal value is rounded off (e.g., 2.4 is changed to 2.0, 2.7 is changed to 3.0).

for example:In Web Dynpro, A node name is "TestNode" which has a type of decimalattribute named "TestAttr" , in adobe form a decimal field bind to the TestAttr . when i input 2.3 in adobe form, i click the button with code:


the rusult is : 2.0

if i input the value 2.5 the result will be 3.0

Thanks All !

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 20, 2009 at 09:49 AM


    Try using float / double for displaying the decimal numbers. Previously I had encountered the same problem in WebDynpro by using the decimal attribute.


    Poojith MV

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      there is a special display pattern to check for null values:



      null{'please enter a value'}

      But I don't know if WDJ is really sending a null value. You can combine this with alternatives using '|' to separate alternatives.