Hi All,
I am tried to send an IDOC(whose basic type, extension are known) to SAP system(ECC 6.0) using the SAP JCo API 3.0 and all works well.
Now I used the same piece of code to connect to SAP 4.0 system but the following basic line of code has ran into a IDOCRUNTIMEEXCEPTIION
doc = iDocFactory.createIDocDocument(iDocRepository, iDocType, iDocCymType);
com.sap.conn.idoc.IDocRuntimeException: Unable to get metadata for MATMAS03 with extension YES2P_IEXT_MATMAS03: Function module "IDOCTYPE_READ_COMPLETE" not found.
at com.sap.conn.idoc.jco.rt.SAPRepository.queryRootSegmentMetaData40(SAPRepository.java:1330)
at com.sap.conn.idoc.jco.rt.SAPRepository.queryRootSegmentMetaData(SAPRepository.java:1122)
at com.sap.conn.idoc.jco.rt.SAPRepository.getRootSegmentMetaData(SAPRepository.java:886)
at com.sap.conn.idoc.rt.DefaultIDocDocument.<init>(DefaultIDocDocument.java:119)
at com.sap.conn.idoc.rt.DefaultIDocDocument.<init>(DefaultIDocDocument.java:57)
at com.sap.conn.idoc.jco.rt.JCoIDocDocument.<init>(JCoIDocDocument.java:58)
at com.sap.conn.idoc.jco.rt.JCoIDocRuntime.createIDocDocument(JCoIDocRuntime.java:143)
at com.sap.conn.idoc.jco.rt.JCoIDocRuntime.createIDocDocument(JCoIDocRuntime.java:32)
at com.sap.conn.idoc.rt.DefaultIDocRuntime.createIDocDocument(DefaultIDocRuntime.java:228)
at com.sap.conn.idoc.rt.DefaultIDocRuntime.createIDocDocument(DefaultIDocRuntime.java:24)
at mxsapconnectorcore.actions.SendIDocToSap.executeAction(SendIDocToSap.java:76)
at mxsapconnectorcore.actions.SendIDocToSap.executeAction(SendIDocToSap.java:38)
at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57)
at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457)
at hC.b(SourceFile:207)
at com.mendix.core.Core.execute(SourceFile:226)
at ll.a(SourceFile:69)
at mv.a(SourceFile:72)
at mu.a(SourceFile:151)
at mu.executeAction(SourceFile:98)
at com.mendix.systemwideinterfaces.core.UserAction.execute(SourceFile:57)
at com.mendix.core.actionmanagement.CoreAction.call(SourceFile:457)
at hC.b(SourceFile:207)
at com.mendix.core.Core.execute(SourceFile:304)
at com.mendix.core.Core.execute(SourceFile:280)
at mxsapconnectorcore.actions.IDocOutputQueue.run(IDocOutputQueue.java:116)
at java.lang.Thread.run(Unknown Source)
Caused by: com.sap.conn.jco.JCoException: (104) JCO_ERROR_SYSTEM_FAILURE: Function module "IDOCTYPE_READ_COMPLETE" not found. (raised by system D10|hslsid10)
at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:677)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:1830)
at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:1120)
at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:953)
at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:936)
at com.sap.conn.jco.rt.ConnectionManager.internalExecute(ConnectionManager.java:411)
at com.sap.conn.idoc.jco.rt.SAPRepository$ConnectionProvider.execute(SAPRepository.java:1722)
at com.sap.conn.idoc.jco.rt.SAPRepository$ConnectionProvider.access$100(SAPRepository.java:1671)
at com.sap.conn.idoc.jco.rt.SAPRepository.queryRootSegmentMetaData40(SAPRepository.java:1256)
... 26 more
Caused by: RfcException: [D10|hslsid10]
message: Function module "IDOCTYPE_READ_COMPLETE" not found.
Return code: RFC_SYS_EXCEPTION(3)
error group: 104
key: RFC_ERROR_SYSTEM_FAILURE
Exception raised by D10|hslsid10
at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:2038)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:1778)
... 33 more
Caused by: com.sap.conn.rfc.exceptions.RfcGetException: Function module "IDOCTYPE_READ_COMPLETE" not found.
at com.sap.conn.rfc.engine.RfcImp.ab_rfcerror(RfcImp.java:1148)
at com.sap.conn.rfc.engine.RfcGet.ab_rfcget(RfcGet.java:120)
at com.sap.conn.rfc.engine.RfcRcv.ab_rfcreceive(RfcRcv.java:33)
at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:1980)
... 34 more
Now my question is how do I create an IDOC(a blank one) using this API for 4.0 system which doesnt seem to have this function module OR does anyone know other method create IDOC using SAP JCo3.
Please comment. Thanks in advance
Request clarification before answering.
We are also still looking for an answer for this issue. The server in our case is running SAP 4.0 package 17 and the function (IDOCTYPE_COMPLETE_READ) only gets added in package 42. However the JCo connector page states it supports R/3 3.1 and newer, so is this a bug or is there an alternative function we could use?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.