cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP to RFC1 to to RFC2 to SOAP

Former Member
0 Kudos

Hi experts,

from a soap client post the data to RFC1,based on the response of RFC1, RFC2 has to be invoked and the response send to the calling webservice. how do we do this ?

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Ravi,

Thanks for the inputs. can i use lookup to post the data into RFC1 and get the response. Based on this response i need to choose the mapping program and call the RFC2. and response from RFC2 would go to Webservce . Is that possible?

Thanks,

Aju

prateek
Active Contributor
0 Kudos

Yes, the lookup of data from RFC1 and then making a synchronous call is very much possible.

Another option could be using BPM.

Regards,

Prateek

former_member190389
Active Contributor
0 Kudos

Hi,

If you are creating data in SAP using RFC lookup then its a bad idea because

The accessors do not support transactional behaviour. Therefore, they should not be used to change the state in the accessed system; writing data to the accessed system can lead to inconsistencies. The accessors should only be used to read data from the accessed system.

http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/lookup/LookupService.html

VijayKonam
Active Contributor
0 Kudos

Is your web service synchronous? First RFC synchronous? Then simply call the first 2nd RFC inside the first one if change is allowed. IT will be a simple soap to rfc sync scenario. If not, you have to go with BPM.

VJ

Former Member
0 Kudos

Hi,

RFC, webservice sync.. can't change rfc. is it possible without bpm using lookups?

thanks,

Aju

former_member181962
Active Contributor
0 Kudos

Alternative suggestion.

Change your scenario to WEBSERVICE to ABAP PROXY.

In your ABAP Proxy, call the RFC1 and then pass the output of RFC1 to RFC2.

Pass back the response from RFC2 to your export parameters of the proxy.

Map the response from Proxy to the webservice.

Regards,

ravi

VijayKonam
Active Contributor
0 Kudos

Thats the best approach..!!

VJ

Former Member
0 Kudos

Hi,

RFC2 can be called from server proxy created from RFC1.so it can be done without changing RFC1. is that the idea? but i can't use proxy .

Thanks

Aju

former_member181962
Active Contributor
0 Kudos

Hi Aju,

If you go for proxy method,

you do not need to edit any of the RFCs.

Implement inbound proxy method synchronous_execute and call the RFCs in the order RFC1 and RFC2.

Regards,

Ravi

former_member181962
Active Contributor
0 Kudos

On the high level,

Your scenario would be a synchronous

WEB SERVICE to RFC scenario.

In the response mapping, you have to wrute a RFC look up for your second RFC. and send that as response to your webservice.

Regards,

Ravi Kanth Talagana