General Attributes 

For other attributes, refer to Working with Element Attributes.

The general attributes comprise the following:

Attribute

Description and Ergonomic Guidelines

Field type

Identifies a screen element type (for example, keyword or group box).

Name

Identifies an element. You use this name to address a field from a module pool. All input/output fields require a name. Text fields require a field name only if they are translated into another language.

An input/output field and the keyword that labels it can share the same field name. Otherwise, field names must be unique. Field names can not exceed 40 characters and must begin with a letter or an * (asterisk). The only special characters allowed are # (pound sign), / (forward slash), - (dash), _ (underscore) and $ (dollar sign).

If you enter a new field name or change an existing name so that it contains a - (dash), the system checks the ABAP Dictionary for information associated with the field. On the Field attributes screen, the system automatically copies any information into the field's attributes. On the Attributes screen, the system asks whether you want to use the Dictionary field and its attributes.

Note:

From Release 4.6C, the element name of an input/output field can refer to the ABAP data type STRING. Remember, though, that the maximum length of an input/output field on the screen is restricted to 132 characters. You can only define input/output fields in the Screen Painter that fit on a single line. Characters in a string that are longer than this are truncated.
The element in the ABAP program or ABAP Dictionary can, however, be of any length.

There are two new field formats in the ABAP Dictionary - STRG and RSTR. For further information, refer to Field Formats.

Text

Specifies a field's text. If you want to use an icon instead of text, leave this field blank.

Dropdown

This attribute only applies to input/output fields. If you choose List box, you can display a list of entries for the field, from which the user can select one.

The width of the list is determined by the VisLg (visible length) fields. The height is automatically set by the system. If the list box contains a large number of entries, vertical scrollbars automatically appear.

You assign a value list to the output field using the ValueID. The default value of this is the name of the input/output field (Name attribute).

How the value list is displayed depends on the entry in the Input help attribute. For further information, refer to the Input help section of Program Attributes.

With icon

Sets an icon value. Only use this attribute for output fields.

For a list of all existing icons including length and quick info texts, refer to the table ICON (or Transaction ICON).

Icon name

Identifies an icon for a keyword. If you specify an icon that is not allowed for a field, the system returns an error message. To display only the icon without a label, leave the Field text empty. For templates, you set the Icon Name attribute at runtime.

Usability guideline: Icons do not need an explanatory text if the meaning of the icon describes the element exactly. The meaning of the icon is always available in the quick info text.

Quick info

Identifies an icon's info text. This text is visible when the user holds the cursor over an icon. The ICON table defines the default Quick Info value for each icon. To change this default text (or leave it blank), use the Quick Info field.

Usability guideline: All icons need a quick info text, since no icon is self-explanatory.

Scrollable

Sets the scroll function. Use this attribute if the DefLg value is greater than the VisLg value. When Scrollable is set, the system activates scrolling for the field.

If you use Dictionary or program fields that are too long for your screen, do not forget to set Scrollable and to reduce the field's visible length as needed.

Line

Specifies the line where the screen element appears. The system sets this attribute automatically.

Column

Identifies the column where the element begins. The system sets this attribute automatically.

Height

Specifies the height of an element in lines. Text labels and entry elements always have a height of 1.

DefLg

Defined length. Identifies the actual length of the field in the Dictionary or your program.

VisLg

The length of an element displayed on the screen. Set this attribute if you want the screen element to have a length different from its defined length.

You must set the attribute Scrollable if you want to make visible length less than the defined length. You can only change the visible length for input/output templates or for elements in table columns. In the latter case, VisLg may exceed DefLg. For all other elements (except elements containing icons and input/output fields with the Dropdown attribute), the visible length is the same as the defined length and cannot be changed.

Groups

Modification groups This attribute allows you to update several fields at once. You can assign each field to up to four modification groups. To assign a field to a modification group, enter the three-character group name in the appropriate column.

FctCode

Function code: This attribute is only for pushbuttons and input/output fields with the Dropdown List box attribute. If the user presses a pushbutton, the system sets the command field to the 20-character code you enter here.

This value is not checked against values you specify in the Menu Painter.

FctType

Specifies the event at which the field is processed (for example, AT EXIT-COMMAND).