Function objects must have all their Table objects attached at all times. If the associated Table objects are unloaded (live outside of the Function objects), the Function objects will create new Table objects for themselves. Whenever the existing Table objects are replaced from outside, the Function object will remove and replace these objects.
When you get a Tables collection object or a Table object from a Function object, you receive a dispatch pointer to that object directly from the Table Factory control. Treat these pointers (objects) exactly as described for the corresponding part of the
SAP Table Factory.
Code |
Comment |
Set customers = MyFunct.tables.Item ("CUSTOMER_T") |
Here, you attach the dispatch pointer to the Customers object, then access the Tables property of the Function object. Inside the Table object, access the item "Customer T" with the Item method. |
The Tables collection is a direct connection to the Table object in the Table Factory control. This means that it supports all properties and methods of the Tables object in the Tables collection object.

Code |
Comment |
Set Table = function.Tables ("TAB1") |
Here, when the "item" is implicit, the Item property is invoked by default. |