You include fields (your own fields and system fields) to display variable data in the form. The field serves as placeholder. When the system displays the form, it replaces the field with the value that was assigned to it during processing.
This procedure describes how to include fields into texts to print values that are valid at runtime. You create these texts using a text node.
If the text node refers to a text module or includes a SAPscript text, the system copies all fields of the included text.
If you use your own fields, you must have defined them either as global data or as parameters in the form interface.
The text node into which you want to include a field must exist.
In order for Smart Forms to distinguish fields in the text from normal text, you must use a special PC Editor function to include fields.
You can:
Include fields in the field list using Drag&Drop. The system inserts the field at the position of the text cursor.
Include fields using the PC Editor functions.
To do this, proceed as follows:
In the inline version of the PC Editor, there are three functions for fields:
Include field ( ) to include a defined field into the text
Change field ( ) to change an included field
Delete field ( ) to delete an included field from the text
Choose Include field.
A dialog window appears. Enter the field name in a line. Make sure that the field name is enclosed in ampersands (' &').
Observe the syntax rules for field names. In addition to the field name, you can specify formatting options for the output of the field contents.
Confirm your input to return to the editor.
Use the local check to check whether the system can find the definition of the entered field name.
The system displays the field with gray background to set it apart from the other text.