on 01-20-2009 10:33 PM
Hi forum
I have a BAPI that return a structure with some decimals fields, when i import this BAPi to my model, in the dictionary was created a structure with my decimals fields of type Decimal (10,2), and the class that the model generated, rerturns a BigDecimal. The problem is that when i tried to make a getField1OfTypeDecimal() of this kinds of fields, the function is returning me "0", and the BAPI works fine. I have been resolved this issue by changing the type of the output paremeters in the BAPI to Char, but i think that could be another solution.
THnks
Josué Cruz
Edited by: Josue Cruz on Jan 20, 2009 11:33 PM
Well, there is not a problem, there is a thing of conversion of units and calculated decimal fields, you have in the BAPI´s convert internal formats to external formats.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Josue,
Instead of converting to char, it is more appropriate to convert BigDecimal into double (or float).
Convert with <BigDecimal>.doubleValue() method for the same & use this value in WD.
Kind Regards,
Nitin
Edited by: Nitin Jain on Jan 22, 2009 7:19 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 |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.