Using Fields in the Form 

In the SAP System, texts usually exist not without context but refer to an object stored there. For a letter, this can, for example, be address data from the vendor master record or information from the material master record to be included into an order text. In these texts you need not enter the current values, but you use placeholders for this data. This allows you to make text modules flexible, since you can define any variables by using these placeholders.

In SAP Smart Forms these placeholders are called fields. Fields represent data that is included into the text at the moment it is formatted for output. When generating the output, the system replaces all fields in the text with their currently valid values.

There are two types of fields:

In the Form Builder choose Utilities ® Field list on/off to display a field string beneath the tree structure. In this field string all fields are sorted according to their definitions. This allows you to keep track when including the fields.

Where can you Include Fields

In Text Nodes

You include fields in text nodes if you want to display values at runtime. After including these fields, they appear with a gray background and are enclosed in ampersands (' & ') to set them apart from normal text. This is the right method to print tables in the form.

In Input Fields of a Node

Usually, these are your own fields which you defined in the form interface or in the global definitions (for example, internal tables or control parameters). In this case you enter the field name without ampersand (' & ') into the input field. If you want to process a node depending on a condition, use a field whose value you want to check at runtime.