83519 abap proxies in xi

Upload: jtello857

Post on 03-Apr-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/28/2019 83519 Abap Proxies in Xi

    1/5

    ABAP Proxies in XI(Client Proxy)Ravikumar AllampallamBusiness CardCompany: Wipro Technologies

    Posted on Mar. 14, 2005 03:56 AM in SAP Exchange

    Infrastructure (XI)

    ABAP Proxies in XI(Client Proxy)

    The other way of interfacing XI is through proxies. From WAS 6.20, proxy generation feature enablesapplication systems to communicate with XI using proxies. Proxy generation enables you to createproxies in application systems. Proxies encapsulate the creation or parsing of XML messages and thecommunication 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 areused when ABAP applications needs to send and receive data. I am going to demonstrate a simpleclient 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 proxywhich sends employee information as a message to XI which routes the info to a file. Logical flow isdepicted as shown below. Note that conversion of sending system format to XI specific format is notdone 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 clientproxy message interface and message type is depicted as shown below.

    Subscribe

    Print

    Permalink

    https://weblogs.sdn.sap.com/pub/u/5814https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.SDNBusinessCard?u=n7MaZTzO%2Bv2oDS8sH6WVIg%3D%3Dhttps://weblogs.sdn.sap.com/weblogs/topic/16https://weblogs.sdn.sap.com/weblogs/topic/16http://weblogs.sdn.sap.com/pub/q/weblogs_rss?x-ver=1.0&x-mimetype=application%2Frdf%2Bxmlhttp://weblogs.sdn.sap.com/pub/q/weblogs_rss?x-ver=1.0&x-mimetype=application%2Frdf%2Bxmlhttps://weblogs.sdn.sap.com/pub/wlg/1387https://weblogs.sdn.sap.com/pub/wlg/1387https://weblogs.sdn.sap.com/pub/wlg/1387http://weblogs.sdn.sap.com/pub/q/weblogs_rss?x-ver=1.0&x-mimetype=application%2Frdf%2Bxmlhttps://weblogs.sdn.sap.com/pub/u/5814https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.SDNBusinessCard?u=n7MaZTzO%2Bv2oDS8sH6WVIg%3D%3Dhttps://weblogs.sdn.sap.com/weblogs/topic/16https://weblogs.sdn.sap.com/weblogs/topic/16http://weblogs.sdn.sap.com/pub/q/weblogs_rss?x-ver=1.0&x-mimetype=application%2Frdf%2Bxmlhttp://weblogs.sdn.sap.com/pub/q/weblogs_rss?x-ver=1.0&x-mimetype=application%2Frdf%2Bxmlhttps://weblogs.sdn.sap.com/pub/wlg/1387https://weblogs.sdn.sap.com/pub/wlg/1387
  • 7/28/2019 83519 Abap Proxies in Xi

    2/5

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

    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).

  • 7/28/2019 83519 Abap Proxies in Xi

    3/5

    Once the proxy objects are activated we can check the ZBLOGCO_Proxy_Interface_OB in the SE24editor. Since the proxy message interface is asynchronous the ZBLOGCO_ Proxy_Interface_OB hasEXECUTE_ASYNCHRONOUS and message type ZBLOGEMP_PROFILE_MSG as the importingparameter. With this proxy generation is over.

    We need to develop an ABAP Report in 100 client to trigger a client proxy. The following report isexecuted in the SE38 Editor for triggering an ABAP Proxy request from client 105.

  • 7/28/2019 83519 Abap Proxies in Xi

    4/5

    Receiver adapter configurations should be done in the integration directory and the necessarysender/receiver binding should be appropriately configured. We need not do any sender adapterconfigurations as we are using proxies.

    Triggering ABAP Proxy

    We can trigger the ABAP proxy by logging into client 105 of XI server and executing the ABAP reportthrough SE38 editor. Once the report is executed we can see the file on the XI server and contentsof file by double clicking the file.

  • 7/28/2019 83519 Abap Proxies in Xi

    5/5

    I hope this blog will be useful for trying out real time applications on ABAP Proxies.Ravikumar Allampallamis working as a NetWeaver Consultant in the SAP NetWeaver CompetencyGroup of Wipro Technologies.

    https://weblogs.sdn.sap.com/pub/u/5814https://weblogs.sdn.sap.com/pub/u/5814https://weblogs.sdn.sap.com/pub/u/5814