on 12-11-2015 5:02 PM
Is it possible to make ONE ABAP proxy act both as Client and Server proxy as below:
File ---> PI---> ABAP proxy --->PI ---> Target file
Yes. You can. In your Inbound proxy class/ method after finish processing your logic call the Outbound proxy method and pass the data.
Thank you,
Justin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Blue,
I am not sure what exactly the ABAP proxy is supposed to do. But, if first proxy code is written on Inbound Service interface and does some insert/update call.
then, the second proxy can be written over Outbound Service interface and some batch call or event may trigger it.
If you still want the proxy to be real-time with Request-Response synchronous messaging just use Async-Sync Bridge.
regards,
Vikas
If both my PI scenarios are Asynchronized, then:
1. Which Service Interface to use to create the ABAP proxy?
You need to generate the Proxy for both Inbound and Outbound. You will write your coding in the Inbound method. At the end of the Inbound method will call the Outbound Proxy. You don't write your coding on the Outbound proxy , all the coding is done in the Inbound Proxy.
Just as an example, at the of the Inbound proxy, you have to call the Outbound Proxy
*Call Proxy method and push the data
TRY.
CREATE OBJECT ME.
CALL METHOD me-> YOUR OUTBOUND INTERFACE NAME
output = lt_proxyheader.
COMMIT WORK.
CATCH CX_AI_SYSTEM_FAULT INTO lo_sys_exception.
lo_sys_exception->if_message~get_text( ).
ENDTRY.
2. After the Inbound process, how would the ABAP proxy know to go to the second PI scenario?
Because you are calling the Outbound Interface at the end of the Proxy method, it will call the PI with Outbound Interface. Then your PI will get the message and you can create the file using your second interface.
Both Interface should be Asynch Interface.
Thanks!
Yes blue,
It is a very normal case of asynchronous abap proxy calls. In SAP PI you need to create both the Inbound and Outbound Service Interface as asynchronous.
In Sproxy inbound logic and outbound logic written on separate Service Interface respectively.
Regards,
Vikas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.