Show TOC

Using the Script CollectionLocate this document in the navigation structure

Use

You define it with reference to the interface i_oi_script_collection.

This interface allows you to load ASCII files containing scripts into your desktop application. The scripts must be able to be addressed using their name. The scripts can be written in VB Script and Java Script. The aim of the script collection is to reduce the number of macros required in documents. The macros can be stored centrally in a script. This makes it easier to maintain the macros.

This interface can be used for all applications. The only prerequisite is that the application can access a script engine (script engine of Internet Explorer). This means that the interface does not rely on the relevant macro language being exposed.

Prerequisites

You must create an instance for document management before you can use the interface.

Process
  1. Declare an instance with reference to interface i_oi_script_collection:

    DATA script_coll TYPE REF TO i_oi_script_collection.

  2. Use the method get_script_collection on the document instance for document management to create the instance for the table interface.

  3. Use the script collection methods.

Note

Remember that you should include error handling after each method call.