I have implemented F4 help using the function module ‘F4IF_INT_TABLE_VALUE_REQUEST ‘ with parameter multiple choice = ‘X’. In this way I was able to select multiple values from the screen, but those selected values are not returned to the screen.
OBJ_ID remains blank. By reading the lt_return tab, I was only able to show one value and not the selected values from the value help.
PARAMETERS: ana_obj TYPE c AS LISTBOX VISIBLE LENGTH 20, obj_id TYPE mdrs_mo_prx_name. AT SELECTION-SCREEN ON VALUE-REQUEST FOR obj_id. PERFORM reports_f4. EXIT. FORM report_f4. CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = lv_table_name fieldname = 'MO_NAME' langu = sy-langu TABLES dfies_tab = lt_field_tab EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3. CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'MO_NAME' dynpprog = lv_repid dynpnr = lv_dynnr dynprofield = 'OBJ_ID' value_org = 'S' multiple_choice = 'X' mark_tab = it_mark TABLES value_tab = lt_objects field_tab = lt_field_tab dynpfld_mapping = lt_dynfieldmapping return_tab = lt_return EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3. ENDFORM.