Show TOC

AbstractInputField PropertiesLocate this document in the navigation structure

Expand the properties to display further details.

id

The ID is a unique identification.

activateAccessKey

Activates access keys. Both users and administrators can personalize this property.

alignment

Horizontal alignment of the text within the InputField. This property can be personalized by administrators.

Value

Description

Can be Set Using Personalization

auto

Default Value

Automatic alignment of the text content. The alignment is specified by the usage of the UI element, for example, by the data type of the value to be displayed.

yes

center

Centered alignment

yes

forcedLeft

The text content is always left-justified, regardless of whether property textDirection is set to ltr orrtl.

yes

endOfLine

The text is always displayed at the end of the line. Therefore, if property textDirection is set toltr, the text content is right-justified. The text content for value rtl is left-justified.

yes

forcedRight

The text content is always right-justified, regardless of whether property textDirection is set to ltror rtl.

yes

beginOfLine

The text is always displayed at the beginning of the line. Therefore, if property textDirection is set to ltr, the text content is left-justified. The text content for value rtl is right-justified.

yes

contextMenuBehaviour

Assignment of the context menu Note that the context menu can be overwritten in the hook method WDDOONCONTEXTMENU in all cases.

Value

Description

inherit

The UI element inherits the static context menu from its parent UI elements.

provide

The UI element context menu is the one which was specified by the contextMenuID.

suppress

No static context menu is created.

displayAsText

Specifies whether (ToolBar)InputField is to look like a pure Textfeld when the focus is not set on it. When the mouse pointer is moved over the UI element, the UI element is highlighted. When the UI element is clicked on, it behaves like a normal (ToolBar)InputField, and the user can enter data.

explanation

Help text displayed when the help mode is activated. This property can be personalized by administrators. More information: Explanation Property

The explanation property is only displayed if a Label exists for the corresponding UI element.

Note the following exception:

The explanation property of an AbstractTableColumn is always displayed. If the UI element appears in aTable, and therefore has no Label, then use a AbstractTableColumn.explanation as a replacement for an explanation for the respective UI element (for example InputField).

inputPrompt

If an InputField is empty, a short help text for the user is displayed in it. The text disappears as soon as the user enters a value.

Example

InputField.inputPrompt

length

Width of the InputField in number of characters. This property is overidden by the width property.

The default value for InputField.length is 0 characters. This causes the adoption of the length from the ABAP Dictionary at runtime. If nothing is maintained or if the length is not restricted, the field is 20 characters long. More information: 12-Hour Time Format

When proportional font is used where characters are not all of equal width, an average value is used for the character width. For this reason, despite a sufficient length specification, not all the characters may be able to fit in the InputField. In this case you can scroll through the text in the InputField by moving the input cursor. This property can be personalized by administrators.

passwordField

Boolean value that controls the display of entered characters on the screen. If the value is true, the characters entered on the screen are echoed with an asterisk (*). This attribute is used for password InputFields.

Caution

Note that the value of InputField is also transferred to the password mode in plain text. For this reason applications that use the property passwordField should only run in HTTPS mode. There is no input history for the passwordField.

You can go to the HTTPS mode through an ICF service setting in transaction SICF by setting theSSL option as the Security Requirement on the Logon Data tab on the node for your application in the HTTP service tree.

readOnly

Determines whether the input field can be edited or read only. This property can be personalized by administrators. In personalization, this property can be assigned the value: true

state

Error status of the interface element. Read the note about the required asterisk for a Label in FormLayout under Truncating Contents in the FormLayout.

This property can be personalized by administrators.

Value

Visualization

Description

Can be Set Using Personalization

normal

InputField.state = normal

Normal status of the interface element

no

required

InputField.state = required

The value must be entered.

The InputField is displayed with an asterisk.

Note

This value of the state property is not checked by the Web Dynpro framework. Service functions are still available for checking required entries, see also 948753 Information published on SAP site.

yes

textDirection

Text or writing direction. This enables labels of interface elements to be read in languages that have an RTL writing direction, such as Arabic or Hebrew, as opposed to LTR for languages like English. This property can be personalized by administrators.

Value

Description

Can be Set Using Personalization

INHERIT

The text direction is inherited from the parent element. Therefore, the text direction is identical to that of the parent element.

yes

LTR

Left to right text direction

yes

RTL

Right to left text direction

yes

tooltip

Quick info text that appears when the user moves the mouse pointer over the UI element. If Screen Reader is supported, extra text is added automatically to the tooltip in order to support accessibility. Be aware of the following if a hot key is set for one of the following UI elements: AbstractButton and those UI elements that inherit from this: IconButton, LinkToAction, LinkToUrl, MenuActionItem, ToolBarLinkToAction, ToolBarLinkToUrl: The relevant key combination for the corresponding hotkey is always automatically inserted into the tooltip of the appropriate UI element. If a text already exists for the tooltip, the text for the hotkey is appended to the end. This property can be personalized by administrators. See also 1974590.

value

Character string displayed within the InputField frame. This property must be bound to a context attribute (see Data Binding of UI Element Properties).

Primary Property

Both users and administrators can personalize this property. You can also predefine values; refer to General Information About Methods and Properties of UI Elements.

width

Width of the UI element. This property can be personalized by administrators. More information: Methods and Properties - General Information.