cancel
Showing results for 
Search instead for 
Did you mean: 

Data type strcuture for Proxies

Former Member
0 Kudos

Hi,

My scenario is to send HR data from SAP HR system to another SAP HR system through proxies. There is a BAPI in source system which fetch’s data and post the data to target system through XI.

Because of massive data coming from source system, I am going for proxy to proxy scenario. What I do not understand is the Data type’s structure. I will import both BAPI’s from source and target system. i.e. BAPI_HR_GETDATA and BAPI_HR_CREATE (for example).can some help me in giving step by step way create the DT,MT and MI in this case.

Thanks in advance.

Mohammad

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I cant understand which scenario ur working Proxy to proxy or RFC to RFC.if ur inporting the RFC into XI there u can do RFC to RFC na.......iamnot clear on ur scenario.

Update the thread.

Regards,

phani

Former Member
0 Kudos

Hi Phani,

My scenario is Proxy to Proxy. But i have BAPI at both sides. I am not going for RFC to RFc scenario for some Performance issue.

Any inputs from your side for my earlier question

Regards

Mohammad

Former Member
0 Kudos

Hi,

So ur senario is proxy to proxy then u have to create the data type,message type and Message interfaces at both the sides sender and receiver sides.

in data type what are the feilds u have to post into the Target bapi use that fields.create the structure.

Check some links on Proxy scenarios.

Asyn Inbound java proxy

/people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy - ABAP Proxy to File

ABAP Proxy

How do you activate ABAP Proxies?

/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

ABAP Proxy Runtime

http://help.sap.com/saphelp_nw04/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm

ABAP CLIENT PROXY

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

ABAP SERVER PROXY

/people/siva.maranani/blog/2005/04/03/abap-server-proxies. [original link is broken]

To test a connection - /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

Client Proxy - /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

Server Proxy - /people/siva.maranani/blog/2005/04/03/abap-server-proxies

XI: Debug your inbound ABAP Proxy implementation

Testing proxy - /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation

JAVA Proxies:

Asynchronous inbpund java Proxies

/people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy

Proxy Generation- For ABAP and Java proxy, create a Message Interface and then generate a proxy for that message interface.

http://help.sap.com/saphelp_nw2004s/helpdata/en/86/58cd3b11571962e10000000a11402f/content.htm

More on Java Proxy-

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

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/f272165e-0401-0010-b4a1-e7e...

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:

Integration Builders through proxy server (Part - 2)

/people/sap.user72/blog/2005/12/13/integration-builders-through-proxy-server-part--2

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

Regards,

Phani

Reward points if Helpful

Former Member
0 Kudos

Hi Azias,

<b><i>What I do not understand is the Data type’s structure. I will import both BAPI’s from source and target system. i.e. BAPI_HR_GETDATA and BAPI_HR_CREATE (for example).can some help me in giving step by step way create the DT,MT and MI in this case.</i></b>

Since you are importing the source and target BAPI's into <b>XI</b> System, <b>you don't require to carte the data type & message type</b>.

Directly create the Message interfaces, Message Mapping, Interface Mappping for source and target.

<b>Note:</b> Use Import objects to create the above mentioned except Interface Mapping Coz interface mapping will require message interface names for source and target interfaces.

Regards,

Sarvesh

Former Member
0 Kudos

Hi,

Thanks sarvesh. My scenario will be Asynchronous. When BAPI is executed by giving the input parameter like emp no: 1000 and the response of the BAPI is details of the Employee which comes to XI server.

Now tell me which message i.e. BAPI.request or BAPI.response will be my outbound message Interface.

When the proxy is generated on outbound interface, what are the steps to be done?

Can you also elaborate your "Note" below?

Thanks

mohammad

Former Member
0 Kudos

<b><i>Now tell me which message i.e. BAPI.request or BAPI.response will be my outbound message Interface.</i></b>

Select the <b>BAPI.request</b> as your outbound message interface.

According to my note, since you are not creating the data type and message type, so while creating the message interface and press the help button (F4) and select the BAPI.reuest from imported objects for outbound interface. same with inbound interfaces.

Now something 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 &#8805; 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.

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.

I hope this will clear few doubts in proxy.

Just go through these links:

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

ABAP Server Proxies By Siva Maranani

/people/siva.maranani/blog/2005/04/03/abap-server-proxies

/people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies

/people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy

File to R/3 via ABAP Proxy with good example

/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy

Regards,

Sarvesh

Former Member
0 Kudos

hi ,

I understnad the Proxies.

<i>According to my note, since you are not creating the data type and message type, so while creating the message interface and press the help button (F4) and select the BAPI.reuest from imported objects for outbound interface. same with inbound interfaces.</i>.

can you tell me how will you define the interface mapping. i get BAPI.response into XI and map the fields to BAPI2.request.

Regards

Mohammad

Former Member
0 Kudos

<b><i>can you tell me how will you define the interface mapping. i get BAPI.response into XI and map the fields to BAPI2.request.</i></b>

In INTERFACE MAPPING you have to provide the source MESSAGE INTERFACE ie. OUTBOUND MESSAGE INTERFACE and at TARGET INTERFACE give the INBOUND MESSAGE INTERFACE.

I am sure you must have created the MESSAGE MAPPING before doing the INTERFACE MAPPING.