Variables can be used for input and output. In the following example the variable @KUNNR is assigned to the export parameter KUNNR. The result table CUSTOMER_T is saved to the variable @RETVAL.

EXECUTE FUNCTION 'SD_RFC_CUSTOMER_GET' 
EXPORTS KUNNR= @KUNNR 
TABLES CUSTOMER_T INTO @RETVAL;