You use this method to apply the template to the office document that is currently open.
CALL METHOD wp->set_template
EXPORTING template_name = template_name
attach_styles = attach_styles
no_flush = no_flush
IMPORTING retcode = retcode
error = error.
Description of parameters
Parameter |
Optional |
Description |
template_name |
The name of the template to be attached (in accordance with the name given during installation) If you do not specify a name, the standard template (NORMAL.DOT) is applied | |
attach_styles |
'X' : Formatting of the template is used in the document.' ': The formatting of the template is ignored (that is, the existing formatting in the document is retained). |
The name of the template must not include path or extension data.