Outbound RFC with Inbound BAPI
The OutboundRFCWithInboundBAPI example shows how to use the Request-Response Invocation Service and the Request-Response Service services.
This example contains two processes. The only difference between the two processes is that the Using-JMS process uses the JMS transport but the Using-RV process uses the Rendezvous transport.
The Using-JMS and the Using-RV processes receive an event from the SAP system by invoking the BAPI_XBP_EVENT_RAISE function module. The Request-Response Invocation Service service forwards this event to the Request-Response Service service.
- When the value of the
EVENTID parameter in the incoming event is
CUSTOMER, the adapter invokes the BAPI_CUSTOMER_GETDETAIL2 function module to check if the customer number provided for the EVENTPARAM parameter is valid.
If the customer number is valid, the process writes the customer information to an output file. Otherwise, the Request-Response Invocation Service service receives an error message.
- When the value of the
EVENTID parameter in the incoming event is
VENDOR, the adapter invokes the BAPI_VENDOR_GETDETAIL function module to check if the customer number provided for the EVENTPARAM parameter is valid.
If the customer number is valid, the process writes the customer information to an output file. Otherwise, the Request-Response Invocation Service service receives an error message.