Preffered Answer:
CALL FUNCTION RemoteFunction DESTINATION Dest
EXPORTING
F1 =...
f2 =...
IMPORTING
f3 =...
TABLES
t1 =...
EXCEPTIONS......
The field 'Dest' can be either a literal or a variable. Its value is a LOGICAL destination (for example,
"CRM110") known to the local SAP SYSTEM. Logical destinations are defined using transaction SM59 and the corresponding data is stored in standard database table RFCDES.
The remote function call concept, for example, allows you to access a function module in an R/3 System from an ABAP program in a CRM System. If you want to read Sales Order’s Delivery Status record from your R/3 System’s database, create a remotely callable function module in the R/3 ENVIRONMENT which RETRIEVES Sales Order’s Delivery Status record. Call this function from your CRM System using a remote function call and listing the destination for the target R/3 System:
CRM System: Client
CALL FUNCTION ‘RFC_SALES_DEL_STATUS’
DESTINATION ‘R10’
EXPORTING VBELN = SALESNO
TABLES STATUS_T = IT_TAB
EXCEPTIONS NO_RECORD_FOUND = 01.
R/3 System: Server
FUNCTION RFC_SALES_DEL_STATUS.
.... (Read Sales Order’s Delivery Status record)
ENDFUNCTION.
CALL FUNCTION RemoteFunction DESTINATION Dest
EXPORTING
f1 =...
f2 =...
IMPORTING
f3 =...
TABLES
t1 =...
EXCEPTIONS......
The field 'Dest' can be either a literal or a variable. Its value is a logical destination (for example,
"CRM110") known to the local SAP System. Logical destinations are defined using transaction SM59 and the corresponding data is stored in standard database table RFCDES.
The remote function call concept, for example, allows you to access a function module in an R/3 System from an ABAP program in a CRM System. If you want to read Sales Order’s Delivery Status record from your R/3 System’s database, create a remotely callable function module in the R/3 environment which retrieves Sales Order’s Delivery Status record. Call this function from your CRM System using a remote function call and listing the destination for the target R/3 System:
CRM System: Client
CALL FUNCTION ‘RFC_SALES_DEL_STATUS’
DESTINATION ‘R10’
EXPORTING VBELN = SALESNO
TABLES STATUS_T = IT_TAB
EXCEPTIONS NO_RECORD_FOUND = 01.
R/3 System: Server
FUNCTION RFC_SALES_DEL_STATUS.
.... (Read Sales Order’s Delivery Status record)
ENDFUNCTION.
Write Your Comments or Explanations to Help Others