ABAP Outbound Proxy: Community
ABAP Outbound Proxy: Community
Community
Sathwik Reddy G K
December 7, 2015 13 minute read
Introduc on
The Proxy is used as an Interface to transfer or receive from or to the ABAP system.
1. Client Proxy:
Proxy used for transfer of data from ABAP end. The classes generated when we create proxy will be for Outbound.
We need to call the method of Proxy class to transfer the data from ABAP end.
2. Server Proxy:
This document briefly explains the step by step procedure needs to be followed to pass data available in an internal
table in SE38 executable program to PI using Proxy. This is for Client Proxy (Outbound).
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 1/15
3/5/2021 ABAP Outbound Proxy | SAP Blogs
Step1: The Proxy Service Interface has to be created by PI consultant from PI side. This will further reflect in ABAP side in T-Code
“SPROXY”.
a. The Proxy created from PI side will be reflected with following details in SPROXY
(All details are for example please refer the screen shot 1 to check where it will be available)
Namespace: h p://example/xyz/InvoiceDeltaLoad
Fig1
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 2/15
3/5/2021 ABAP Outbound Proxy | SAP Blogs
Fig 2
c. The following dialog will popup when we select “Create Proxy”.
We need to give the “Package” and “Transport Request” to which the Proxy needs to be saved.
A prefix needs to be given which will be used as prefix for all the Objects generated while crea ng proxy. If we click on
con nue and then select on finish the proxy will be generated. Then we need to save and Ac vate the Proxy.
Once the proxy is created for a service interface then that Interface will be marked as Green.
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 3/15
3/5/2021 ABAP Outbound Proxy | SAP Blogs
Fig 3
As you can see in “Fig 1” the outbound Proxy “S168_InvoiceDeltaReplica on_OB” was already
created so it is marked Green. In the Right hand side of the “Fig 1” we can find the Proxy Name when we
double click on the generated Service Interface. In this case since the Outbound Proxy was already
generated we can find the Proxy name of that.
Proxy Name: ZDL1CO_S168_INVOICE_DELTA_REPL
i. Data Type
“S168_InvoiceDeltaReplica on_DT”
“S168_InvoiceDeltaReplica on_MT”
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 4/15
3/5/2021 ABAP Outbound Proxy | SAP Blogs
Fig 4
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 5/15
3/5/2021 ABAP Outbound Proxy | SAP Blogs
Fig 5
b. Call the Method “S168_INVOICE_DELTA_REPLICATION” and Pass the data to the Impor ng parameter
of the Method. Below Screen Shot shows the impor ng parameter of the Method.
Fig 6
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 6/15
3/5/2021 ABAP Outbound Proxy | SAP Blogs
Fig 7
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 7/15
3/5/2021 ABAP Outbound Proxy | SAP Blogs
Fig 8
Fig 9
Fig 10
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 8/15
3/5/2021 ABAP Outbound Proxy | SAP Blogs
Fig 11
d. Now before passing the data to the Method we need to pass the en re data available in the Internal table
to the Internal table which is of type, table type “ZDL1S168_INVOICE_DELTA_REP_TAB” explained above.
of class “ZDL1CO_S168_INVOICE_DELTA_REPL”.
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 9/15
3/5/2021 ABAP Outbound Proxy | SAP Blogs
CLEAR:wa_final,wa_delta.
ENDLOOP.
it_output–s168_invoice_delta_replication–invoice = it_delta.
CLEAR:l_error.
TRY.
EXPORTING
output = it_output.
COMMIT WORK.
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 10/15
3/5/2021 ABAP Outbound Proxy | SAP Blogs
l_error = z_otc_cl_exception->errortext.
EXIT.
ENDTRY.
IF sy–subrc EQ 0.
ENDIF.
ELSE.
WRITE: text–i06.
ENDIF.
Issue:
There was an issue experienced during the development for the Outbound Proxy. The issue was that the Data sent from ABAP side
was ge ng stuck in the Queue. If we open the T-Code SMQ2 we can see that the queue is ge ng stuck and if we open the queue
and process the data manually then the data was being sent to the PI side.
Solu on:
We have to register the name of queue which will be created and in which the data will be stuck when we try to pass data.
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 11/15
3/5/2021 ABAP Outbound Proxy | SAP Blogs
For example consider the Queue name will be “XBTS1254”. Here you can check that whenever the data is passed it gets stuck in
queue which starts with “XBTS”. So we need to register queue with name XBTS*
Fig 12
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 12/15
3/5/2021 ABAP Outbound Proxy | SAP Blogs
Alert Moderator
Assigned tags
Fig 13
Related
3. Queue name: Blog Posts XBTS*(Example)
Pause: 300(Example)
Related Questions
Scheduler Monitoring: 0(Example)
5 Comments
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 13/15
3/5/2021 ABAP Outbound Proxy | SAP Blogs
Former Member
Like(0)
Thanks Gilbert 🙂
Like(0)
Former Member
I am new to proxy concept in abap. Your work helped me quite well in understanding the concept
Like(0)
AKIL SYED
Like(0)
rajeswari CH
Like(0)
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 14/15
3/5/2021 ABAP Outbound Proxy | SAP Blogs
Find us on
Newsletter Support
https://blogs.sap.com/2015/12/07/abap-outbound-proxy/ 15/15