cancel
Showing results for 
Search instead for 
Did you mean: 

IDoc Error

Former Member
0 Kudos

Hi,

I am trying to setup IDoc Listener in our system. From SAP stand point every thing went fine Idocs are generated and no errors in SM58.

But there are no Idocs at xMII side. I have specified the following details

Path :C:/Lighthammer/JCO/Output/

Logic Server Name

User Name

Password

I am getting this below error.

Error making call to xacute java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.commons.httpclient.HttpConnection$WrappedOutputStream.write(HttpConnection.java:1360) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124) at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:790) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2271) at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2651) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1087) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:643) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497) at com.lighthammer.jco.system.XacuteHelper.run(Unknown Source) at com.lighthammer.jco.server.JCOServer.process(Unknown Source) at com.lighthammer.jco.server.LHiDocServer.handleRequest(Unknown Source) at com.sap.mw.idoc.jco.JCoIDoc$Server.dispatchRequest(JCoIDoc.java:10226) at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(Native Method) at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(MiddlewareRFC.java:1368) at com.sap.mw.jco.JCO$Server.listen(JCO.java:6844) at com.sap.mw.jco.JCO$Server.run(JCO.java:6773) at java.lang.Thread.run(Thread.java:534)

Can anyone help me.

Srinivas.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Could this be a DNS problem? Can the gateway resolve the xMII system's IP address?

Answers (1)

Answers (1)

0 Kudos

Srinivas,

What is the file location you are specifing in the Routing Rules tab of the iDoc Listener?

Check to make sure that the folder has "Full Control" set for the IUSR_<MachineName> and SYSTEM user.

Also, what version of xMII are you using if it is 11.5.1 then you have to specify 'localhost' as the xMII server.

Also, if you check smgw does the xMII user show up as connected to the RFC destination?

Does the User have proper permissions to view the content of the iDoc?

Finally, do you have the Unicode flag set? (See the iDoc How to Guide on the SDN)

Hope all that helps.

Regards,

Sam Castro

Former Member
0 Kudos

Sam,

I just checked SMGW and found that there are NO active connections in gateway.

But when I tested with SM59 test the TCP/IP connection it is showing that connection is working fine.

am I missing anything. I am working with our network/SAP team to verify the details I specifed in server properties and client properties. Do you have any other ideas to trace it little more detail from xMII side.

Thanks,

Srinivas.

Former Member
0 Kudos

Hi,

When I checked Logs it is showing below error.

Can some one help me to figure it out.

Thanks,

Srinivas.

XCEPTION - [sapgw00,ussaxxx.us.company.com,XMIIJCO1,] com.sap.mw.jco.JCO$Exception: (129) JCO_ERROR_SERVER_STARTUP: Server startup failed at Sat Mar 31 22:11:42 EST 2007. This is caused by either a) erroneous server settings, b) the backend system has been shutdown, c) network problems. Will try next startup in 64 seconds. Connect to SAP gateway failed Connect_PM TPNAME=XMIIJCO1, GWHOST=ussapxxx.us.company.com, GWSERV=3300 ERROR internal error (this retcode should be handled by caller of NI-layer) TIME Sat Mar 31 23:11:42 2007 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -8 MODULE nixx.c LINE 666 COUNTER 14.

0 Kudos

Srinivas,

The Test connection in SM59 will always succeed but does not actually connect to the xMII Server since it does not know the IP of the xMII Server. The main check is to try to "Ping" the ERP system from the xMII Server, typically via Remote Desktop, if this succeeds then check the ERP permissions assigned to the user set in the xMII IDoc listener. This user will need some higher level authentication in order to receieve data contained in the various iDocs. Also you can check the Security Logs in ERP to see the error caused by the User connection from xMII, this will explain why you don't see a connection in SMGW. In addition to this I recommend going to the xMII Wiki and under connectivity there are links to 2 separate iDoc Configuration guides which are very helpful. Hope this helps to clarify.

-Sam

Former Member
0 Kudos

Srinivas,

1. gwserv should be "sapgw(system no.)". For example "sapgw00"

2. Check whether RFC destination and Program ID is same in RFC Destintion creation in SAP

3. Check whether you used the same Program ID in idoc listener progid

4. Check the client properties like client, user, passwd, sysnr, ashost are correctly entered

5. check with unicode 0, if you checked with 1

6. Check in SAP transaction WE02 or WE05, to see the status of the IDOC which are already sent to the desired port.

7. Also add message type SYNCH apart from LOIPRO or MATMAS etc in the distribution model.

Hope this will sort it out your issue.

Regards

Guru

Former Member
0 Kudos

Rick/Sam/Guru,

Thanks you very much for your time.

I checked every thing as per your suggestions and all the things are in place accordingly. As a last try I suggested to restart the whole system to our basis team.

Surprisingly every thing is working fine and I am seeing Idocs in xMII system.

Thanks,

Srinivasa.