cancel
Showing results for 
Search instead for 
Did you mean: 

Need help on proxies

Former Member
0 Kudos
99

Hi Guys,

I am new to XI. Certified but never got a chance to work practically. Now i would like to get into an XI project.

I have done file-file, IDOC-File scenaros.

I would like to know abt proxies.

Please help me giving:

what is Proxy and why it is used?

and some simple documents on proxies.

Cheers,

Karthick

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Proxy are used when u wanted to send the R3 data which is fetched from R3 table to some legacy system or any other systems. that is called client proxy or outbound proxy similarly if u wanted to update the R3 table with the data which is coming from any source system that time we go for Server proxy which inbound proxy.

There are two different uses for the ABAP proxy runtime:

u2022 You want to exchange messages with the Exchange Infrastructure Integration Server by using ABAP proxies. To send a message to the Integration Server, use a client proxy. To provide a service on the SAP Web AS that can be addressed by messages from the Integration Server, use a server proxy.

u2022 You want to call a Web service in the Internet and have generated a client proxy for this purpose. For a description of how Web services are used, see ABAP Web Services.

For proxy you need to first do the configuration:

ABAP Proxy configuration:

Refer the below links:

http://help.sap.com/saphelp_nw04/helpdata/en/2b/f49b21674e8c44940bb3beafd83d5c/frameset.htm

for java proxies

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b20...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903...

http://help.sap.com/saphelp_nw04/helpdata/en/2b/f49b21674e8c44940bb3beafd83d5c/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/ba/f21a403233dd5fe10000000a155106/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/85/78af1bf407434796aaf8dbd6d4e7b7/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/a5/1b5342d8a7be30e10000000a155106/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/a5/1b5342d8a7be30e10000000a155106/frameset.htm

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5a...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7d4db211-0d01-0010-1e8e-9b0...

http://help.sap.com/saphelp_bw30b/helpdata/en/64/30063c66171b3de10000000a11402f/content.htm

Client Proxy -

In this case you can define you scenario as a proxy to File. The blog explains the proxy part. Map the structure to a file and complete the scenario.

Please chekc this PDF :

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3dfac358-0d01-0010-5598-d49...

Server Proxy -

File to Inbound Proxy:

Debugging Inbound Proxy:

SPROXY not working:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83deb90-0201-0010-189c-8d3ff875...

Regards,

Phani

Answers (3)

Answers (3)

ParvathyS_SAP
Product and Topic Expert
Product and Topic Expert
0 Kudos

ABAP proxies are mainly R3 related communication.

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 are used when ABAP applications needs to send and receive data.

- Activate Proxy

- ABAP Server Proxy

- ABAP Client Proxy

Proxies over RFCs/BAPIs:

Proxies communicate with the XI server by means of native SOAP calls over HTTP whereas RFC does not, so you have to convert from SOAP to RFC calls and vice versa . So XML conversion is required.

Proxies can be can be used for both synchronous and asynchronous communication , RFC/BAPI is basically only intended for Synchronous comm. which asks much more system resources from your XI system

RFC/BAPI has its own overhead of function call for large chunk of data

Proxies over IDOCs:

IDocs are always asynchronous - no response

Every business transaction in SAP does not necessarily has a corresponding standard IDOC

