ABAP Proxy (Complete Developments on SAP-PI & SAP-ABAP Systems)

ABAP Proxy (Complete Developments on SAP-PI & SAP-ABAP Systems)


ABAP PROXY : Developments on Application System & Integration System

USE of This Blog :

Sometimes, we are facing problem when developing ABAP proxies.

As SAP-PI consultant who does not know ABAP, can’t work on ABAP Coding and Proxy Generation part. An ABAP Consultant who does not know SAP-PI, can’t work on SAP-PI design part.

At that time understanding of both side developments is required, this Blog explaining Development work on SAP-PI System (Integration System) & SAP-ECC System (Application System).

This blog will be helpful for Consultant who knows only SAP-PI OR SAP-ABAP. Consultant can identify the scope of work on SAP-PI OR SAP-ABAP part with the help of this blog.

INTRODUCTION : ABAP proxies are used when ABAP applications needs to send and receive data.

image

Communication : Transport Protocol : HTTP

RFC Destinations : Type H (HTTP Connections to ABAP System)

image

Development on SAP-PI

Enterprises Service Repository :

Create Data Type

image

Create Message Type

image

Create Service Interface

image

Development on SAP-ECC

In proxies, it will generate 3 objects at Application System :

ABAP Class.

Structure for Message Type.

Structure of Data Type.

Inbound Proxy:

image

T-code : SPROXY

Open the node for your Service (Inbound / Outbound) & Right click

Click on CREATE PROXY.

This Development is for Inbound Proxy.

image

image

Give Package Name & Prifix : Click on Continue .

image

After Completing this creation process, this screen will be there.

image

SAVE & Activate. Double click on Provider Class, this screen will be there :

image

Double click on Method.

This screen will be there, you have to write your code here in this method.

image

Header Structure and Item Structures will be in INPUT Parameter :

image

image

Write code as below :

image

(Inbound Proxy)

Post the data in Table

Post the data using Function Module

Inbound Proxy is Complete.

Outbound Proxy:

image

T-code : SPROXY

Open the node for your Service (Inbound / Outbound) & Right click

Click on CREATE PROXY.

This Development is for Outbound Proxy.

In this Case, choose Outbound Service Interface for Creation of Proxy.

After Completing this creation process, this screen will be there.

image

For Outbound Proxy, an executable code in ABAP will be written to call that proxy.

In this Example, we are writing that code in Executable program in SE38.

First Pick data from Table.

Fill Proxy Structure & send to Integration System.

For this example, Data Declaration part will be as below :

image

For this example, code for filling & Sending Proxy data Subroutine will be as below :

image

Now, Inbound & Outbound Proxy Development is complete.

SAP Developer Network SAP Weblogs: SAP Process Integration (PI)