You can create standard files in which variables are defined. Once created, these files can be called by the view command and the variables will then be replaced by the data you have entered in the corresponding SAP GUI screen Both HTML and RTF files are supported. The specific syntaxes are shown below:
The syntax for HTML files is as follows:
view([1,1], [100,100], 'test.html', {"template":"temp.html"});
The syntax for RTF is shown below:
view([1,1], [100,100], 'test.rtf', {"template":"temp.html"});
Templates can be used in the view command in order to enable objects to be dynamically changed based on the variables entered by a user. See the following example where the template file contains a list of variables which will be populated by the corresponding SAP values. To demonstrate this, please do the following: