cancel
Showing results for 
Search instead for 
Did you mean: 

proxy

Former Member
0 Kudos

Hi,

I want to implement to scenarios R/3 TO FILE and File to R/3 using proxy . I have seen the blogs in SDN which are very helpful .I have some confusions:

1.When client proxy and when server proxy will be used?

2.where the abap code wil be written in each case?(se38 of r/3 or xi server or in the method execute_asynchronous in the transaction sproxy)

Regards,

Somenath

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

The client proxy is basically used when u will write the proxy at the outbound side. means when u implement the proxy to file scenario.

The server proxy is basically used when u have to use the server proxy.means when u will inplement the file to proxy scenario.

The proxy code will be written in the R/3 system.

In the R/3 system go to the sproxy transaction select ur software component version, then select ur namesapce and then ur outbound interafce(for outbound proxy) or inbound interface for the (inbound proxy) and activate the proxy.

After generating the outbound proxy u will write the code for the proxy in the se38 transaction and call the asynchronous method in that code.

and for inbound proxy u will write the code in the same class that is being generated after generatig the proxy.

if u still face the problem please reply me back.

Thanks

Rinku

agasthuri_doss
Active Contributor
0 Kudos

Hi,

>When client proxy and when server proxy will be used

Java Client Proxies :

1) Java Client Proxies are the beans generated for outbound message interfaces so as to send messages

from J2EE application to SAP XI. Java Proxy generation generates all the Java classes necessary for a

Client Proxy: EJB 2.0 bean class, home and remote interfaces, local home and local interfaces, as

well as Java classes for the data types used.

For Java client proxies we need to enter the business/technical system name of type Web AS Java in

SLD.

Java Server Proxies:

1) If the message needs to be sent from the Integration Server to a Java application (that implements

some logic), Java Server Proxies are used that actually are generated for inbound message interfaces

using the Integration Builder tool.In Server Proxies, along with the Server Proxy interface and Proxy

classes of data types, the implementation class is generated that implements the Server

Proxy interface.

Regards,

sangeetha

Edited by: Sangeetha on Mar 25, 2008 12:27 PM

Former Member
0 Kudos

hi somenath,

1.When client proxy and when server proxy will be used?

client proxy is used when u want to send data from R/3 to XI system.

here client is R/3 which is making request(posting data) to server XI.

there by proxy here called as client proxy

server proxy is used when XI wants to make a request to R/3 system.

one that is making request here is XI

one that is accepting request is R/3.

there by proxy at R/3 is called server proxy as its taking a request from XI.

just go with the direction of data and classify client or server.

2.where the abap code wil be written in each case?(se38 of r/3 or xi server or in the method execute_asynchronous in the transaction sproxy)

proxies are generated as a replacement for XI interfaces

so need to avoid the work done by XI interfaces ,so they need to be implemented out of XI box I.E doing the work of interfaces out of BOX.

sometimes it can happen that u create a logical system(Client of XI )

for example XI developers are using 200 client for monitoring XI.

and u can create 300 client exhibiting fuctionality of processing some data .

in this case u can configure in SLD client 300 as a business sysetm.

we know client 300 is in XI box but logically speaking its a different system from SLD perspective.

genrally proxies will be out of XI BOX.

Thanks & Regards,

Rama Krishna

Former Member
0 Kudos

> 1.When client proxy and when server proxy will be used?

> 2.where the abap code wil be written in each case?(se38 of r/3 or xi server or in the method execute_asynchronous in the transaction sproxy)

>

In both case code will be written in R/3. When your are using outboud proxy then write the code in SE38, & when you are using inbound proxy then write the code in the class.

Few important facts about Proxy.

1. Proxies can be a server proxy or client proxy. In our scenarios we require proxies to send or upload the data from/into SAP system.

2. One more thing proxies can be used if your WAS ≥ 6.2.

3. Use Tcode SPROXY into R/3 system for proxy use.

4. To send the data from R/3 system we use OUTBOUND PROXY. In Outbound proxy you will simply write an abap code to fetch the data from R/3 tables and then send it to XI. Below is the sample code to send the data from R/3 to XI.

REPORT zblog_abap_proxy.

DATA prxy TYPE REF TO zblogco_proxy_interface_ob.

*

CREATE OBJECT prxy.

DATA it TYPE zblogemp_profile_msg.

TRY.

it-emp_profile_msg-emp_name = 'Sarvesh'.

it-emp_profile_msg-empno = '01212'.

it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.

CALL METHOD prxy->execute_asynchronous

EXPORTING

output = it.

commit work.

CATCH cx_ai_system_fault .

DATA fault TYPE REF TO cx_ai_system_fault .

CREATE OBJECT fault.

WRITE 😕 fault->errortext.

ENDTRY.

Receiver adapter configurations should be done in the integration directory and the necessary sender/receiver binding should be appropriately configured. We need not do any sender adapter configurations as we are using proxies.

5. To receive data into R/3 system we use INBOUND PROXY. In this case data is picked up by XI and send it to R/3 system via XI adapter into proxy class. Inside the inbound proxy we careate an internal table to take the data from XI and then simply by using the ABAP code we update the data inot R/3 table. BAPI can also be used inside the proxy to update the data into r/3.

Regards,

Sarvesh

Former Member
0 Kudos

Hi,

>>1.When client proxy and when server proxy will be used?

We will use the client proxies when ever the R/3 is Sender Application and we use Server proxy when ever the R/3 is Receiver application

>>2.where the abap code wil be written in each case?(se38 of r/3 or xi server or in the method execute_asynchronous in the transaction sproxy)

We have to write the Report to initiate the proxy to send the data to from R/3 to XI incase of only Client ( Sender) Proxies

Regards

Seshagiri