SEGMENT_UNKNOWN 通过 JCO 连接器访问 SAP 后端时出错

SEGMENT_UNKNOWN error while acessing SAP backend via JCO-connector

我正在尝试通过 Java 中间件 (Dell Boomi) 连接到 SAP 系统以检查现有文档类型。 检查基本 IDOC 类型(例如 ORDERS05)时一切正常。 当尝试检查自定义类型(例如 ZORDERS05)时,我从 java JCO 类:

得到一个相当模糊的异常
Feb 25, 2016 6:56:56 PM CET WARNING [com.boomi.connector.sap.browse.SAPIDocSchemaBuilder buildSchema] Unable to find IDoc base type: ZORDERS05, extension: 
com.sap.conn.jco.AbapException: (126) SEGMENT_UNKNOWN: SEGMENT_UNKNOWN Message 257 of class EA type E, Par[1]: ZHEADER, Par[2]: 740
    at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:2083)
    at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:1185)
    at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:1014)
    at com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:1458)
    at com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:1428)
    at com.sap.conn.jco.rt.AbapFunction.execute(AbapFunction.java:332)
    at com.boomi.connector.sap.SAPConnection.executeFunction(SAPConnection.java:103)
    at com.boomi.connector.sap.browse.SAPIDocSchemaBuilder.buildSchema(SAPIDocSchemaBuilder.java:49)
    at com.boomi.connector.sap.browse.SAPSchemaBrowser.buildIDocProfile(SAPSchemaBrowser.java:210)
    at com.boomi.connector.sap.browse.SAPSchemaBrowser.browse(SAPSchemaBrowser.java:84)
    at com.boomi.connector.custom.CustomConnectorBrowseAction.browse(CustomConnectorBrowseAction.java:77)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.boomi.util.ClassUtil$InvokerWithClassLoader.invoke(ClassUtil.java:360)
    at com.sun.proxy.$Proxy72.browse(Unknown Source)
    at com.boomi.connector.BrowseMessageHandler.handle(BrowseMessageHandler.java:116)
    at com.boomi.container.core.MessagePollerThread$BaseTask.handleMessage(MessagePollerThread.java:657)
    at com.boomi.container.core.MessagePollerThread$AsyncTask.run(MessagePollerThread.java:742)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

关于如何解决此问题的任何提示? SAP 方面的对象似乎完全相同(都是基本类型,没有扩展等...)

Ravindra HV 的注释是正确的,此问题是由于 SAP 端的配置错误引起的。 为了解决这个问题,SAP 团队必须在自定义 IDOC 类型中发布自定义段 (ZHEADER)。 请参阅对此的回答:http://scn.sap.com/thread/3436578