Including Fields in the PC Editor 

Use

You include fields (your own fields and system fields) to display variable data in the form. The field serves as placeholder. At the moment 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.

Prerequisites

If your own fields are concerned, 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.

Procedure

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:

To do this, proceed as follows:

  1. In the inplace version of the PC Editor there are three functions for fields:

Choose Include field.

  1. A dialog window appears. Enter the field name in a line. Make sure to enclose the field name in ampersands (' & ').
  2. Observe the syntax rules for field names. In addition to the field name you can specify formatting option for the output of the field contents.

  3. Confirm your input to return to the editor.
  4. Use the local check to check whether the system can find the definition of the entered field name.

Result

The system displays the field with gray background to set it apart from the other text.