Defining Multivalue Fields

Use

With fields of type if_wd_select_options_20=>e_attribute_types-multi_value (multivalue fields) you can add complex selection criteria to your search. The attribute is visualized as a TextEdit UI element with an editing button: Editing button

When the user presses the button, a popup appears in which data can entered. The data is entered in the text editing field automatically when the user closes the popup. It is forwarded as a data reference. Its structure has already been defined in the attribute definition.

Columns are separated by delimiters. Additional formats are not offered. If you do want a different format, the calling application must do this itself. The data is exchanged through a single column string table.

Procedure

  1. In the attribute definition use attribute type if_wd_select_options_20=>e_attribute_types-multi_value.

  2. Fill the fields of substructure MULTI_VALUE. The STRUCTURE field must be filled to enable the data to be formatted in columns. The columns are separated by markers in the DELIMITER field.

    In the standard setting the following values are valid:

    • Delimiters: -

    • Maximum number of rows: 6;

      The field is first specified with three rows, and is enlarged as data is input until the maximum number of rows is reached.

    • Design: Standard

    • Wrapping: Soft

  3. Register for event ON_EDIT_MULTI_VALUE. The ROW_INDEX, the attribute, and the entered data is forwarded. The calling Web Dynpro component creates the dialog box, in which the user can enter data. Then the data is forwarded with interface method IF_WD_SELECT_OPTIONS_20~SET_INPUT_PER_ROW to the Select Options component.

In accordance with the UX specifications the TextEdit field should not be directly ready for input ( DIRECT_EDITABLE = abap_false must be set). The TextEdit field can be edited if DIRECT_EDITABLE = abap_true is set.