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

Remote function call one server to another server

Former Member
0 Likes
747

hi Experts,

How to call RFC FM from one server (D02) to another server (N02) in a report

Amit

6 REPLIES 6
Read only

Former Member
0 Likes
690

Use destination addition in call function ...

Read only

0 Likes
690

ex syntax??

Read only

0 Likes
690

CALL FUNCTION 'FUNCTION NAME'

STARTING NEW TASK g_task_name

DESTINATION IN GROUP p_grp

PERFORMING decrease_wp ON END OF TASK

EXPORTING

i_filename = task_tab-filename1

TABLES

i_matnr = r_matnr

i_werks = r_werks.

Read only

Former Member
0 Likes
690

Hi Amit,

Use the following Syntax

Synchronous RFC

1. CALL FUNCTION func DESTINATION dest

parameter_list.

Asynchronous RFC

2. CALL FUNCTION func STARTING NEW TASK task

[DESTINATION {dest|{IN GROUP {group|DEFAULT}}}]

parameter_list

[{PERFORMING subr}|{CALLING meth} ON END OF TASK].

Transactional RFC

3. CALL FUNCTION func IN BACKGROUND TASK

[DESTINATION dest]

parameter_list

[AS SEPARATE UNIT].

4. CALL FUNCTION func IN BACKGROUND UNIT

parameter_list.

Regards,

Vijaya Lakshmi.

Read only

Former Member
0 Likes
690

hi,

use DESTINATION <remote system name> with the function module.

Rgds.,

subash

Read only

Former Member
0 Likes
690

hi

CALL FUNCTION u2018RFC_CUSTOMER_GETu2019

DESTINATION u2018K50u2019

EXPORTING KUNNR = CUSTNO

TABLES CUSTOMER_T = ITAB

EXCEPTIONS NO_RECORD_FOUND = 01.

R/2 System: Server

FUNCTION RFC CUSTOMER GET.

.... (Read customer record)

ENDFUNCTION.

Programming guidelines are available in the following topics:

Parameter Handling in Remote Calls [Page 16]

Calling Remote Functions Locally [Page 17]

Calling Remote Functions BACK [Page 18]