cancel
Showing results for 
Search instead for 
Did you mean: 

Attribute value is not valid for attribute 'Bet01'

Former Member
0 Kudos

Hello,

I don't know why I'm having this exception when I try to set a value to a BigDecimal WSDL parameter (WSDL created from an RFC)

The strange thing is that the model, controller an view are well mapped and the project isn't showing me any building error. The problem happens when I execute the web dynpro and I use the code,

A test that I did was,

item.setBet01(new BigDecimal(2000); - it Works

item.setBet01(new BigDecimal(2000.23); - it doesn't work

The exception is "attribute value is not valid for attribute 'Bet01'".

Please see this video for a better understanding, http://showmewhatswrong.com/play/clVlo1hmI

Any ideas?

Thanks

Best Regards

SU

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks for the replies!!

I solved it by changing the type of the context attribute from double to decimal, and it works. I had to change a little bit the code.

Best Regards

SU

p330068
Active Contributor
0 Kudos

Dear Soauniverse,

Please refer to the

Best Regards

Arun Jaiswal

former_member182372
Active Contributor
0 Kudos

new BigDecimal(2000.23d, new MathContext(6))