The ultimate site for SAP XI certification and tutorial resources. Submit tutorials/scenarios and get assured gifts!!! For more info click here...

best sap tutorials

scenario - abap proxy to xi

Author: Ramkumar

Proxy generation enables us to communicate with XI in an alternate manner. Proxy generation enables you to create proxies in application systems. Proxies encapsulate the creation or parsing of XML messages and the communication with the relevant runtime components required to send or receive the messages.

There are two types of Proxies.

1. Java Proxies.
2. ABAP Proxies.

Java proxies are used when java applications needs to send and receive data and ABAP proxies are used when ABAP applications needs to send and receive data. I am going to demonstrate a simple client proxy which sends the employee data to XI and it routes the information to a file.

We use two clients of XI here. Client 100 acts as XI server .Client 105 acts as a client ABAP proxy which sends employee information as a message to XI which routes the info to a file. Logical flow is depicted as shown below. Note that conversion of sending system format to XI specific format is not done at the outbound side of the XI server.

Demonstration of ABAP Proxy

Necessary integration repository objects are developed at the design time. The out bound client proxy message interface and message type is depicted as shown below.

Message Interface

Message Type

After the message interface is developed in the integration repository, proxy is generated on the client 100 using SPROXY transaction. SPROXY transaction lists all the message interfaces in the integration repository. We have to choose our message interface Proxy_Interface_OB and click Create.

Create Proxies

ABAP proxy will generate 3 objects :
1. ABAP Class ( ZBLOGCO_ Proxy_Interface_OB).
2. Structure for the message type in ABAP Data Dictionary (ZBLOGEMP_PROFILE_MSG).
3. Structure for the data type in ABAP Data Dictionary (ZBLOGEMP_PROFILE_DT).

Proxy Objects
Once the proxy objects are activated we can check the ZBLOGCO_Proxy_Interface_OB in the SE24 editor. Since the proxy message interface is asynchronous the ZBLOGCO_ Proxy_Interface_OB has EXECUTE_ASYNCHRONOUS and message type ZBLOGEMP_PROFILE_MSG as the importing parameter. With this proxy generation is over.

Activate Proxy

Proxy Class

ABAP Proxy Class(SE24)

Outbound  Proxy Mesage Structure


_______________________________Next page>>