cancel
Showing results for 
Search instead for 
Did you mean: 

WDabap and RFC

0 Kudos

Hello,

(1) If I have a Web Dynpro (abap) in an R/3 system, is it possible to call a function module in another R/3 system (in a different server)?

(2) And will this Web Dynpro work when it's being executed from a Web Portal?

Seems possible but can't find documentation on how to do this, so not sure.

Thanks,

Irene

Accepted Solutions (1)

Accepted Solutions (1)

SergioFerrari
Active Contributor
0 Kudos

Absolutly Yes.

WDA are well supported within the Portal and basically you are in ABAP so you can call every RFC you want. You can also perform every ABAP statement.

Sergio

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Irene,

i gone through this note while creating the Service call for a Web Dynpro Component.

Note: The function module must exist in the current system! The wizard does not support to call a remote capable function module that does not exist in the current system.

Thanks and rgds,

Kamal

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

That is true that the wizard doesn't support RFC simply because that would be very complicated for for the wizard to have to get the meta data about the call remotely in order to generate the context nodes. However that in no means that RFC isn't supported by Web Dynpro.

If you have the same function module in your local system - go ahead and use the wizard and then just add the DESTINATION line to the CALL FUNCTION after the code is generated. Your other option is simply not to use the service wizard. There is no reason why you can't do the same things it is doing manually and define a custom controller that calls a remote function module.

Former Member
0 Kudos

Thanks for your valuable comments.

Thanks and Regds,

Kamal

0 Kudos

Thank you for your response.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

As Sergio stated, you can definitly use an RFC and make a call to a remote system. Couple things to remember, WDA runs on the ABAP runtime, so you can pretty much use any mechanism in ABAP that you want, which means that you can call remote function modules. You first need to create an RFC destination to the remote system, and use the extension DESTINATION XXX when calling the function module.

Regards,

Rich Heilman