Show TOC Start of Content Area

Function documentation General Attributes  Locate the document in its SAP Library structure

Use

You use this function to maintain the general attributes for screen elements in the Screen Painter.

Features

To change the general attributes for screen elements, in the Layout Editor of the Screen Painter, choose the Attributes pushbutton. On the Element Attributes Display window, you can set the following attributes:

Attribute

Description

Element type

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

Name

Identifies an element. You use this name to address a field present in the global part of an ABAP program or defined in the ABAP Dictionary.

Note

All input/output elements should have a name. Text fields require a field name only if they contain text for translation.

An input/output element and the text field that labels it can have one and the same element name. The maximum length of element names is 132 characters and they must begin with a letter or an * (asterisk) followed by letters, digits and several special characters.

If you enter a new element name or change an existing name so that it contains a - (dash), the system checks the ABAP Dictionary for information associated with the field. If this is found, the system asks whether you want to use the ABAP Dictionary field and its attributes.

The element name can also refer to the following decimal float types:

      D34D: decimal float, 34 digits, stored as DEC in the database

      D34R: decimal float, 34 digits, stored as RAW in the database

      D34S: decimal float, 34 digits, with scale field

      D16C: decimal float, 16 digits, stored as DEC in the database

      D16R: decimal float, 16 digits, stored as RAW in the database

      D16S: decimal float, 16 digits, with scale field

Text

Use this attribute to enter the text of a text field (keyword) or the template characters of an input/output field. A text field may consist not only of text itself, it can have three parts: an icon, a text and a quick info text. To display only the icon in the text field, leave the Text  field empty

Dropdown

This attribute can only be assigned to an input/output field and defines how the field is displayed. You can assign the following values:

      No entry: Normal input/output field.

      Listbox: Listbox with short description for each entry.

      Listbox with key: Listbox with key and short description for each entry.

The width of the list is determined by the VisLg (visible length) fields. The height is automatically set by the system.

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

You trigger an event by selecting a value from the dropdown list. To do this, you have to define a function code by means of the FctCode attribute.

With icon

Use this attribute for output fields. For a list of all existing icons including length and quick info texts, see the table ICON or transaction ICON.

Icon name

Identifies an icon. The meaning of the icon is always available in the quick info text.

Quuickinfo (or Tooltip)

This text is displayed when you hover the cursor over an icon or a text field. The default Quick Info value for each icon is defined in the ICON table.

Note

All icons need a quick info text.

Scrollbl

Use this attribute to add scrolling to a field, if the DefLg value is greater than the VisLg value.

Note

Strings and decimal float types are always scrollable.

Line

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

Column

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

Height

Specifies the height of an element in lines. Text fields and input/output elements always have a height of 1.

DefLg

Defined length - defines the actual output length of the field in the ABAP Dictionary or the length in your program.  

Note

If you have input/output fields belonging to the DECFLOAT type or the string type (STRG, SSTR, RSTR), you can change only the visible length but not the defined length.

VisLg

The length of an element displayed on the screen. Use this attribute if you want the screen element to have a length different from its defined length. You can change the visible length only for input/output templates, pushbuttons, or for elements in table columns. In the last two cases, VisLg may exceed DefLg. For all other elements (except elements containing icons and dropdown lists), the visible length is the same as the defined length and cannot be changed. For dropdown lists, this is the length of the element including the dropdown button. The visual length is identical to the width of the dropdown list.

Groups

Modification groups This attribute allows you to update several elements in one go. 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, checkboxes, radio buttons and dropdown list boxes. For more information, see the field help.

FctType

Specifies the event that triggers the processing of the field (for example, AT EXIT-COMMAND).

Context Menu Form

Name extension for the callback routine ON_CTMENU_<NAME>. This routine connects the screen (elements) in the Screen Painter with the context menu of the program.

Switch

ID of a switch in the Switch Framework

Reaction

Reaction to a switch: This field is taken into consideration only if the object (for example a screen field or an IMG node) is attached to a switch in the Switch Framework. It indicates whether the object should be displayed or hidden if the switch position is ON.

For more information about attributes, see Working with Element Attributes

End of Content Area