How to Connect Views to a Table 

The ability to connect a view to the Table object eases the way a programmer can display data stored in the Table object. The view (a separate control) can be added directly to the Views collection of the Table object. Afterwards all data changes in the Table object are automatically displayed in all views stored in the Views collection.

Any object which implements the ISAPInternalLock and ISAPInternalViewNotification interface can be added to the Views collection. At the moment, the SAP Table View control and the SAP Tree View control can be used as views.

For additional information, see:

Dim oTableView as Object REM SAP.TableView Object

Dim oTable as Object

oTable.Views.Add oTableView

oTable.Value (1,1) = "Testdata"

REM The String "Testdata" is automatically displayed in TableView

REM If the oTableView is an object which lies on a Visual Basic Form

REM the following code must be used

oTable.Views.Add oTableView.Object