on 01-07-2009 11:55 AM
Hi,
We are developing a scenario - File->PI->Proxy using ABAP Proxies.We are posting a file thru PI 7.0 to R/3 .In R/3 the server proxy(Inbound Asynchronous) will receive the message and BAPI will be called. The response from the BAPI will be reaching the server proxy and passed to the client proxy(Outbound Asynchronous).
Server Proxy(request) --> BAPI --> Server Proxy(response) --> Client Proxy(response)
The response from the client proxy has to be send to PI and a file will be generated as the output.
Can anyone provide me suggestions to call client proxy from a server proxy by passing the response message to client proxy???
Thanks in advance.
Regards,
Dibyajyoti
Hi Dibyajyoti
well its easy to handle with Sync proxy ( created using Sync MI in IR) but if your requirement is to make it Async
In your server proxy code when you call BAPI and get the response. You need to call the FM or Z program for outbound proxy that you would have created and export the parameters (referring type Outbound proxy) before committing the work.
Call EXECUTE_ASYNCHRONOUS before committing the work. It will do
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I hope, you are done till the Implementation of Server Proxy, where you are calling a Bapi and passing the Input variables the Interface received and BAPI is giving a response back.
Now your question, how to send the response back Asynchronously.
I think, you have to do the same, what you do for a client proxy and at last call the method EXECUTE_ASYNCHRONOUS before the Final Commit Staement. I think this should work.
But using Synchronous Interface in such cases is always a handy and easier option.
Regards,
Subhendu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please go through this link if it can help you.
[http://help.sap.com/saphelp_nw2004s/helpdata/EN/02/265c3cf311070ae10000000a114084/content.htm]
Regards,
Varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Once you recive the response from proxy try out sending the response dat which you get from r/3 to file by creating a structure for file(i.e. response structure) and create a mapping program .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
why cant you use a sync. proxy?
File Req (async) -> PI <-> Proxy (sync)
|_File Response
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
in XI in IR, change your Proxy msg interface from asynch to synch......so you will get a req and response msg.........leave req msg as such.......in response msg, assign it the msg type of response msg(this you should have as you have already mapped response msg)...........
go to R/3 and run SPROXY.......copy your proxy method code to notepad.......now your this msg interface will be red.........regenerate its proxy....if the code is removed from the method, paste it.......in the last of the code of the synch method, return the response msg structure with data.
Regards,
Rajeev Gupta
Hi,
Okay if you have to keep req and response both asynch, then in the code of the req msg proxy method, in the end create an object of response msg proxy and then call the response asynch method on this object sending the response data as parameter to this method.......then your resp will be send from R/3 to XI as an asynch msg.
Regards,
Rajeev Gupta
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.