
RTF Export and RTF Import
RTF Export
Use
During the RTF export, an RTF file is created in which the character and paragraph formatting from the original text are mostly contained.
Variable symbols of the ITF text are replaced. Includes and control structures are canceled and comments ignored.
If a document template is specified, a format conversion of the relevant SAPscript formats (style or form) to the Word document template takes place
For more information, see
SAPscript Format Conversion.Prerequisites
Importing RTF files to modern text processors is straightforward, but some preparation is necessary with the older DOS programs.
For example, in Microsoft Word (from Version 5.0) under the operating systems MS DOS or OS/2 the RTF file has to be converted to a Word text file together with a document template with the following command:
Importing RTF files to Microsoft Word
Operating system |
Conversion command | |
MS-DOS |
Rtf_dos file1.rtf file2.txt file3.dfv /o/c rtf_dos file1.rtf file2.txt file3.dfv /o/m | |
OS/2 |
Rtf_os2 file1.rtf file2.txt file3.dfv /o/c rtf_os2 file1.rtf file2.txt file3.dfv /o/m | |
/o |
If file2.txt already exists, overwriting takes place without confirmation | |
/c |
Document template file3.dfv is newly created | |
/m |
Document template file3.dfv already exists and may be modified | |
Procedure
RTF Import
Prerequisites
The source text must have been created using a document template and saved as RTF file. In the R/3 system, a form or style should exist whose paragraph and character formats correspond to those of the document template. If there is none available, for example because the names of the tags in the document template are different, you can stell specify a format conversion.

This conversion was designed for Word starting with 5.0. For RTF files created with WinWord 2.0, character formats cannot be converted. This is possible only with WinWord 6.0 again. However, if you want to save a text created with WinWord 2.0 as RTF file and import it into SAPscript, character formats cannot be converted. You can specify character formats in WinWord 6.0 only via format templates, never via Word. Otherwise, up to and including release 2.1K/2.2E, text imported to SAPscript can be lost. In later releases, these character formats again cannot be converted.
For more information, see
SAPscript Format Conversion.Procedure