‎2008 Jul 09 1:23 PM
hi Experts,
How to call RFC FM from one server (D02) to another server (N02) in a report
Amit
‎2008 Jul 09 1:25 PM
‎2008 Jul 09 1:27 PM
‎2008 Jul 09 1:29 PM
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.
‎2008 Jul 09 1:28 PM
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.
‎2008 Jul 09 1:28 PM
hi,
use DESTINATION <remote system name> with the function module.
Rgds.,
subash
‎2008 Jul 09 1:32 PM
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]