
Use this method to pass data records that you can later merge into the mail merge document using merge_one or merge_range .
You need a table containing the requisite data. A line of the table contains all of the data required for the fields in a single letter.
CALL METHOD mail_merge->set_data_source
EXPORTING ddic_name = ddic_name
description = description
date = date
time = time
no_flush = no_flush
IMPORTING error = error
retcode = retcode
CHANGING data_table = data_table
fields_table = fields_table
properties = properties.
|
Parameter |
Optional |
Description |
|
ddic_name |
X |
Name of the table or structure in the ABAP Dictionary. |
|
description |
X |
Description of the table |
|
date |
X |
Date of last change |
|
time |
X |
Time of last change |
|
data_table |
Data table |
|
|
fields_table |
X |
Description of the table structure (if you have not already passed it using the ddic_name parameter). Create the table with reference to the type SOI_FIELDS_TABLE . |
|
properties |
X |
Additional properties Create the table with reference to the type SOI_PROPERTIES_TABLE . |