cancel
Showing results for 
Search instead for 
Did you mean: 

IDoc to Java --> not calling 'handleRequest'

Former Member
0 Kudos

Hello,

I try to send IDocs from SAP to a JCoIDoc.Server. I tried to use JCoIDocSample3.java out of sapidocjco-1.0.6

IDoc goes out correctly, in my IDoc-Server the overriden method 'protected void handleRequest(IDoc.DocumentList documentList)' is never called.

In method 'void dispatchRequest(Function function)' the following exception occures:

com.sap.mw.idoc.IDoc$Exception: (2) IDOC_ERROR_METADATA_UNAVAILABLE: The meta da

ta for the IDoc type "LOIPRO01" is unavailable.

at com.sap.mw.idoc.jco.JCoIDoc$JCoDocument.<init>(JCoIDoc.java:326)

at com.sap.mw.idoc.jco.JCoIDoc$JCoDocumentList.<init>(JCoIDoc.java:3072)

at com.sap.mw.idoc.jco.JCoIDoc$Server.dispatchRequest(JCoIDoc.java:10267

)

Can anybody help me with this problem?

C. Stephani

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I'm trying to receive IDOc from SAP. I'm using JCoIDocSample3.java program. I'm not able to receive the IDoc from SAP. I'm getting the following message

<b>Started MyIDocServer.

MyIDocServer is listening now...

Incoming IDoc list request containing 0 documents...</b>

Can anyone tell me what is the problem... can anyone send me the sample code...

Thanks in advance

-Booshan.

Former Member
0 Kudos

hey Mahesh Madhavan

did you solve it? i have the same problem

Former Member
0 Kudos

someone?

Former Member
0 Kudos

Julio,

please see this thread, must solve your problem:

Former Member
0 Kudos

thanks

Former Member
0 Kudos

Hi Julio,

did it solve your problem? I tried setting the Unicode to 1, but then my RFC destination test in SAP R/3 fails. My R/3 System is Unicode enabled.

Bye,

Sameer

Former Member
0 Kudos

Hello,

does anyone have example-code, how to receave IDocs?

Thank you,

C. Stephani

Former Member
0 Kudos

Hi,

the solution was:

Creating repository with name "R3" and not like in the example with "MyPool".

IDoc.Repository idocRepository = JCoIDoc.createRepository("MyIDocRepository", "R3");

Bye,

C. Stephani

Former Member
0 Kudos

I was seeing the same results when I tried this to. If anyone has delt with this and knows the answer I would love to hear it.

Thanks,

Jon