Heavy transfer of data in IDOCs (If we consider IDOC transfer, we might be in need of few fields for which we have to transfer the whole IDOC. In the case of Proxy, we can write a report to trigger the proxy & wherein we can fetch only the required fields that has to be sent from R/3 to XI

JPG,PDF files can be sent as attachments in addition to the XML Message though proxies as they communicate thru SOAP Protocol.

Note: Since SAP is moving towards a SOA framework , proxies are best suited for this environment as it uses native SOAP calls over HTTP.

All SAP systems above WAS 6.4 would be using proxies to communicate with the external systems

Types of ABAP Proxies:

1. Based on the mode of communication:

Synchronous Proxy -Sender is awaiting response from the Receiver immediately. i.e. When you send data, it expects an immediate acknowledgement.

Asynchronous Proxy - Sender is not waiting for any acknowledgement.

2. Based on ABAP application:

Client Proxy ? ABAP application utilizes ABAP Proxy to send message to IS in XI protocol format

Server Proxy ? ABAP Proxy receives XML message from IS and converts it to be received by application sytem(R/3 in our case)

3. Based on ABAP web services:

Client proxy ? Allows calling web service on internet (synchronous only). Does not require IS services.

Sever Proxy - Allows using inbound MI as WS( synchronous only)

Point-to-point ? communication between two SAP WA servers.

4. Based on flow of messages

Inbound Proxy ? receives messages to external system

Outbound Proxy - sends messages to external system

ABAP Client and server proxies link:

http://saptechnical.com/Tutorials/XI/ABAPClientProxy/page1.htm

http://saptechnical.com/Tutorials/XI/ABAPProxy/page1.htm

http://help.sap.com/saphelpnw2004s/helpdata/en/91/de56456be146e791bf88188306aa57/frameset.htm

http://help.sap.com/saphelpnw2004s/helpdata/en/91/de56456be146e791bf88188306aa57/frameset.htm

http://help.sap.com/saphelpnw2004s/helpdata/en/91/de56456be146e791bf88188306aa57/frameset.htm

Hope this helps.

Edited by: parvathy sriraman on Sep 23, 2008 7:45 AM

Edited by: parvathy sriraman on Sep 23, 2008 7:47 AM

former_member189441
Active Participant
0 Kudos

What Are Proxies?

Proxies are essentially the APIs, or the programming lines of code, that are generated for the target application language like ABAP/JAVA/.Net.

These application languages use "executable interfaces" to exchange messages in SOAP/XML with external applications.

Proxies in SAP XI

As we know, the role of SAP XIu2019s integration broker is basically to integrate SAP and non-SAP systems, as in the integration of an SAP R/3 system with a database using adapters. SAP XI provides various adapters to integrate different types of systems.

But in some of real-time scenarios, itu2019s not always a particular type of business system that has to send/receive messages with SAPXI; it can also be an application like ABAP or Java. To cater to these needs, SAP XI provides different ways to generate interfaces in ABAP and JAVA u2013 and these interfaces are known as proxies.

ABAP proxies are generated using the transaction SPROXY (in SAP Web AS 6.20 and above); for Java proxies, the Integration Builder tool is used.

this blog can give you the basics of Proxies

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b20...

former_member193376
Active Contributor
0 Kudos

Hi,

what is proxies

why we go for proxies

Proxies are nothing but a mechanism to shift the application logic from the XI server onto the sender or receiver system so as to reduce the effort on the side of XI.Depending upon where the proxies are generated ,it is differentiated as client proxy ( sender ) and server proxy ( receiver ) .In R3 system having WAS 6.2 and above its already has an inbuilt small IE so the proxy generation

when we go for ABAP proxy and Java proxy

If the Sender/ Receiver Application is based on ABAP application Means we will use ABAP Mapping

If the Sender/ Receiver Application is Based on JAVA application means we will use JAVA Mapping

i.eIf your system is supporting ABAP Application then go for ABAP Proxy.else If your system is supporting Java Application then go for Java Proxy.Mainly Proxy is used to connect to R/3 systems.

To test a connection -

Client Proxy -

Server Proxy -

Testing proxy -

How to configure ABAP proxy

How to configure Java proxy

JAVA Proxies:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b20...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903...

ABAP Proxies:

ON SDN TV

https://www.sdn.sap.com/irj/sdn/advancedsearch?query=abap%20proxy%20xi&cat=sdn_all&start=11#

How to debug a proxy

In XI go to WSADMIN and give /h. It goes into the debugging mode. Then you test your scenario and you run step by step and you see your values on the right hand side of your screen.

Do step by step rather all at once. Then I think you should be able to debug the webservice. Also I suggest you to post in ABAP forums also for quicker response.

Check the blog by Stefan Grube for reference,

Handle errors in ABAP Proxies

http://help.sap.com/saphelp_nw04/helpdata/en/3b/6f5c3c3806af06e10000000a11402f/frameset.htm

Handle errors in JAVA Proxies

http://help.sap.com/saphelp_nw04/helpdata/en/56/b46c3c8bb3d73ee10000000a114084/frameset.h

Hope this helps

Thanks

Saiyog

Edited by: Saiyog Gonsalves on Sep 22, 2008 4:15 PM