Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  SAP GUI User Dialogs →  General Dynpros →  Field Help, Input Help, and Dropdown List Boxes 

Dropdown List Boxes

Dropdown list boxes, which contain a predefined set of proposal values, can be defined for input/output fields on dynpros. It is not possible to enter a value in this type of input field and a value must be chosen from the proposal list instead. If a dropdown list box is associated with a field, the input help key (F4) cannot be used.

A dropdown list box is a single-column list of text fields with a maximum length of 80 characters. Internally, each text field is associated with a key of up to 40 characters. When the user selects a row, the content of the text field is entered in the input field on the screen and the content of the key is passed to the dynpro field. This means that the content and length of the screen field and dynpro field are not generally identical.

If a function code is associated with an input/output field with a dropdown list box, selecting a value triggers PAI immediately and the function code is passed to the fields sy-ucomm and the OK field. If no function code is associated, PAI must be triggered as usual using a different screen element.

If a dropdown list box is associated with an input/output field, the attribute Value List of the screen element can be used to define how the texts in the dropdown list box are created. There are two options:

  • Value list from the input help (recommended)
If the attribute Value List is empty, the text field of the dropdown list box takes the first column of the input help associated with the screen field. This input help should have two columns. The key of the dropdown list box is filled automatically from the second column.
  • Value list from PBO modules (not recommended)
If the attribute Value List has the value "A", the value list must be filled using the function module VRM_SET_VALUES before the screen is sent. This is done by passing an internal table of the type VRM_VALUES of the type group VRM to the import parameterVALUES of the function module. The row type is a structure consisting of two text fields, KEY and TEXT, with a length of 40 or 80 characters respectively. The table rows can combine values in the component KEY with any texts in the component TEXT. The associated input/output field is passed to the import parameter ID.

Other versions: 7.31 | 7.40 | 7.54

Executable Examples