Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Executing Different Sever Function Module

Former Member
0 Likes
612

Hi All,

I have an urgent requirement.my requirement is i Have a RFC enable function module in another System(server) i want to execute that function module.Is it possible.

If yes please give me the steps how to do that.

is there any function module.

Thanks in advance

kiran i

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
592

use call function statement with 'destination' addition.

this is what the Documentation says..

CALL FUNCTION - DESTINATION

Syntax

CALL FUNCTION func DESTINATION dest [EXPORTING p1 = a1 p2 = a2 ...]

[IMPORTING p1 = a1 p2 = a2 ...]

[CHANGING p1 = a1 p2 = a2 ...]

[TABLES t1 = itab1 t2 = itab2 ...]

[EXCEPTIONS [exc1 = n1 exc2 = n2 ...]

[system_failure = ns [MESSAGE smess]]

[communication_failure = nc [MESSAGE cmess]]

[OTHERS = n_others]].

.

Effect

Synchronous call of a remote-enabled function module specified in func using the RFC interface. Use addition DESTINATION to specify the destination in dest. For func and dest, character-type data objects are expected. After terminating the remotely called function, the calling program is continued after CALL FUNCTION.

...

5 REPLIES 5
Read only

Former Member
0 Likes
593

use call function statement with 'destination' addition.

this is what the Documentation says..

CALL FUNCTION - DESTINATION

Syntax

CALL FUNCTION func DESTINATION dest [EXPORTING p1 = a1 p2 = a2 ...]

[IMPORTING p1 = a1 p2 = a2 ...]

[CHANGING p1 = a1 p2 = a2 ...]

[TABLES t1 = itab1 t2 = itab2 ...]

[EXCEPTIONS [exc1 = n1 exc2 = n2 ...]

[system_failure = ns [MESSAGE smess]]

[communication_failure = nc [MESSAGE cmess]]

[OTHERS = n_others]].

.

Effect

Synchronous call of a remote-enabled function module specified in func using the RFC interface. Use addition DESTINATION to specify the destination in dest. For func and dest, character-type data objects are expected. After terminating the remotely called function, the calling program is continued after CALL FUNCTION.

...

Read only

Former Member
0 Likes
592

Hi,

1. Create a RFC destination thru SM59 for that system.

2. From ur system call the fM with the extensiion DESTINATION <created RFC destination name>

Sreedhar

Read only

Former Member
0 Likes
592

Hi kiran,

1. use CALL FUNCTION DESTINATION 'PRDSERVER'.

2. The PRDSERVER

should be a system defined in sm59

-- Node is R/3 Connections

(take help of your basis team)

regards,

amit m .

Read only

Former Member
0 Likes
592

Hi Kiran

It is very much possible, Check out this link it will Explain all your Quaries.......

http://help.sap.com/saphelp_47x200/helpdata/en/22/042537488911d189490000e829fbbd/frameset.htm

Regards

Mithlesh Kumar Jha

Read only

Former Member
0 Likes
592

Hi Kiran,

YOU can very well call RFC FM from other server . Please see the given <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/f9/3f69fd11a80b4e93a5c9230bafc767/content.htm">LINK1</a> or <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/22/04256b488911d189490000e829fbbd/content.htm">Link2</a> or <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/22/042860488911d189490000e829fbbd/frameset.htm">Link3</a>

Hope This Info Helps YOU.

<i>Reward Points If It Helps YOU.</i>

Regards,

Raghav