SAP Inbound IDOC Process TransformHierarchyToFlat error

I’m trying to post a ‘custom’ IDOC’ Into SAP using the TransformHierarchyToFlat procedures and i’m getting a JCO conversion error saying there is an object in SDATA that can’t be converted to CHAR. I’m calling teh standard INBOUND_IDOC_PROCESS function.
I checked the pipeline prior to the call to SAP and there are no objects in SDATA. The HLEVEL tag is an object but it is not part of the SDATA structure.
Has anyone run into this.

Thanks in advance,
Mike

2003-04-21 10:20:05 CDT com.sap.mw.jco.JCO$ConversionException: (122) JCO_ERROR_CONVERSION: Cannot convert a value from type java.lang.Object to CHAR at field SDATA
at com.sap.mw.jco.JCO$Record.createConversionException(JCO.java:7790)
at com.sap.mw.jco.JCO$Record.setValue(JCO.java:10219)
at com.wm.pkg.sap.rfc.Value.setField(Value.java:154)
at com.wm.pkg.sap.rfc.Value.setTable(Value.java:52)
at com.wm.pkg.sap.rfc.SAPSession.setInputValues(SAPSession.java:687)
at com.wm.pkg.sap.rfc.SAPSession.invokeTransaction(SAPSession.java:504)
at sap.map.outbound(map.java:72)
at java.lang.reflect.Method.invoke(Native Method)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:688)
at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
at com.wm.lang.flow.FlowState.step(FlowState.java:430)
at com.wm.lang.flow.FlowState.invoke(FlowState.java:400)
at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1786)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:688)
at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:140)
at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:292)
at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:559)
at com.wm.lang.flow.FlowState.stepIncremental(FlowState.java:482)
at com.wm.lang.flow.FlowState.invoke(FlowState.java:373)
at wm.server.flow.stepFlow(flow.java:183)
at java.lang.reflect.Method.invoke(Native Method)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:288)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:688)
at com.wm.app.b2b.server.comm.DefaultServerRequestHandler.handleMessage(DefaultServerRequestHandler.java:64)
at com.wm.app.b2b.server.HTTPMessageHandler.process(HTTPMessageHandler.java:166)
at com.wm.app.b2b.server.HTTPDispatch.run(HTTPDispatch.java:457)
at com.wm.util.pool.PooledThread.run(C:/NT/Perforce/basis/4.1.0-terra/module/core/source/com/wm/util/pool/PooledThread.java:103)
at java.lang.Thread.run(Thread.java:484)

Michael,

I haven’t had this problem with BC, but I was getting it last week with JCO in JBuilder. The problem came from an invalid date format in the input.

For the date to be sucessfully passed to R/3 it had to be in the format “YYYYMMDD”

Just a thought,

SimonB

was this problem resolved? I am also going through exactly same problem. Can somebody throw light on this issue.

Thanks
Lily

I had this problem today and the ABAP programmer found that the error was in the BAPI. The field worked with 6 and 8 digits but not 11 digits. I thought the problem might be in the JCO driver but it was not.