Skip to Content

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

URGENT: Illegal Argument Exception

I am getting this error in the following scenario.

I want to save the text fields from an interactive form to SAP through RFC enabled function module. The type in the model and controller is byte[]. I have converted the string attribute from view to save to the model. But the model dictionary in Web Dynpro projec (model) has this type as Binary. I am going nuts since 3 days due to this.

The type in SAP is RAW.

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

java.lang.IllegalArgumentException

at com.sap.dictionary.runtime.DdTypeBinary.format(DdTypeBinary.java:60)

at com.sap.dictionary.runtime.DdTypeBinary.toString(DdTypeBinary.java:64)

at com.sap.tc.webdynpro.clientserver.data.DataContainer.doFormat(DataContainer.java:1405)

at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:1098)

at com.sap.tc.webdynpro.clientimpl.xdp.renderer.data.XfdRenderer.renderAttributes(XfdRenderer.java:370)

... 41 more

Former Member

Helpful Answer

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