Show TOC

Example documentationProcessing an ABAP Call Locate this document in the navigation structure


The class that extends the JCO.Server and is called up when an ABAP call is being processed, must overwrite the protected void method handleRequest(JCO.Function function).

The application that processes the call must quit call execution can only allow ABAP exceptions.

All other exceptions that are thrown by handleRequest are treated as system failures.

Syntax Syntax

  1.  protected void handleRequest(JCO.Function function) 
  2.     {
  3.         try
  4.         {
  5.             //process the request
  6.         }
  7.         catch(Exception e)
  8.         {
  9.             throw new AbapException("a group of the exception", "text");
  10.         }
  11.     }
End of the code.

The exception and error listeners are not informed about the exception case. This takes place in handleRequest.

More Information

For a description of the call sequence for tRFC processing, see: