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)
Enterprises Service Repository :
Create Data Type
Create Message Type
Create Service Interface
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.
Ref: http://scn.sap.com/people/sandeep.kaushik/blog/2010/07/15/abap-proxy-complete-developments-on-sap-pi-sap-abap-systems
1 comment :
I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor led live training in SAP PI , kindly Contact GRONYSA
Click for SAP PI Course details SAP PI
GRONYSA Offer World Class Virtual Instructor led training on SAP PI. We have industry expert trainer. We provide Training Material and Software Support. GRONYSA has successfully conducted 10,000 + trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
For Demo Contact us.
Nitesh Kumar
GRONYSA
E-mail: nitesh.kumar@gronysa.com
Ph: +91-9632072659/ +1-2142700660
www.GRONYSA.com
Post a Comment