Use this method to insert the contents of an internal table from your ABAP program into a table in the word processor document. The table in the document must already exist before you execute the method.
The difference between this method and
CALL METHOD wp->insert_table2
EXPORTING data_table = data_table
info_col_table = info_col_table
lowerbound = lowerbound
upperbound = upperbound
doctable_number = doctable_number
clearoption = clearoption
startrow = startrow
varsize = varsize
no_flush = no_flush
IMPORTING retcode = retcode
error = error.
Parameter |
Optional |
Description |
data_table |
The internal table containing the R/3 data you want to place in the table in the document | |
info_col_table |
An internal table with the type SOI_COLNAMES_TABLE . Each row in this table can contain the name of a column in the data table. When it displays the data table in the document table, the system uses the columns you specified in the order in which you listed them.To leave a column blank in the table in the document, enter the value ' ' (space) in the relevant row of this table. | |
lowerbound |
The index of the first entry of the data table you want to display in the document table. To start at the beginning of the table, use the value 0 . | |
upperbound |
The index of the last entry of the data table you want to display in the document table. To display all entries from the entry you specified in lowerbound up to the end of the table, use the value 0 . | |
doctable_number |
The number of the table in the document into which you want to insert the data. The numbering starts at 1 . | |
clearoption |
Option for clearing existing contents of the table in the document. It can have the following values: The method only overwrites fields of the table in which it actually enters data. The method overwrites the contents of the table with the new data from R/3. Data above the specified starting row (startrow) is left untouched. The contents of the remaining lines of the old table that are below the insertion are deleted. Note: In rows of the document table in which the method inserts data, the contents of fields that are not filled automatically (value 0 in the corresponding row of info_table ) are not deleted. The method deletes the entire contents of the columns of the document table in which it inserts data. The contents of all other columns are left untouched. | |
startrow |
The first row of the document table in which you want to insert data | |
varsize |
Flag to indicate whether the table in the document should be resized to fit the number of rows passed by the method. Possible values: Caution: If the table has fewer rows than the number of entries you pass to it, not all of the data can be displayed. | |
wholetable |
X |
Not yet implemented |
While you can use
varsize to adjust the number of rows in the table automatically, you cannot adjust the number of columns. If you pass more columns from your data table than are available in the document table, the system will not be able to display the additional columns. To find out the number of columns in a particular table in the document, use the method get_table_info.