Using the Table Factory Control 
Each Function object owns a collection of R/3 tables. The Table Factory control gives you easy access to these SAP internal tables. If used from within the Function control, the Table Factory is invisible to the user. The Table Factory control provides a Tables collection object that is used as a property in the Function object. When you access the function’s Tables collection, Visual BasicÔ gets a "dispatch pointer" to the Table control. In the previous example, the RFC_CUSTOMER_GET call returns an internal table with the name "CUSTOMER_T". To get the last row of that table and display the ZIP code, for example, use the following code:
‘ Get table.
Set customers = func.Tables (
" CUSTOMER_T " )‘ Get zipcode of last row.
zipCode = customers (customers.RowCount, "PSTLZ")