Show TOC Start of Content Area

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

Use

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

Features

To change the program attributes for screen elements, in the Layout Editor of the Screen Painter, choose the Attributes pushbutton. In the Program group box, you can set the following attributes:

Attribute

Description

Input field

This attribute defines an element as an input field. If the output field attribute is not set, the data in this element is processed during the transaction but it is not displayed. By default, both the input and the output attributes are set.

Input

This attribute defines the way a program handles input/output fields. It can have the following values:

      Not possible: Input/output fields cannot be assigned an input value, that is, the screen element can only be used for output.

      Possible: Input/output fields can be assigned an input value at runtime but input is not required for the transaction flow.

      Recommended: Input is necessary for further transaction flow.

      Required: Input/output fields must be assigned an input value at runtime. The system checks this input when processing the PAI event. Required fields are indicated by a question mark "?" as the first character.

Note

If the field is in a table control or a step loop, the question mark is not displayed.

The selected value can be modified at runtime with LOOP AT SCREEN, field SCREEN-REQUIRED:

      1 - required field

      2 - recommended field

      0 - neither a recommended nor a required field

Output field

Identifies an element as an output field. You cannot insert data in that element unless the input field attribute has been set.

Output field only

Use this attribute to protect read-only elements from being changed into input elements at runtime. This attribute is useful when a program attempts to set all input elements back to ready for input.

Note 

Use this attribute for dynamically generated field labels. In this way they are displayed two-dimensionally and proportionally to the static field labels.

PossEntry /Value list

This attribute is relevant only for dropdown lists. It determines when and how the system retrieves the values that are displayed in the list:

      SPACE: Automatic value help (default) or POV value help.

The help processor completes the value list automatically before sending it to the Value Request Manager. The main sources are domain fixed values, value tables, and search helps.

Note

If the PROCESS ON VALUE-REQUEST event of the flow logic contains a statement linking a module to an input/output field, this takes priority over the automatic value retrieval by the help processor. In the module, you pass the value list to the help processor using function modules.

      A: Directly programmed in ABAP.

You determine the values yourself in a module of the PBO event, and pass them to the Value Request Manager using the VRM_SET_VALUES function module.

Poss. Entries /Possible entries key

You can assign this attribute only to input/output fields. The attribute can have the following values:

      Empty (SPACE): Temporary input help button, if input help exists (default).

The input help button is visible to the right of the input/output field when the cursor is positioned on the field. Choosing the pushbutton or F4 activates the relevant input help (either programmed, or defined in the ABAP Dictionary).

      0: No input help button.

Even if the input help attribute is set by the system, no input help button is displayed at runtime, and the input help is switched off.

      1: Temporary input help button.

The input help button is visible to the right of the input/output field when the cursor is positioned on the field. Choosing the pushbutton or F4 (if available) activates the input help.

      2: Permanent input help button.

The input help button is always visible to the right of the input/output field.

Right-justified

This attribute aligns numerical fields in an element to the right. You can also display text fields in that way (for example, when defining headers).

With leading zeros

This attribute aligns to the left numeric field values with leading zeroes.

*-entry

Allows the user to enter an * (asterisk) at the first position of an element. The system ignores the asterisk and transports input starting from the second position. Transport is determined by the conversion guidelines in the field format. The first-character asterisk triggers a flow logic module, which you declare by:

FIELD... MODULE... ON *-INPUT.

Without reset

Prevents the reset character (!) from being used to delete input from an input/output field.

Without template

If the user enters special characters as part of the input, they are transferred to the screen as regular text. If you set this attribute, you cannot set the Req.entry attribute.

For more information about attributes of screen elements, see General Attributes.

 

End of Content Area