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.


 
 

Communication :  Transport Protocol : HTTP

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


 
 

Development on SAP-PI

Enterprises Service Repository :

 Create Data Type


 Create Message Type


Create Service Interface


 
 

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:


 
 

T-code : SPROXY

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

Click on CREATE PROXY.

This Development is for Inbound Proxy.


 
 


 
 

Give Package Name & Prifix : Click on Continue .


 
 

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


 
 

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


 
 

Double click on Method.

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


 
 

Header Structure and Item Structures will be in INPUT Parameter :


 
 


 
 

Write code as below :


 
 

(Inbound Proxy)

Post the data in Table

Post the data using Function Module

Inbound Proxy is Complete.

 
 

Outbound Proxy:


 
 

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.


 
 

 
 

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 :


 
 

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


Now, Inbound & Outbound Proxy Development is complete. 


 

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