1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
ltab_fields-tabname = 'ZFI_PMNTADV'. ltab_fields-fieldname = 'CHECT'. ltab_fields-selectflag = 'X'. APPEND ltab_fields. ltab_fields-tabname = 'ZFI_PMNTADV'. ltab_fields-fieldname = 'PMNT_ADV'. ltab_fields-selectflag = 'X'. APPEND ltab_fields. SORT ltab_fields. DELETE ADJACENT DUPLICATES FROM ltab_fields. *-- Fill values SELECT chect INTO TABLE ltab_values FROM zfi_pmntadv WHERE pmnt_adv NE space. SORT ltab_values. DELETE ADJACENT DUPLICATES FROM ltab_values. CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' EXPORTING fieldname = 'chect' tabname = 'zfi_pmntadv' title_in_values_list = 'Select a value' IMPORTING select_value = so_chect TABLES fields = ltab_fields valuetab = ltab_values EXCEPTIONS field_not_in_ddic = 01 more_then_one_selectfield = 02 no_selectfield = 03. |