on 08-06-2008 4:28 PM
Hello All,
I'm facing this problem "com.sap.dictionary.runtime.DdException: Wrong amount type (not decimal): Unit service cannot be instantiated
"..it seems to be a problem with one of the structure that is linked to one of my sub - model nodes (specificly bapidlvitem) if you see...the error is something to do with the context generation. I'm using a standard bapi "Bapi_delivery_getlist" and the str that have the problem is "et_delivery_item" of type bapidlvitem. It has some attributes but what i've figured out is that one of them is decimal, the other ones are string...so i dont know what to do because the problem appear when i create the model node with that subnode ("et_delivery_item") if i dont include that subnode, all works fine...and i really need that subnode because i have to use it in my application. Please someone help me
Regards,
MC
Hi Mariana,
The problem is you are passing String value to a decimal attribute.Try like this:
wdContext.<yournode>Element().set<yourAttribute>(new BigDecimal(yourStringAttribute));
If you want more help, provide your context structure also.
Regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hope you solved it. Even if you dont pass value to the field, if the function module in which this field is present in binded in your code, you will see this error.
Note that, this happens, if a "complex structure" or invalid field is present in one of the Function modules you are using. In such cases, it is not necessary that you set or retrieve value from that field. Just binding or mapping of that FM itself leads to such errors. All that needs to be taken care is, in any of the function modules used in WebDynpro, no such test fields should be added.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.