Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Amount Field mismatch while trying to write to R/3 BAPI

I am having the following issue when I am trying to write to an R/3 BAPI. One filed Price is a decimal type in the automatically created structure of BAPI Model.

I have seen some referneces to use as Simple Type but I am not sure where to update that.

Can somebody help me with the exact procedure. How I can change the datatype or reference the correct datatype with out the following error.

Any help is appreciated...

The initial exception that caused the request to fail, was:

com.sap.dictionary.runtime.DdException: Wrong amount type (not decimal): Unit service cannot be instantiated

at com.sap.dictionary.runtime.DdBroker.getUnitService(DdBroker.java:215)

at com.sap.dictionary.runtime.DdBroker.getUnitService(DdBroker.java:233)

at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getUnitService(DataTypeBroker.java:337)

at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.initReferenceAttribute(DataAttributeInfo.java:342)

at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initStructureType(NodeInfo.java:708)

... 30 more

Not what you were looking for? View more on this topic or Ask a question