cancel
Showing results for 
Search instead for 
Did you mean: 

DOC_TYPE_UNKNOWN RFC -> XI ->Webservice

Former Member
0 Kudos

Hi all,

While configuring the above scenario, I not getting the response from the webserive. But the server indicate that the resposne was sent back to us.

I checked the RFC communcation channel in RWB Monitoring,following was the error:

Error in processing caused by: com.sap.aii.af.rfc.core.server.RfcServerException: got unexpected document type:DOC_TYPE_UNKNOWN

Can any body suggest the possible reason

Any help will be higly appreciated

Thanks and best regards,

Kulwant Singh

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member556603
Active Contributor
0 Kudos

Hello Kulwant,

RFC Server Exceptions

If an exception is thrown while the SAPServer is executing, this exception will be passed to the SAPServerHost on which the SAPServer instance is hosted by calling the SAPServerHost’s OnServerException function. This is a virtual function and can be overridden in the derived class.

SAP ABAP exceptions can be returned from your RFC Server component by throwing an RFCAbapException. The RfcAbapException contains two strings: error code and message.

Error code is the name of the exception in ABAP/4 (for example, NOTHING_SPECIFIED) and is referenced inside the ABAP/4 program as a SY-SUBRC code. Message is mapped to SY-MSGV1and can be examined for additional detail.

Example:

// exceptions are returned to SAP ABAP/4 program as appropriate SY-SUBRC & SY-MSGV1

if (""== Kunnr & "" == Name1)

{

RfcAbapException ns = new RfcAbapException("NOTHING_SPECIFIED", " Both kunnr and name1 were empty");

throw ns;

}

if ("RHD" == Name1)

{

RfcAbapException nrf = new RfcAbapException("NO_RECORD_FOUND", " No customer by name: " + Name1);

throw nrf;

}

For a complete RFC Server example with exception handling, see the RFCServerConsole sample.

Thanks,

Satya Kumar

Reward if it is useful..

former_member556603
Active Contributor
0 Kudos

Hi,

Hope this link is useful to you..

Thanks,

Satya Kumar

Former Member
0 Kudos

Check weather the request data going to RFC has correct information?

Thanks

Farooq