Purpose
The script collection allows you to include macros belonging to a certain area in a script file. The script collection downloads the script file to the document, and the macros can be run.
Prerequisites
You must create the instance document for document management before you can use the interface.
Process flow
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 mail merge interface.3. Use the script collection methods:
Methods in the Script Collection
Method |
Function |
add_script |
Adds a script to the collection |
add_script_from_table |
Adds a script to the collection |
remove_all_scripts |
Remove all scripts |
remove_script |
Remove a particular script |

Remember that you should include
error handling after each method call.
Any parameters not contained in the individual method descriptions are listed under
Generic Parameters.