Table Collection

Use

You define it with reference to the interface i_oi_table_collection.

The table collection allows you to pass data (especially internal tables) from the SAP system to the desktop applications. These can work with data and store them in work areas that can then be reimported into the SAP system. The data is incorporated in the desktop application using the SAP TableFactory OCX, which is used for RFC programming under Visual Basic.

The object hierarchy of the table collection is as follows:

The table collection contains data from the SAP system that you can include in your office application.

Before proceeding, you must create a central instance of type i_oi_container_control for Managing Desktop Office Integration.

Process

  1. Declare an instance with reference to the interface i_oi_table_collection:

    DATA table_coll TYPE REF TO i_oi_table_collection.
  2. Use the method get_table_collection on the central object for Desktop Office Integration to create an instance for the table collection.

  3. Use the methods add_table and add_table to add data to the table collection.

  4. Read and change the table collection data in the desktop application using Visual Basic to access it.

  5. Use the methods get_table and get_table_by_url to read data from the desktop application back into the SAP system.

  6. Delete the contents of the table collection using the methods remove_table and remove_all_tables.