on 04-24-2008 10:07 AM
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
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 SAPServerHosts 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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check weather the request data going to RFC has correct information?
Thanks
Farooq
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.