Combining Service Interfaces with Imported
RFCs or IDocs
If you want to exchange messages between the Integration Server and an older SAP system by using the RFC or IDoc adapter, proceed as follows:
1.
Import the RFC or
IDoc interface to the ES Repository (see:
Importing IDocs or
RFCs).
2.
Create a service
interface with the
interface pattern
Stateless or Stateless (XI 3.0-Compatible). The counterpart of an IDoc is always
asynchronous, whereas RFCs can be asynchronous or synchronous. Assign the RFC
or IDoc message to the operation by using the input help.

You can only reference messages of one object type from an operation. For example, it is not possible to enter a message type for the request message of a synchronous operation and an IDoc message for the response message of the same operation.
3. Generate a proxy for your service interface. The RFC or IDoc is already available in the application system and can exchange messages with the Integration Server by using the respective adapter.
The operation of the service interface and the RFC or IDoc reference the same message schema. Therefore, no mapping is required.